This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-route53/include/aws/route53/model/TrafficPolicyInstance.h

527 lines
22 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/route53/model/RRType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Route53
{
namespace Model
{
/**
* <p>A complex type that contains settings for the new traffic policy
* instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/TrafficPolicyInstance">AWS
* API Reference</a></p>
*/
class AWS_ROUTE53_API TrafficPolicyInstance
{
public:
TrafficPolicyInstance();
TrafficPolicyInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
TrafficPolicyInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline TrafficPolicyInstance& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline TrafficPolicyInstance& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID that Amazon Route 53 assigned to the new traffic policy instance.</p>
*/
inline TrafficPolicyInstance& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline TrafficPolicyInstance& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline TrafficPolicyInstance& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
/**
* <p>The ID of the hosted zone that Amazon Route 53 created resource record sets
* in.</p>
*/
inline TrafficPolicyInstance& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
/**
* <p>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. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>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. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>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. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>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. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>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. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>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. </p>
*/
inline TrafficPolicyInstance& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>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. </p>
*/
inline TrafficPolicyInstance& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>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. </p>
*/
inline TrafficPolicyInstance& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The TTL that Amazon Route 53 assigned to all of the resource record sets that
* it created in the specified hosted zone.</p>
*/
inline long long GetTTL() const{ return m_tTL; }
/**
* <p>The TTL that Amazon Route 53 assigned to all of the resource record sets that
* it created in the specified hosted zone.</p>
*/
inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; }
/**
* <p>The TTL that Amazon Route 53 assigned to all of the resource record sets that
* it created in the specified hosted zone.</p>
*/
inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; }
/**
* <p>The TTL that Amazon Route 53 assigned to all of the resource record sets that
* it created in the specified hosted zone.</p>
*/
inline TrafficPolicyInstance& WithTTL(long long value) { SetTTL(value); return *this;}
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline TrafficPolicyInstance& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline TrafficPolicyInstance& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The value of <code>State</code> is one of the following values:</p> <dl>
* <dt>Applied</dt> <dd> <p>Amazon Route 53 has finished creating resource record
* sets, and changes have propagated to all Route 53 edge locations.</p> </dd>
* <dt>Creating</dt> <dd> <p>Route 53 is creating the resource record sets. Use
* <code>GetTrafficPolicyInstance</code> to confirm that the
* <code>CreateTrafficPolicyInstance</code> request completed successfully.</p>
* </dd> <dt>Failed</dt> <dd> <p>Route 53 wasn't able to create or update the
* resource record sets. When the value of <code>State</code> is
* <code>Failed</code>, see <code>Message</code> for an explanation of what caused
* the request to fail.</p> </dd> </dl>
*/
inline TrafficPolicyInstance& WithState(const char* value) { SetState(value); return *this;}
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline TrafficPolicyInstance& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline TrafficPolicyInstance& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>If <code>State</code> is <code>Failed</code>, an explanation of the reason
* for the failure. If <code>State</code> is another value, <code>Message</code> is
* empty.</p>
*/
inline TrafficPolicyInstance& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; }
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline bool TrafficPolicyIdHasBeenSet() const { return m_trafficPolicyIdHasBeenSet; }
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; }
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); }
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); }
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyId(const Aws::String& value) { SetTrafficPolicyId(value); return *this;}
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyId(Aws::String&& value) { SetTrafficPolicyId(std::move(value)); return *this;}
/**
* <p>The ID of the traffic policy that Amazon Route 53 used to create resource
* record sets in the specified hosted zone.</p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyId(const char* value) { SetTrafficPolicyId(value); return *this;}
/**
* <p>The version of the traffic policy that Amazon Route 53 used to create
* resource record sets in the specified hosted zone.</p>
*/
inline int GetTrafficPolicyVersion() const{ return m_trafficPolicyVersion; }
/**
* <p>The version of the traffic policy that Amazon Route 53 used to create
* resource record sets in the specified hosted zone.</p>
*/
inline bool TrafficPolicyVersionHasBeenSet() const { return m_trafficPolicyVersionHasBeenSet; }
/**
* <p>The version of the traffic policy that Amazon Route 53 used to create
* resource record sets in the specified hosted zone.</p>
*/
inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; }
/**
* <p>The version of the traffic policy that Amazon Route 53 used to create
* resource record sets in the specified hosted zone.</p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;}
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline const RRType& GetTrafficPolicyType() const{ return m_trafficPolicyType; }
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline bool TrafficPolicyTypeHasBeenSet() const { return m_trafficPolicyTypeHasBeenSet; }
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline void SetTrafficPolicyType(const RRType& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = value; }
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline void SetTrafficPolicyType(RRType&& value) { m_trafficPolicyTypeHasBeenSet = true; m_trafficPolicyType = std::move(value); }
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyType(const RRType& value) { SetTrafficPolicyType(value); return *this;}
/**
* <p>The DNS type that Amazon Route 53 assigned to all of the resource record sets
* that it created for this traffic policy instance. </p>
*/
inline TrafficPolicyInstance& WithTrafficPolicyType(RRType&& value) { SetTrafficPolicyType(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_hostedZoneId;
bool m_hostedZoneIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
long long m_tTL;
bool m_tTLHasBeenSet;
Aws::String m_state;
bool m_stateHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_trafficPolicyId;
bool m_trafficPolicyIdHasBeenSet;
int m_trafficPolicyVersion;
bool m_trafficPolicyVersionHasBeenSet;
RRType m_trafficPolicyType;
bool m_trafficPolicyTypeHasBeenSet;
};
} // namespace Model
} // namespace Route53
} // namespace Aws