/** * 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 WAF { namespace Model { class CreateRateBasedRuleResult { public: AWS_WAF_API CreateRateBasedRuleResult(); AWS_WAF_API CreateRateBasedRuleResult(const Aws::AmazonWebServiceResult& result); AWS_WAF_API CreateRateBasedRuleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The RateBasedRule that is returned in the * CreateRateBasedRule response.

*/ inline const RateBasedRule& GetRule() const{ return m_rule; } /** *

The RateBasedRule that is returned in the * CreateRateBasedRule response.

*/ inline void SetRule(const RateBasedRule& value) { m_rule = value; } /** *

The RateBasedRule that is returned in the * CreateRateBasedRule response.

*/ inline void SetRule(RateBasedRule&& value) { m_rule = std::move(value); } /** *

The RateBasedRule that is returned in the * CreateRateBasedRule response.

*/ inline CreateRateBasedRuleResult& WithRule(const RateBasedRule& value) { SetRule(value); return *this;} /** *

The RateBasedRule that is returned in the * CreateRateBasedRule response.

*/ inline CreateRateBasedRuleResult& WithRule(RateBasedRule&& value) { SetRule(std::move(value)); return *this;} /** *

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

*/ inline const Aws::String& GetChangeToken() const{ return m_changeToken; } /** *

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

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

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

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

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

*/ inline void SetChangeToken(const char* value) { m_changeToken.assign(value); } /** *

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

*/ inline CreateRateBasedRuleResult& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;} /** *

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

*/ inline CreateRateBasedRuleResult& WithChangeToken(Aws::String&& value) { SetChangeToken(std::move(value)); return *this;} /** *

The ChangeToken that you used to submit the * CreateRateBasedRule request. You can also use this value to query * the status of the request. For more information, see * GetChangeTokenStatus.

*/ inline CreateRateBasedRuleResult& WithChangeToken(const char* value) { SetChangeToken(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 CreateRateBasedRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateRateBasedRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateRateBasedRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: RateBasedRule m_rule; Aws::String m_changeToken; Aws::String m_requestId; }; } // namespace Model } // namespace WAF } // namespace Aws