Class RegisterDeviceRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cognitosync.model.CognitoSyncRequest
-
- software.amazon.awssdk.services.cognitosync.model.RegisterDeviceRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RegisterDeviceRequest.Builder,RegisterDeviceRequest>
@Generated("software.amazon.awssdk:codegen") public final class RegisterDeviceRequest extends CognitoSyncRequest implements ToCopyableBuilder<RegisterDeviceRequest.Builder,RegisterDeviceRequest>
A request to RegisterDevice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRegisterDeviceRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegisterDeviceRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringidentityId()The unique ID for this identity.StringidentityPoolId()A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito.Platformplatform()The SNS platform type (e.g.StringplatformAsString()The SNS platform type (e.g.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RegisterDeviceRequest.Builder>serializableBuilderClass()RegisterDeviceRequest.BuildertoBuilder()Stringtoken()The push token.StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
identityPoolId
public final String identityPoolId()
A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
- Returns:
- A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. Here, the ID of the pool that the identity belongs to.
-
identityId
public final String identityId()
The unique ID for this identity.
- Returns:
- The unique ID for this identity.
-
platform
public final Platform platform()
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
If the service returns an enum value that is not available in the current SDK version,
platformwill returnPlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplatformAsString().- Returns:
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- See Also:
Platform
-
platformAsString
public final String platformAsString()
The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
If the service returns an enum value that is not available in the current SDK version,
platformwill returnPlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplatformAsString().- Returns:
- The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).
- See Also:
Platform
-
token
public final String token()
The push token.
- Returns:
- The push token.
-
toBuilder
public RegisterDeviceRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RegisterDeviceRequest.Builder,RegisterDeviceRequest>- Specified by:
toBuilderin classCognitoSyncRequest
-
builder
public static RegisterDeviceRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends RegisterDeviceRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-