/** * 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 #include namespace Aws { namespace WorkSpacesWeb { namespace Model { /** */ class CreateIpAccessSettingsRequest : public WorkSpacesWebRequest { public: AWS_WORKSPACESWEB_API CreateIpAccessSettingsRequest(); // 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 "CreateIpAccessSettings"; } AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; /** *

Additional encryption context of the IP access settings.

*/ inline const Aws::Map& GetAdditionalEncryptionContext() const{ return m_additionalEncryptionContext; } /** *

Additional encryption context of the IP access settings.

*/ inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; } /** *

Additional encryption context of the IP access settings.

*/ inline void SetAdditionalEncryptionContext(const Aws::Map& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = value; } /** *

Additional encryption context of the IP access settings.

*/ inline void SetAdditionalEncryptionContext(Aws::Map&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext = std::move(value); } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithAdditionalEncryptionContext(const Aws::Map& value) { SetAdditionalEncryptionContext(value); return *this;} /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithAdditionalEncryptionContext(Aws::Map&& value) { SetAdditionalEncryptionContext(std::move(value)); return *this;} /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(const Aws::String& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, const Aws::String& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(const Aws::String& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), std::move(value)); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(const char* key, Aws::String&& value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, std::move(value)); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(Aws::String&& key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(std::move(key), value); return *this; } /** *

Additional encryption context of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddAdditionalEncryptionContext(const char* key, const char* value) { m_additionalEncryptionContextHasBeenSet = true; m_additionalEncryptionContext.emplace(key, value); return *this; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline CreateIpAccessSettingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline CreateIpAccessSettingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token returns the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline CreateIpAccessSettingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The custom managed key of the IP access settings.

*/ inline const Aws::String& GetCustomerManagedKey() const{ return m_customerManagedKey; } /** *

The custom managed key of the IP access settings.

*/ inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; } /** *

The custom managed key of the IP access settings.

*/ inline void SetCustomerManagedKey(const Aws::String& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = value; } /** *

The custom managed key of the IP access settings.

*/ inline void SetCustomerManagedKey(Aws::String&& value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey = std::move(value); } /** *

The custom managed key of the IP access settings.

*/ inline void SetCustomerManagedKey(const char* value) { m_customerManagedKeyHasBeenSet = true; m_customerManagedKey.assign(value); } /** *

The custom managed key of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithCustomerManagedKey(const Aws::String& value) { SetCustomerManagedKey(value); return *this;} /** *

The custom managed key of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithCustomerManagedKey(Aws::String&& value) { SetCustomerManagedKey(std::move(value)); return *this;} /** *

The custom managed key of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithCustomerManagedKey(const char* value) { SetCustomerManagedKey(value); return *this;} /** *

The description of the IP access settings.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the IP access settings.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the IP access settings.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the IP access settings.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the IP access settings.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The display name of the IP access settings.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of the IP access settings.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The IP rules of the IP access settings.

*/ inline const Aws::Vector& GetIpRules() const{ return m_ipRules; } /** *

The IP rules of the IP access settings.

*/ inline bool IpRulesHasBeenSet() const { return m_ipRulesHasBeenSet; } /** *

The IP rules of the IP access settings.

*/ inline void SetIpRules(const Aws::Vector& value) { m_ipRulesHasBeenSet = true; m_ipRules = value; } /** *

The IP rules of the IP access settings.

*/ inline void SetIpRules(Aws::Vector&& value) { m_ipRulesHasBeenSet = true; m_ipRules = std::move(value); } /** *

The IP rules of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithIpRules(const Aws::Vector& value) { SetIpRules(value); return *this;} /** *

The IP rules of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& WithIpRules(Aws::Vector&& value) { SetIpRules(std::move(value)); return *this;} /** *

The IP rules of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddIpRules(const IpRule& value) { m_ipRulesHasBeenSet = true; m_ipRules.push_back(value); return *this; } /** *

The IP rules of the IP access settings.

*/ inline CreateIpAccessSettingsRequest& AddIpRules(IpRule&& value) { m_ipRulesHasBeenSet = true; m_ipRules.push_back(std::move(value)); return *this; } /** *

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

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

The tags to add to the browser settings resource. A tag is a key-value * pair.

*/ inline CreateIpAccessSettingsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::Map m_additionalEncryptionContext; bool m_additionalEncryptionContextHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_customerManagedKey; bool m_customerManagedKeyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::Vector m_ipRules; bool m_ipRulesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws