/** * 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 a traffic policy.

See * Also:

AWS * API Reference

*/ class TrafficPolicy { public: AWS_ROUTE53_API TrafficPolicy(); AWS_ROUTE53_API TrafficPolicy(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API TrafficPolicy& 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 a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The ID that Amazon Route 53 assigned to a traffic policy when you created * it.

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

The version number that Amazon Route 53 assigns to a traffic policy. For a * new traffic policy, the value of Version is always 1.

*/ inline int GetVersion() const{ return m_version; } /** *

The version number that Amazon Route 53 assigns to a traffic policy. For a * new traffic policy, the value of Version is always 1.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version number that Amazon Route 53 assigns to a traffic policy. For a * new traffic policy, the value of Version is always 1.

*/ inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version number that Amazon Route 53 assigns to a traffic policy. For a * new traffic policy, the value of Version is always 1.

*/ inline TrafficPolicy& WithVersion(int value) { SetVersion(value); return *this;} /** *

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The name that you specified when you created the traffic policy.

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

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline const RRType& GetType() const{ return m_type; } /** *

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline void SetType(const RRType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline void SetType(RRType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline TrafficPolicy& WithType(const RRType& value) { SetType(value); return *this;} /** *

The DNS type of the resource record sets that Amazon Route 53 creates when * you use a traffic policy to create a traffic policy instance.

*/ inline TrafficPolicy& WithType(RRType&& value) { SetType(std::move(value)); return *this;} /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline const Aws::String& GetDocument() const{ return m_document; } /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; } /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; } /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); } /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); } /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline TrafficPolicy& WithDocument(const Aws::String& value) { SetDocument(value); return *this;} /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline TrafficPolicy& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;} /** *

The definition of a traffic policy in JSON format. You specify the JSON * document to use for a new traffic policy in the CreateTrafficPolicy * request. For more information about the JSON format, see Traffic * Policy Document Format.

*/ inline TrafficPolicy& WithDocument(const char* value) { SetDocument(value); return *this;} /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline TrafficPolicy& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline TrafficPolicy& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

The comment that you specify in the CreateTrafficPolicy request, * if any.

*/ inline TrafficPolicy& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; int m_version; bool m_versionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RRType m_type; bool m_typeHasBeenSet = false; Aws::String m_document; bool m_documentHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws