/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace ChimeSDKIdentity { namespace Model { /** */ class CreateAppInstanceUserRequest : public ChimeSDKIdentityRequest { public: AWS_CHIMESDKIDENTITY_API CreateAppInstanceUserRequest(); // 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 "CreateAppInstanceUser"; } AWS_CHIMESDKIDENTITY_API Aws::String SerializePayload() const override; /** *

The ARN of the AppInstance request.

*/ inline const Aws::String& GetAppInstanceArn() const{ return m_appInstanceArn; } /** *

The ARN of the AppInstance request.

*/ inline bool AppInstanceArnHasBeenSet() const { return m_appInstanceArnHasBeenSet; } /** *

The ARN of the AppInstance request.

*/ inline void SetAppInstanceArn(const Aws::String& value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn = value; } /** *

The ARN of the AppInstance request.

*/ inline void SetAppInstanceArn(Aws::String&& value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn = std::move(value); } /** *

The ARN of the AppInstance request.

*/ inline void SetAppInstanceArn(const char* value) { m_appInstanceArnHasBeenSet = true; m_appInstanceArn.assign(value); } /** *

The ARN of the AppInstance request.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceArn(const Aws::String& value) { SetAppInstanceArn(value); return *this;} /** *

The ARN of the AppInstance request.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceArn(Aws::String&& value) { SetAppInstanceArn(std::move(value)); return *this;} /** *

The ARN of the AppInstance request.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceArn(const char* value) { SetAppInstanceArn(value); return *this;} /** *

The user ID of the AppInstance.

*/ inline const Aws::String& GetAppInstanceUserId() const{ return m_appInstanceUserId; } /** *

The user ID of the AppInstance.

*/ inline bool AppInstanceUserIdHasBeenSet() const { return m_appInstanceUserIdHasBeenSet; } /** *

The user ID of the AppInstance.

*/ inline void SetAppInstanceUserId(const Aws::String& value) { m_appInstanceUserIdHasBeenSet = true; m_appInstanceUserId = value; } /** *

The user ID of the AppInstance.

*/ inline void SetAppInstanceUserId(Aws::String&& value) { m_appInstanceUserIdHasBeenSet = true; m_appInstanceUserId = std::move(value); } /** *

The user ID of the AppInstance.

*/ inline void SetAppInstanceUserId(const char* value) { m_appInstanceUserIdHasBeenSet = true; m_appInstanceUserId.assign(value); } /** *

The user ID of the AppInstance.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceUserId(const Aws::String& value) { SetAppInstanceUserId(value); return *this;} /** *

The user ID of the AppInstance.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceUserId(Aws::String&& value) { SetAppInstanceUserId(std::move(value)); return *this;} /** *

The user ID of the AppInstance.

*/ inline CreateAppInstanceUserRequest& WithAppInstanceUserId(const char* value) { SetAppInstanceUserId(value); return *this;} /** *

The user's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The user's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The user's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The user's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The user's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The user's name.

*/ inline CreateAppInstanceUserRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The user's name.

*/ inline CreateAppInstanceUserRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The user's name.

*/ inline CreateAppInstanceUserRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); } /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline CreateAppInstanceUserRequest& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline CreateAppInstanceUserRequest& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *

The request's metadata. Limited to a 1KB string in UTF-8.

*/ inline CreateAppInstanceUserRequest& WithMetadata(const char* value) { SetMetadata(value); return *this;} /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline CreateAppInstanceUserRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline CreateAppInstanceUserRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

The unique ID of the request. Use different tokens to request additional * AppInstances.

*/ inline CreateAppInstanceUserRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

Tags assigned to the AppInstanceUser.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags assigned to the AppInstanceUser.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags assigned to the AppInstanceUser.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags assigned to the AppInstanceUser.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags assigned to the AppInstanceUser.

*/ inline CreateAppInstanceUserRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags assigned to the AppInstanceUser.

*/ inline CreateAppInstanceUserRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags assigned to the AppInstanceUser.

*/ inline CreateAppInstanceUserRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags assigned to the AppInstanceUser.

*/ inline CreateAppInstanceUserRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline const ExpirationSettings& GetExpirationSettings() const{ return m_expirationSettings; } /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline bool ExpirationSettingsHasBeenSet() const { return m_expirationSettingsHasBeenSet; } /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline void SetExpirationSettings(const ExpirationSettings& value) { m_expirationSettingsHasBeenSet = true; m_expirationSettings = value; } /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline void SetExpirationSettings(ExpirationSettings&& value) { m_expirationSettingsHasBeenSet = true; m_expirationSettings = std::move(value); } /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline CreateAppInstanceUserRequest& WithExpirationSettings(const ExpirationSettings& value) { SetExpirationSettings(value); return *this;} /** *

Settings that control the interval after which the * AppInstanceUser is automatically deleted.

*/ inline CreateAppInstanceUserRequest& WithExpirationSettings(ExpirationSettings&& value) { SetExpirationSettings(std::move(value)); return *this;} private: Aws::String m_appInstanceArn; bool m_appInstanceArnHasBeenSet = false; Aws::String m_appInstanceUserId; bool m_appInstanceUserIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_metadata; bool m_metadataHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; ExpirationSettings m_expirationSettings; bool m_expirationSettingsHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKIdentity } // namespace Aws