/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that contains the response information for the * request.

See Also:

AWS * API Reference

*/ class ListTrafficPolicyVersionsResult { public: AWS_ROUTE53_API ListTrafficPolicyVersionsResult(); AWS_ROUTE53_API ListTrafficPolicyVersionsResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53_API ListTrafficPolicyVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline const Aws::Vector& GetTrafficPolicies() const{ return m_trafficPolicies; } /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline void SetTrafficPolicies(const Aws::Vector& value) { m_trafficPolicies = value; } /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline void SetTrafficPolicies(Aws::Vector&& value) { m_trafficPolicies = std::move(value); } /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline ListTrafficPolicyVersionsResult& WithTrafficPolicies(const Aws::Vector& value) { SetTrafficPolicies(value); return *this;} /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline ListTrafficPolicyVersionsResult& WithTrafficPolicies(Aws::Vector&& value) { SetTrafficPolicies(std::move(value)); return *this;} /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline ListTrafficPolicyVersionsResult& AddTrafficPolicies(const TrafficPolicy& value) { m_trafficPolicies.push_back(value); return *this; } /** *

A list that contains one TrafficPolicy element for each traffic * policy version that is associated with the specified traffic policy.

*/ inline ListTrafficPolicyVersionsResult& AddTrafficPolicies(TrafficPolicy&& value) { m_trafficPolicies.push_back(std::move(value)); return *this; } /** *

A flag that indicates whether there are more traffic policies to be listed. * If the response was truncated, you can get the next group of traffic policies by * submitting another ListTrafficPolicyVersions request and specifying * the value of NextMarker in the marker parameter.

*/ inline bool GetIsTruncated() const{ return m_isTruncated; } /** *

A flag that indicates whether there are more traffic policies to be listed. * If the response was truncated, you can get the next group of traffic policies by * submitting another ListTrafficPolicyVersions request and specifying * the value of NextMarker in the marker parameter.

*/ inline void SetIsTruncated(bool value) { m_isTruncated = value; } /** *

A flag that indicates whether there are more traffic policies to be listed. * If the response was truncated, you can get the next group of traffic policies by * submitting another ListTrafficPolicyVersions request and specifying * the value of NextMarker in the marker parameter.

*/ inline ListTrafficPolicyVersionsResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;} /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline const Aws::String& GetTrafficPolicyVersionMarker() const{ return m_trafficPolicyVersionMarker; } /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline void SetTrafficPolicyVersionMarker(const Aws::String& value) { m_trafficPolicyVersionMarker = value; } /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline void SetTrafficPolicyVersionMarker(Aws::String&& value) { m_trafficPolicyVersionMarker = std::move(value); } /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline void SetTrafficPolicyVersionMarker(const char* value) { m_trafficPolicyVersionMarker.assign(value); } /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline ListTrafficPolicyVersionsResult& WithTrafficPolicyVersionMarker(const Aws::String& value) { SetTrafficPolicyVersionMarker(value); return *this;} /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline ListTrafficPolicyVersionsResult& WithTrafficPolicyVersionMarker(Aws::String&& value) { SetTrafficPolicyVersionMarker(std::move(value)); return *this;} /** *

If IsTruncated is true, the value of * TrafficPolicyVersionMarker identifies the first traffic policy that * Amazon Route 53 will return if you submit another request. Call * ListTrafficPolicyVersions again and specify the value of * TrafficPolicyVersionMarker in the * TrafficPolicyVersionMarker request parameter.

This element * is present only if IsTruncated is true.

*/ inline ListTrafficPolicyVersionsResult& WithTrafficPolicyVersionMarker(const char* value) { SetTrafficPolicyVersionMarker(value); return *this;} /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline const Aws::String& GetMaxItems() const{ return m_maxItems; } /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline void SetMaxItems(const Aws::String& value) { m_maxItems = value; } /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline void SetMaxItems(Aws::String&& value) { m_maxItems = std::move(value); } /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline void SetMaxItems(const char* value) { m_maxItems.assign(value); } /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline ListTrafficPolicyVersionsResult& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;} /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline ListTrafficPolicyVersionsResult& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;} /** *

The value that you specified for the maxitems parameter in the * ListTrafficPolicyVersions request that produced the current * response.

*/ inline ListTrafficPolicyVersionsResult& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ListTrafficPolicyVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListTrafficPolicyVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListTrafficPolicyVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_trafficPolicies; bool m_isTruncated; Aws::String m_trafficPolicyVersionMarker; Aws::String m_maxItems; Aws::String m_requestId; }; } // namespace Model } // namespace Route53 } // namespace Aws