/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

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

See Also:

AWS * API Reference

*/ class TrafficPolicyInstance { public: AWS_ROUTE53_API TrafficPolicyInstance(); AWS_ROUTE53_API TrafficPolicyInstance(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API TrafficPolicyInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline TrafficPolicyInstance& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline TrafficPolicyInstance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID that Amazon Route 53 assigned to the new traffic policy instance.

*/ inline TrafficPolicyInstance& WithId(const char* value) { SetId(value); return *this;} /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline TrafficPolicyInstance& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline TrafficPolicyInstance& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

The ID of the hosted zone that Amazon Route 53 created resource record sets * in.

*/ inline TrafficPolicyInstance& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline TrafficPolicyInstance& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline TrafficPolicyInstance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The DNS name, such as www.example.com, for which Amazon Route 53 responds to * queries by using the resource record sets that are associated with this traffic * policy instance.

*/ inline TrafficPolicyInstance& WithName(const char* value) { SetName(value); return *this;} /** *

The TTL that Amazon Route 53 assigned to all of the resource record sets that * it created in the specified hosted zone.

*/ inline long long GetTTL() const{ return m_tTL; } /** *

The TTL that Amazon Route 53 assigned to all of the resource record sets that * it created in the specified hosted zone.

*/ inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; } /** *

The TTL that Amazon Route 53 assigned to all of the resource record sets that * it created in the specified hosted zone.

*/ inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; } /** *

The TTL that Amazon Route 53 assigned to all of the resource record sets that * it created in the specified hosted zone.

*/ inline TrafficPolicyInstance& WithTTL(long long value) { SetTTL(value); return *this;} /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline TrafficPolicyInstance& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline TrafficPolicyInstance& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The value of State is one of the following values:

*
Applied

Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.

*
Creating

Route 53 is creating the resource record sets. Use * GetTrafficPolicyInstance to confirm that the * CreateTrafficPolicyInstance request completed successfully.

*
Failed

Route 53 wasn't able to create or update the * resource record sets. When the value of State is * Failed, see Message for an explanation of what caused * the request to fail.

*/ inline TrafficPolicyInstance& WithState(const char* value) { SetState(value); return *this;} /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline TrafficPolicyInstance& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline TrafficPolicyInstance& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

If State is Failed, an explanation of the reason * for the failure. If State is another value, Message is * empty.

*/ inline TrafficPolicyInstance& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; } /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline TrafficPolicyInstance& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;} /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline TrafficPolicyInstance& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;} /** *

The ID of the traffic policy that Amazon Route 53 used to create resource * record sets in the specified hosted zone.

*/ inline TrafficPolicyInstance& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;} /** *

The version of the traffic policy that Amazon Route 53 used to create * resource record sets in the specified hosted zone.

*/ inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; } /** *

The version of the traffic policy that Amazon Route 53 used to create * resource record sets in the specified hosted zone.

*/ inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; } /** *

The version of the traffic policy that Amazon Route 53 used to create * resource record sets in the specified hosted zone.

*/ inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; } /** *

The version of the traffic policy that Amazon Route 53 used to create * resource record sets in the specified hosted zone.

*/ inline TrafficPolicyInstance& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;} /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline const RRType& GetTrafficPolicyType() const{ return m_trafficPolicyType; } /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline bool TrafficPolicyTypeHasBeenSet() const { return m_trafficPolicyTypeHasBeenSet; } /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline void SetTrafficPolicyType(const RRType& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = value; } /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline void SetTrafficPolicyType(RRType&& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = std::move(value); } /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline TrafficPolicyInstance& WithTrafficPolicyType(const RRType& value) { SetTrafficPolicyType(value); return *this;} /** *

The DNS type that Amazon Route 53 assigned to all of the resource record sets * that it created for this traffic policy instance.

*/ inline TrafficPolicyInstance& WithTrafficPolicyType(RRType&& value) { SetTrafficPolicyType(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; long long m_tTL; bool m_tTLHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_trafficPolicyId; bool m_trafficPolicyIdHasBeenSet = false; int m_trafficPolicyVersion; bool m_trafficPolicyVersionHasBeenSet = false; RRType m_trafficPolicyType; bool m_trafficPolicyTypeHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws