156 lines
6.5 KiB
C++
156 lines
6.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/wafv2/WAFV2_EXPORTS.h>
|
|
#include <aws/wafv2/model/RuleGroup.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace WAFV2
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_WAFV2_API GetRuleGroupResult
|
|
{
|
|
public:
|
|
GetRuleGroupResult();
|
|
GetRuleGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetRuleGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p/>
|
|
*/
|
|
inline const RuleGroup& GetRuleGroup() const{ return m_ruleGroup; }
|
|
|
|
/**
|
|
* <p/>
|
|
*/
|
|
inline void SetRuleGroup(const RuleGroup& value) { m_ruleGroup = value; }
|
|
|
|
/**
|
|
* <p/>
|
|
*/
|
|
inline void SetRuleGroup(RuleGroup&& value) { m_ruleGroup = std::move(value); }
|
|
|
|
/**
|
|
* <p/>
|
|
*/
|
|
inline GetRuleGroupResult& WithRuleGroup(const RuleGroup& value) { SetRuleGroup(value); return *this;}
|
|
|
|
/**
|
|
* <p/>
|
|
*/
|
|
inline GetRuleGroupResult& WithRuleGroup(RuleGroup&& value) { SetRuleGroup(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline const Aws::String& GetLockToken() const{ return m_lockToken; }
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline void SetLockToken(const Aws::String& value) { m_lockToken = value; }
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline void SetLockToken(Aws::String&& value) { m_lockToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline void SetLockToken(const char* value) { m_lockToken.assign(value); }
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline GetRuleGroupResult& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline GetRuleGroupResult& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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 <code>WAFOptimisticLockException</code>.
|
|
* If this happens, perform another get, and use the new token returned by that
|
|
* operation. </p>
|
|
*/
|
|
inline GetRuleGroupResult& WithLockToken(const char* value) { SetLockToken(value); return *this;}
|
|
|
|
private:
|
|
|
|
RuleGroup m_ruleGroup;
|
|
|
|
Aws::String m_lockToken;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace WAFV2
|
|
} // namespace Aws
|