/** * 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 resource record sets that * you want to create based on a specified traffic policy.

See Also:

* AWS * API Reference

*/ class CreateTrafficPolicyInstanceRequest : public Route53Request { public: AWS_ROUTE53_API CreateTrafficPolicyInstanceRequest(); // 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 "CreateTrafficPolicyInstance"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; /** *

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The ID of the hosted zone that you want Amazon Route 53 to create resource * record sets in by using the configuration in a traffic policy.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

The domain name (such as example.com) or subdomain name (such as * www.example.com) for which Amazon Route 53 responds to DNS queries by using the * resource record sets that Route 53 creates for this traffic policy instance.

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

(Optional) The TTL that you want Amazon Route 53 to assign to all of the * resource record sets that it creates in the specified hosted zone.

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

(Optional) The TTL that you want Amazon Route 53 to assign to all of the * resource record sets that it creates in the specified hosted zone.

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

(Optional) The TTL that you want Amazon Route 53 to assign to all of the * resource record sets that it creates in the specified hosted zone.

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

(Optional) The TTL that you want Amazon Route 53 to assign to all of the * resource record sets that it creates in the specified hosted zone.

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

The ID of the traffic policy that you want to use 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 you want to use to create resource record * sets in the specified hosted zone.

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

The ID of the traffic policy that you want to use 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 you want to use 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 you want to use 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 you want to use to create resource record * sets in the specified hosted zone.

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

The ID of the traffic policy that you want to use to create resource record * sets in the specified hosted zone.

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

The ID of the traffic policy that you want to use to create resource record * sets in the specified hosted zone.

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

The version of the traffic policy that you want to use to create resource * record sets in the specified hosted zone.

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

The version of the traffic policy that you want to use to create resource * record sets in the specified hosted zone.

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

The version of the traffic policy that you want to use 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 you want to use to create resource * record sets in the specified hosted zone.

*/ inline CreateTrafficPolicyInstanceRequest& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;} private: 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_trafficPolicyId; bool m_trafficPolicyIdHasBeenSet = false; int m_trafficPolicyVersion; bool m_trafficPolicyVersionHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws