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

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 return 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 return 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 return 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 return 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 return 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 return the result * from the original successful request.

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

*/ inline UpdateIpAccessSettingsRequest& 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 return the result * from the original successful request.

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

*/ inline UpdateIpAccessSettingsRequest& 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 return the result * from the original successful request.

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

*/ inline UpdateIpAccessSettingsRequest& WithClientToken(const char* value) { SetClientToken(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 UpdateIpAccessSettingsRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the IP access settings.

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

The description of the IP access settings.

*/ inline UpdateIpAccessSettingsRequest& 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 UpdateIpAccessSettingsRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the IP access settings.

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

The display name of the IP access settings.

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

The ARN of the IP access settings.

*/ inline const Aws::String& GetIpAccessSettingsArn() const{ return m_ipAccessSettingsArn; } /** *

The ARN of the IP access settings.

*/ inline bool IpAccessSettingsArnHasBeenSet() const { return m_ipAccessSettingsArnHasBeenSet; } /** *

The ARN of the IP access settings.

*/ inline void SetIpAccessSettingsArn(const Aws::String& value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn = value; } /** *

The ARN of the IP access settings.

*/ inline void SetIpAccessSettingsArn(Aws::String&& value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn = std::move(value); } /** *

The ARN of the IP access settings.

*/ inline void SetIpAccessSettingsArn(const char* value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn.assign(value); } /** *

The ARN of the IP access settings.

*/ inline UpdateIpAccessSettingsRequest& WithIpAccessSettingsArn(const Aws::String& value) { SetIpAccessSettingsArn(value); return *this;} /** *

The ARN of the IP access settings.

*/ inline UpdateIpAccessSettingsRequest& WithIpAccessSettingsArn(Aws::String&& value) { SetIpAccessSettingsArn(std::move(value)); return *this;} /** *

The ARN of the IP access settings.

*/ inline UpdateIpAccessSettingsRequest& WithIpAccessSettingsArn(const char* value) { SetIpAccessSettingsArn(value); return *this;} /** *

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

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

The updated IP rules of the IP access settings.

*/ inline UpdateIpAccessSettingsRequest& AddIpRules(IpRule&& value) { m_ipRulesHasBeenSet = true; m_ipRules.push_back(std::move(value)); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_ipAccessSettingsArn; bool m_ipAccessSettingsArnHasBeenSet = false; Aws::Vector m_ipRules; bool m_ipRulesHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws