/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that contains the response information for the * CreateTrafficPolicyVersion request.

See Also:

AWS * API Reference

*/ class AWS_ROUTE53_API CreateTrafficPolicyVersionResult { public: CreateTrafficPolicyVersionResult(); CreateTrafficPolicyVersionResult(const Aws::AmazonWebServiceResult& result); CreateTrafficPolicyVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A complex type that contains settings for the new version of the traffic * policy.

*/ inline const TrafficPolicy& GetTrafficPolicy() const{ return m_trafficPolicy; } /** *

A complex type that contains settings for the new version of the traffic * policy.

*/ inline void SetTrafficPolicy(const TrafficPolicy& value) { m_trafficPolicy = value; } /** *

A complex type that contains settings for the new version of the traffic * policy.

*/ inline void SetTrafficPolicy(TrafficPolicy&& value) { m_trafficPolicy = std::move(value); } /** *

A complex type that contains settings for the new version of the traffic * policy.

*/ inline CreateTrafficPolicyVersionResult& WithTrafficPolicy(const TrafficPolicy& value) { SetTrafficPolicy(value); return *this;} /** *

A complex type that contains settings for the new version of the traffic * policy.

*/ inline CreateTrafficPolicyVersionResult& WithTrafficPolicy(TrafficPolicy&& value) { SetTrafficPolicy(std::move(value)); return *this;} /** *

A unique URL that represents a new traffic policy version.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

A unique URL that represents a new traffic policy version.

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

A unique URL that represents a new traffic policy version.

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

A unique URL that represents a new traffic policy version.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

A unique URL that represents a new traffic policy version.

*/ inline CreateTrafficPolicyVersionResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

A unique URL that represents a new traffic policy version.

*/ inline CreateTrafficPolicyVersionResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

A unique URL that represents a new traffic policy version.

*/ inline CreateTrafficPolicyVersionResult& WithLocation(const char* value) { SetLocation(value); return *this;} private: TrafficPolicy m_trafficPolicy; Aws::String m_location; }; } // namespace Model } // namespace Route53 } // namespace Aws