/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WAFV2 { namespace Model { class UpdateManagedRuleSetVersionExpiryDateResult { public: AWS_WAFV2_API UpdateManagedRuleSetVersionExpiryDateResult(); AWS_WAFV2_API UpdateManagedRuleSetVersionExpiryDateResult(const Aws::AmazonWebServiceResult& result); AWS_WAFV2_API UpdateManagedRuleSetVersionExpiryDateResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The version that is set to expire.

*/ inline const Aws::String& GetExpiringVersion() const{ return m_expiringVersion; } /** *

The version that is set to expire.

*/ inline void SetExpiringVersion(const Aws::String& value) { m_expiringVersion = value; } /** *

The version that is set to expire.

*/ inline void SetExpiringVersion(Aws::String&& value) { m_expiringVersion = std::move(value); } /** *

The version that is set to expire.

*/ inline void SetExpiringVersion(const char* value) { m_expiringVersion.assign(value); } /** *

The version that is set to expire.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithExpiringVersion(const Aws::String& value) { SetExpiringVersion(value); return *this;} /** *

The version that is set to expire.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithExpiringVersion(Aws::String&& value) { SetExpiringVersion(std::move(value)); return *this;} /** *

The version that is set to expire.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithExpiringVersion(const char* value) { SetExpiringVersion(value); return *this;} /** *

The time that the version will expire.

Times are in Coordinated * Universal Time (UTC) format. UTC format includes the special designator, Z. For * example, "2016-09-27T14:50Z".

*/ inline const Aws::Utils::DateTime& GetExpiryTimestamp() const{ return m_expiryTimestamp; } /** *

The time that the version will expire.

Times are in Coordinated * Universal Time (UTC) format. UTC format includes the special designator, Z. For * example, "2016-09-27T14:50Z".

*/ inline void SetExpiryTimestamp(const Aws::Utils::DateTime& value) { m_expiryTimestamp = value; } /** *

The time that the version will expire.

Times are in Coordinated * Universal Time (UTC) format. UTC format includes the special designator, Z. For * example, "2016-09-27T14:50Z".

*/ inline void SetExpiryTimestamp(Aws::Utils::DateTime&& value) { m_expiryTimestamp = std::move(value); } /** *

The time that the version will expire.

Times are in Coordinated * Universal Time (UTC) format. UTC format includes the special designator, Z. For * example, "2016-09-27T14:50Z".

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithExpiryTimestamp(const Aws::Utils::DateTime& value) { SetExpiryTimestamp(value); return *this;} /** *

The time that the version will expire.

Times are in Coordinated * Universal Time (UTC) format. UTC format includes the special designator, Z. For * example, "2016-09-27T14:50Z".

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithExpiryTimestamp(Aws::Utils::DateTime&& value) { SetExpiryTimestamp(std::move(value)); return *this;} /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline const Aws::String& GetNextLockToken() const{ return m_nextLockToken; } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetNextLockToken(const Aws::String& value) { m_nextLockToken = value; } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetNextLockToken(Aws::String&& value) { m_nextLockToken = std::move(value); } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline void SetNextLockToken(const char* value) { m_nextLockToken.assign(value); } /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithNextLockToken(const Aws::String& value) { SetNextLockToken(value); return *this;} /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithNextLockToken(Aws::String&& value) { SetNextLockToken(std::move(value)); return *this;} /** *

A token used for optimistic locking. WAF returns a token to your * get and list requests, to mark the state of the entity * at the time of the request. To make changes to the entity associated with the * token, you provide the token to operations like update and * delete. WAF uses the token to ensure that no changes have been made * to the entity since you last retrieved it. If a change has been made, the update * fails with a WAFOptimisticLockException. If this happens, perform * another get, and use the new token returned by that operation.

*/ inline UpdateManagedRuleSetVersionExpiryDateResult& WithNextLockToken(const char* value) { SetNextLockToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateManagedRuleSetVersionExpiryDateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateManagedRuleSetVersionExpiryDateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateManagedRuleSetVersionExpiryDateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_expiringVersion; Aws::Utils::DateTime m_expiryTimestamp; Aws::String m_nextLockToken; Aws::String m_requestId; }; } // namespace Model } // namespace WAFV2 } // namespace Aws