/** * 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 ACM { namespace Model { /** */ class PutAccountConfigurationRequest : public ACMRequest { public: AWS_ACM_API PutAccountConfigurationRequest(); // 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 "PutAccountConfiguration"; } AWS_ACM_API Aws::String SerializePayload() const override; AWS_ACM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies expiration events associated with an account.

*/ inline const ExpiryEventsConfiguration& GetExpiryEvents() const{ return m_expiryEvents; } /** *

Specifies expiration events associated with an account.

*/ inline bool ExpiryEventsHasBeenSet() const { return m_expiryEventsHasBeenSet; } /** *

Specifies expiration events associated with an account.

*/ inline void SetExpiryEvents(const ExpiryEventsConfiguration& value) { m_expiryEventsHasBeenSet = true; m_expiryEvents = value; } /** *

Specifies expiration events associated with an account.

*/ inline void SetExpiryEvents(ExpiryEventsConfiguration&& value) { m_expiryEventsHasBeenSet = true; m_expiryEvents = std::move(value); } /** *

Specifies expiration events associated with an account.

*/ inline PutAccountConfigurationRequest& WithExpiryEvents(const ExpiryEventsConfiguration& value) { SetExpiryEvents(value); return *this;} /** *

Specifies expiration events associated with an account.

*/ inline PutAccountConfigurationRequest& WithExpiryEvents(ExpiryEventsConfiguration&& value) { SetExpiryEvents(std::move(value)); return *this;} /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline PutAccountConfigurationRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline PutAccountConfigurationRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

Customer-chosen string used to distinguish between calls to * PutAccountConfiguration. Idempotency tokens time out after one * hour. If you call PutAccountConfiguration multiple times with the * same unexpired idempotency token, ACM treats it as the same request and returns * the original result. If you change the idempotency token for each call, ACM * treats each call as a new request.

*/ inline PutAccountConfigurationRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: ExpiryEventsConfiguration m_expiryEvents; bool m_expiryEventsHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace ACM } // namespace Aws