/** * 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 update based on a specified traffic policy instance.

See * Also:

AWS * API Reference

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The ID of the traffic policy instance that you want to update.

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

The TTL that you want Amazon Route 53 to assign to all of the updated * resource record sets.

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

The TTL that you want Amazon Route 53 to assign to all of the updated * resource record sets.

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

The TTL that you want Amazon Route 53 to assign to all of the updated * resource record sets.

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

The TTL that you want Amazon Route 53 to assign to all of the updated * resource record sets.

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

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

*/ inline const Aws::String& GetTrafficPolicyId() const{ return m_trafficPolicyId; } /** *

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

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

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

*/ inline void SetTrafficPolicyId(const Aws::String& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = value; } /** *

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

*/ inline void SetTrafficPolicyId(Aws::String&& value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId = std::move(value); } /** *

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

*/ inline void SetTrafficPolicyId(const char* value) { m_trafficPolicyIdHasBeenSet = true; m_trafficPolicyId.assign(value); } /** *

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

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

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

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

The ID of the traffic policy that you want Amazon Route 53 to use to update * resource record sets for the specified traffic policy instance.

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

The version of the traffic policy that you want Amazon Route 53 to use to * update resource record sets for the specified traffic policy instance.

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

The version of the traffic policy that you want Amazon Route 53 to use to * update resource record sets for the specified traffic policy instance.

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

The version of the traffic policy that you want Amazon Route 53 to use to * update resource record sets for the specified traffic policy instance.

*/ inline void SetTrafficPolicyVersion(int value) { m_trafficPolicyVersionHasBeenSet = true; m_trafficPolicyVersion = value; } /** *

The version of the traffic policy that you want Amazon Route 53 to use to * update resource record sets for the specified traffic policy instance.

*/ inline UpdateTrafficPolicyInstanceRequest& WithTrafficPolicyVersion(int value) { SetTrafficPolicyVersion(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = 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