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

A token used for optimistic locking. AWS 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. AWS 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& GetNextWebACLLockToken() const{ return m_nextWebACLLockToken; } /** *

A token used for optimistic locking. AWS 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. AWS 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 SetNextWebACLLockToken(const Aws::String& value) { m_nextWebACLLockToken = value; } /** *

A token used for optimistic locking. AWS 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. AWS 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 SetNextWebACLLockToken(Aws::String&& value) { m_nextWebACLLockToken = std::move(value); } /** *

A token used for optimistic locking. AWS 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. AWS 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 SetNextWebACLLockToken(const char* value) { m_nextWebACLLockToken.assign(value); } /** *

A token used for optimistic locking. AWS 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. AWS 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 DeleteFirewallManagerRuleGroupsResult& WithNextWebACLLockToken(const Aws::String& value) { SetNextWebACLLockToken(value); return *this;} /** *

A token used for optimistic locking. AWS 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. AWS 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 DeleteFirewallManagerRuleGroupsResult& WithNextWebACLLockToken(Aws::String&& value) { SetNextWebACLLockToken(std::move(value)); return *this;} /** *

A token used for optimistic locking. AWS 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. AWS 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 DeleteFirewallManagerRuleGroupsResult& WithNextWebACLLockToken(const char* value) { SetNextWebACLLockToken(value); return *this;} private: Aws::String m_nextWebACLLockToken; }; } // namespace Model } // namespace WAFV2 } // namespace Aws