/** * 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 UpdateTrustStoreRequest : public WorkSpacesWebRequest { public: AWS_WORKSPACESWEB_API UpdateTrustStoreRequest(); // 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 "UpdateTrustStore"; } AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; /** *

A list of CA certificates to add to the trust store.

*/ inline const Aws::Vector& GetCertificatesToAdd() const{ return m_certificatesToAdd; } /** *

A list of CA certificates to add to the trust store.

*/ inline bool CertificatesToAddHasBeenSet() const { return m_certificatesToAddHasBeenSet; } /** *

A list of CA certificates to add to the trust store.

*/ inline void SetCertificatesToAdd(const Aws::Vector& value) { m_certificatesToAddHasBeenSet = true; m_certificatesToAdd = value; } /** *

A list of CA certificates to add to the trust store.

*/ inline void SetCertificatesToAdd(Aws::Vector&& value) { m_certificatesToAddHasBeenSet = true; m_certificatesToAdd = std::move(value); } /** *

A list of CA certificates to add to the trust store.

*/ inline UpdateTrustStoreRequest& WithCertificatesToAdd(const Aws::Vector& value) { SetCertificatesToAdd(value); return *this;} /** *

A list of CA certificates to add to the trust store.

*/ inline UpdateTrustStoreRequest& WithCertificatesToAdd(Aws::Vector&& value) { SetCertificatesToAdd(std::move(value)); return *this;} /** *

A list of CA certificates to add to the trust store.

*/ inline UpdateTrustStoreRequest& AddCertificatesToAdd(const Aws::Utils::ByteBuffer& value) { m_certificatesToAddHasBeenSet = true; m_certificatesToAdd.push_back(value); return *this; } /** *

A list of CA certificates to add to the trust store.

*/ inline UpdateTrustStoreRequest& AddCertificatesToAdd(Aws::Utils::ByteBuffer&& value) { m_certificatesToAddHasBeenSet = true; m_certificatesToAdd.push_back(std::move(value)); return *this; } /** *

A list of CA certificates to delete from a trust store.

*/ inline const Aws::Vector& GetCertificatesToDelete() const{ return m_certificatesToDelete; } /** *

A list of CA certificates to delete from a trust store.

*/ inline bool CertificatesToDeleteHasBeenSet() const { return m_certificatesToDeleteHasBeenSet; } /** *

A list of CA certificates to delete from a trust store.

*/ inline void SetCertificatesToDelete(const Aws::Vector& value) { m_certificatesToDeleteHasBeenSet = true; m_certificatesToDelete = value; } /** *

A list of CA certificates to delete from a trust store.

*/ inline void SetCertificatesToDelete(Aws::Vector&& value) { m_certificatesToDeleteHasBeenSet = true; m_certificatesToDelete = std::move(value); } /** *

A list of CA certificates to delete from a trust store.

*/ inline UpdateTrustStoreRequest& WithCertificatesToDelete(const Aws::Vector& value) { SetCertificatesToDelete(value); return *this;} /** *

A list of CA certificates to delete from a trust store.

*/ inline UpdateTrustStoreRequest& WithCertificatesToDelete(Aws::Vector&& value) { SetCertificatesToDelete(std::move(value)); return *this;} /** *

A list of CA certificates to delete from a trust store.

*/ inline UpdateTrustStoreRequest& AddCertificatesToDelete(const Aws::String& value) { m_certificatesToDeleteHasBeenSet = true; m_certificatesToDelete.push_back(value); return *this; } /** *

A list of CA certificates to delete from a trust store.

*/ inline UpdateTrustStoreRequest& AddCertificatesToDelete(Aws::String&& value) { m_certificatesToDeleteHasBeenSet = true; m_certificatesToDelete.push_back(std::move(value)); return *this; } /** *

A list of CA certificates to delete from a trust store.

*/ inline UpdateTrustStoreRequest& AddCertificatesToDelete(const char* value) { m_certificatesToDeleteHasBeenSet = true; m_certificatesToDelete.push_back(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 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 UpdateTrustStoreRequest& 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 UpdateTrustStoreRequest& 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 UpdateTrustStoreRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The ARN of the trust store.

*/ inline const Aws::String& GetTrustStoreArn() const{ return m_trustStoreArn; } /** *

The ARN of the trust store.

*/ inline bool TrustStoreArnHasBeenSet() const { return m_trustStoreArnHasBeenSet; } /** *

The ARN of the trust store.

*/ inline void SetTrustStoreArn(const Aws::String& value) { m_trustStoreArnHasBeenSet = true; m_trustStoreArn = value; } /** *

The ARN of the trust store.

*/ inline void SetTrustStoreArn(Aws::String&& value) { m_trustStoreArnHasBeenSet = true; m_trustStoreArn = std::move(value); } /** *

The ARN of the trust store.

*/ inline void SetTrustStoreArn(const char* value) { m_trustStoreArnHasBeenSet = true; m_trustStoreArn.assign(value); } /** *

The ARN of the trust store.

*/ inline UpdateTrustStoreRequest& WithTrustStoreArn(const Aws::String& value) { SetTrustStoreArn(value); return *this;} /** *

The ARN of the trust store.

*/ inline UpdateTrustStoreRequest& WithTrustStoreArn(Aws::String&& value) { SetTrustStoreArn(std::move(value)); return *this;} /** *

The ARN of the trust store.

*/ inline UpdateTrustStoreRequest& WithTrustStoreArn(const char* value) { SetTrustStoreArn(value); return *this;} private: Aws::Vector m_certificatesToAdd; bool m_certificatesToAddHasBeenSet = false; Aws::Vector m_certificatesToDelete; bool m_certificatesToDeleteHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_trustStoreArn; bool m_trustStoreArnHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws