1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/route53/Route53_EXPORTS.h> 8 #include <aws/route53/model/TrafficPolicyInstance.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Xml 19 { 20 class XmlDocument; 21 } // namespace Xml 22 } // namespace Utils 23 namespace Route53 24 { 25 namespace Model 26 { 27 /** 28 * <p>A complex type that contains information about the resource record sets that 29 * Amazon Route 53 created based on a specified traffic policy.</p><p><h3>See 30 * Also:</h3> <a 31 * href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/UpdateTrafficPolicyInstanceResponse">AWS 32 * API Reference</a></p> 33 */ 34 class AWS_ROUTE53_API UpdateTrafficPolicyInstanceResult 35 { 36 public: 37 UpdateTrafficPolicyInstanceResult(); 38 UpdateTrafficPolicyInstanceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 39 UpdateTrafficPolicyInstanceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result); 40 41 42 /** 43 * <p>A complex type that contains settings for the updated traffic policy 44 * instance.</p> 45 */ GetTrafficPolicyInstance()46 inline const TrafficPolicyInstance& GetTrafficPolicyInstance() const{ return m_trafficPolicyInstance; } 47 48 /** 49 * <p>A complex type that contains settings for the updated traffic policy 50 * instance.</p> 51 */ SetTrafficPolicyInstance(const TrafficPolicyInstance & value)52 inline void SetTrafficPolicyInstance(const TrafficPolicyInstance& value) { m_trafficPolicyInstance = value; } 53 54 /** 55 * <p>A complex type that contains settings for the updated traffic policy 56 * instance.</p> 57 */ SetTrafficPolicyInstance(TrafficPolicyInstance && value)58 inline void SetTrafficPolicyInstance(TrafficPolicyInstance&& value) { m_trafficPolicyInstance = std::move(value); } 59 60 /** 61 * <p>A complex type that contains settings for the updated traffic policy 62 * instance.</p> 63 */ WithTrafficPolicyInstance(const TrafficPolicyInstance & value)64 inline UpdateTrafficPolicyInstanceResult& WithTrafficPolicyInstance(const TrafficPolicyInstance& value) { SetTrafficPolicyInstance(value); return *this;} 65 66 /** 67 * <p>A complex type that contains settings for the updated traffic policy 68 * instance.</p> 69 */ WithTrafficPolicyInstance(TrafficPolicyInstance && value)70 inline UpdateTrafficPolicyInstanceResult& WithTrafficPolicyInstance(TrafficPolicyInstance&& value) { SetTrafficPolicyInstance(std::move(value)); return *this;} 71 72 private: 73 74 TrafficPolicyInstance m_trafficPolicyInstance; 75 }; 76 77 } // namespace Model 78 } // namespace Route53 79 } // namespace Aws 80