/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CognitoSync { namespace Model { /** *

A request to RegisterDevice.

See Also:

AWS * API Reference

*/ class RegisterDeviceRequest : public CognitoSyncRequest { public: AWS_COGNITOSYNC_API RegisterDeviceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RegisterDevice"; } AWS_COGNITOSYNC_API Aws::String SerializePayload() const override; /** *

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.

*/ inline const Aws::String& GetIdentityPoolId() const{ return m_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.

*/ inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } /** *

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.

*/ inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; } /** *

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.

*/ inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); } /** *

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.

*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); } /** *

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.

*/ inline RegisterDeviceRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

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.

*/ inline RegisterDeviceRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *

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.

*/ inline RegisterDeviceRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *

The unique ID for this identity.

*/ inline const Aws::String& GetIdentityId() const{ return m_identityId; } /** *

The unique ID for this identity.

*/ inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; } /** *

The unique ID for this identity.

*/ inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; } /** *

The unique ID for this identity.

*/ inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); } /** *

The unique ID for this identity.

*/ inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); } /** *

The unique ID for this identity.

*/ inline RegisterDeviceRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} /** *

The unique ID for this identity.

*/ inline RegisterDeviceRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} /** *

The unique ID for this identity.

*/ inline RegisterDeviceRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline const Platform& GetPlatform() const{ return m_platform; } /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline RegisterDeviceRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *

The SNS platform type (e.g. GCM, SDM, APNS, APNS_SANDBOX).

*/ inline RegisterDeviceRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} /** *

The push token.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The push token.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

The push token.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

The push token.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

The push token.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

The push token.

*/ inline RegisterDeviceRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The push token.

*/ inline RegisterDeviceRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The push token.

*/ inline RegisterDeviceRequest& WithToken(const char* value) { SetToken(value); return *this;} private: Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::String m_identityId; bool m_identityIdHasBeenSet = false; Platform m_platform; bool m_platformHasBeenSet = false; Aws::String m_token; bool m_tokenHasBeenSet = false; }; } // namespace Model } // namespace CognitoSync } // namespace Aws