/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that contains settings for the new traffic policy
* instance.See Also:
AWS
* API Reference
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:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
The value of State
is one of the following values:
Amazon Route 53 has finished creating resource record * sets, and changes have propagated to all Route 53 edge locations.
Route 53 is creating the resource record sets. Use
* GetTrafficPolicyInstance
to confirm that the
* CreateTrafficPolicyInstance
request completed successfully.
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.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
If State
is Failed
, an explanation of the reason
* for the failure. If State
is another value, Message
is
* empty.
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