/** * 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 ListTrafficPoliciesResult { public: AWS_ROUTE53_API ListTrafficPoliciesResult(); AWS_ROUTE53_API ListTrafficPoliciesResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53_API ListTrafficPoliciesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

*/ inline const Aws::Vector& GetTrafficPolicySummaries() const{ return m_trafficPolicySummaries; } /** *

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

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

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

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

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

*/ inline ListTrafficPoliciesResult& WithTrafficPolicySummaries(const Aws::Vector& value) { SetTrafficPolicySummaries(value); return *this;} /** *

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

*/ inline ListTrafficPoliciesResult& WithTrafficPolicySummaries(Aws::Vector&& value) { SetTrafficPolicySummaries(std::move(value)); return *this;} /** *

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

*/ inline ListTrafficPoliciesResult& AddTrafficPolicySummaries(const TrafficPolicySummary& value) { m_trafficPolicySummaries.push_back(value); return *this; } /** *

A list that contains one TrafficPolicySummary element for each * traffic policy that was created by the current Amazon Web Services account.

*/ inline ListTrafficPoliciesResult& AddTrafficPolicySummaries(TrafficPolicySummary&& value) { m_trafficPolicySummaries.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 ListTrafficPolicies request and specifying the * value of TrafficPolicyIdMarker in the * TrafficPolicyIdMarker request 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 ListTrafficPolicies request and specifying the * value of TrafficPolicyIdMarker in the * TrafficPolicyIdMarker request 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 ListTrafficPolicies request and specifying the * value of TrafficPolicyIdMarker in the * TrafficPolicyIdMarker request parameter.

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

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

*/ inline const Aws::String& GetTrafficPolicyIdMarker() const{ return m_trafficPolicyIdMarker; } /** *

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

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

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

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

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

*/ inline void SetTrafficPolicyIdMarker(const char* value) { m_trafficPolicyIdMarker.assign(value); } /** *

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

*/ inline ListTrafficPoliciesResult& WithTrafficPolicyIdMarker(const Aws::String& value) { SetTrafficPolicyIdMarker(value); return *this;} /** *

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

*/ inline ListTrafficPoliciesResult& WithTrafficPolicyIdMarker(Aws::String&& value) { SetTrafficPolicyIdMarker(std::move(value)); return *this;} /** *

If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy in the * next group of MaxItems traffic policies.

*/ inline ListTrafficPoliciesResult& WithTrafficPolicyIdMarker(const char* value) { SetTrafficPolicyIdMarker(value); return *this;} /** *

The value that you specified for the MaxItems parameter in the * ListTrafficPolicies 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 * ListTrafficPolicies 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 * ListTrafficPolicies 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 * ListTrafficPolicies 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 * ListTrafficPolicies request that produced the current response.

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

The value that you specified for the MaxItems parameter in the * ListTrafficPolicies request that produced the current response.

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

The value that you specified for the MaxItems parameter in the * ListTrafficPolicies request that produced the current response.

*/ inline ListTrafficPoliciesResult& 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 ListTrafficPoliciesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListTrafficPoliciesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListTrafficPoliciesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_trafficPolicySummaries; bool m_isTruncated; Aws::String m_trafficPolicyIdMarker; Aws::String m_maxItems; Aws::String m_requestId; }; } // namespace Model } // namespace Route53 } // namespace Aws