156 lines
6.6 KiB
C
156 lines
6.6 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/RegexPatternSet.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 GetRegexPatternSetResult
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
GetRegexPatternSetResult();
|
|||
|
|
GetRegexPatternSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
GetRegexPatternSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/>
|
|||
|
|
*/
|
|||
|
|
inline const RegexPatternSet& GetRegexPatternSet() const{ return m_regexPatternSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/>
|
|||
|
|
*/
|
|||
|
|
inline void SetRegexPatternSet(const RegexPatternSet& value) { m_regexPatternSet = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/>
|
|||
|
|
*/
|
|||
|
|
inline void SetRegexPatternSet(RegexPatternSet&& value) { m_regexPatternSet = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/>
|
|||
|
|
*/
|
|||
|
|
inline GetRegexPatternSetResult& WithRegexPatternSet(const RegexPatternSet& value) { SetRegexPatternSet(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p/>
|
|||
|
|
*/
|
|||
|
|
inline GetRegexPatternSetResult& WithRegexPatternSet(RegexPatternSet&& value) { SetRegexPatternSet(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 GetRegexPatternSetResult& 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 GetRegexPatternSetResult& 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 GetRegexPatternSetResult& WithLockToken(const char* value) { SetLockToken(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
RegexPatternSet m_regexPatternSet;
|
|||
|
|
|
|||
|
|
Aws::String m_lockToken;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace WAFV2
|
|||
|
|
} // namespace Aws
|