public class SubscribeToDatasetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SubscribeToDataset operation
.
Subscribes to receive notifications when a dataset is modified by another device.
This API can only be called with temporary credentials provided by Cognito Identity. You cannot call this API with developer credentials.
NOOP
Constructor and Description |
---|
SubscribeToDatasetRequest() |
Modifier and Type | Method and Description |
---|---|
SubscribeToDatasetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getDatasetName()
The name of the dataset to subcribe to.
|
String |
getDeviceId()
The unique ID generated for this device by Cognito.
|
String |
getIdentityId()
Unique ID for this identity.
|
String |
getIdentityPoolId()
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
int |
hashCode() |
void |
setDatasetName(String datasetName)
The name of the dataset to subcribe to.
|
void |
setDeviceId(String deviceId)
The unique ID generated for this device by Cognito.
|
void |
setIdentityId(String identityId)
Unique ID for this identity.
|
void |
setIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SubscribeToDatasetRequest |
withDatasetName(String datasetName)
The name of the dataset to subcribe to.
|
SubscribeToDatasetRequest |
withDeviceId(String deviceId)
The unique ID generated for this device by Cognito.
|
SubscribeToDatasetRequest |
withIdentityId(String identityId)
Unique ID for this identity.
|
SubscribeToDatasetRequest |
withIdentityPoolId(String identityPoolId)
A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getIdentityPoolId()
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityPoolId(String identityPoolId)
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId
- A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. The ID of the pool to which the identity belongs.public SubscribeToDatasetRequest withIdentityPoolId(String identityPoolId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityPoolId
- A name-spaced GUID (for example,
us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
Cognito. The ID of the pool to which the identity belongs.public String getIdentityId()
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
public void setIdentityId(String identityId)
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId
- Unique ID for this identity.public SubscribeToDatasetRequest withIdentityId(String identityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+:[0-9a-f-]+
identityId
- Unique ID for this identity.public String getDatasetName()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
public void setDatasetName(String datasetName)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
datasetName
- The name of the dataset to subcribe to.public SubscribeToDatasetRequest withDatasetName(String datasetName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.:-]+
datasetName
- The name of the dataset to subcribe to.public String getDeviceId()
Constraints:
Length: 1 - 256
public void setDeviceId(String deviceId)
Constraints:
Length: 1 - 256
deviceId
- The unique ID generated for this device by Cognito.public SubscribeToDatasetRequest withDeviceId(String deviceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
deviceId
- The unique ID generated for this device by Cognito.public String toString()
toString
in class Object
Object.toString()
public SubscribeToDatasetRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.