/** * 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 Route53 { namespace Model { /** *

A complex type that contains information about the traffic policy that you * want to create.

See Also:

AWS * API Reference

*/ class CreateTrafficPolicyRequest : public Route53Request { public: AWS_ROUTE53_API CreateTrafficPolicyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficPolicy"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; /** *

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The name of the traffic policy.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

The definition of this traffic policy in JSON format. For more information, * see Traffic * Policy Document Format.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

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

(Optional) Any comments that you want to include about the traffic * policy.

*/ inline CreateTrafficPolicyRequest& WithComment(const char* value) { SetComment(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_document; bool m_documentHasBeenSet = false; Aws::String m_comment; bool m_commentHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws