/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that contains information about the latest version of one
* traffic policy that is associated with the current Amazon Web Services
* account.See Also:
AWS
* API Reference
The ID that Amazon Route 53 assigned to the traffic policy when you created * it.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID that Amazon Route 53 assigned to the traffic policy when you created * it.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID that Amazon Route 53 assigned to the 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 the 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 the 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 the traffic policy when you created * it.
*/ inline TrafficPolicySummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID that Amazon Route 53 assigned to the traffic policy when you created * it.
*/ inline TrafficPolicySummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID that Amazon Route 53 assigned to the traffic policy when you created * it.
*/ inline TrafficPolicySummary& WithId(const char* value) { SetId(value); return *this;} /** *The name that you specified for the traffic policy when you created it.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name that you specified for the traffic policy when you created it.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name that you specified for the traffic policy when you created it.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name that you specified for the traffic policy when you created it.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name that you specified for the traffic policy when you created it.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name that you specified for the traffic policy when you created it.
*/ inline TrafficPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name that you specified for the traffic policy when you created it.
*/ inline TrafficPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name that you specified for the traffic policy when you created it.
*/ inline TrafficPolicySummary& 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 TrafficPolicySummary& 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 TrafficPolicySummary& WithType(RRType&& value) { SetType(std::move(value)); return *this;} /** *The version number of the latest version of the traffic policy.
*/ inline int GetLatestVersion() const{ return m_latestVersion; } /** *The version number of the latest version of the traffic policy.
*/ inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; } /** *The version number of the latest version of the traffic policy.
*/ inline void SetLatestVersion(int value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; } /** *The version number of the latest version of the traffic policy.
*/ inline TrafficPolicySummary& WithLatestVersion(int value) { SetLatestVersion(value); return *this;} /** *The number of traffic policies that are associated with the current Amazon * Web Services account.
*/ inline int GetTrafficPolicyCount() const{ return m_trafficPolicyCount; } /** *The number of traffic policies that are associated with the current Amazon * Web Services account.
*/ inline bool TrafficPolicyCountHasBeenSet() const { return m_trafficPolicyCountHasBeenSet; } /** *The number of traffic policies that are associated with the current Amazon * Web Services account.
*/ inline void SetTrafficPolicyCount(int value) { m_trafficPolicyCountHasBeenSet = true; m_trafficPolicyCount = value; } /** *The number of traffic policies that are associated with the current Amazon * Web Services account.
*/ inline TrafficPolicySummary& WithTrafficPolicyCount(int value) { SetTrafficPolicyCount(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RRType m_type; bool m_typeHasBeenSet = false; int m_latestVersion; bool m_latestVersionHasBeenSet = false; int m_trafficPolicyCount; bool m_trafficPolicyCountHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws