1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/autoscaling-plans/model/ScalingPlanResource.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace AutoScalingPlans 26 { 27 namespace Model 28 { 29 class AWS_AUTOSCALINGPLANS_API DescribeScalingPlanResourcesResult 30 { 31 public: 32 DescribeScalingPlanResourcesResult(); 33 DescribeScalingPlanResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 DescribeScalingPlanResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>Information about the scalable resources.</p> 39 */ GetScalingPlanResources()40 inline const Aws::Vector<ScalingPlanResource>& GetScalingPlanResources() const{ return m_scalingPlanResources; } 41 42 /** 43 * <p>Information about the scalable resources.</p> 44 */ SetScalingPlanResources(const Aws::Vector<ScalingPlanResource> & value)45 inline void SetScalingPlanResources(const Aws::Vector<ScalingPlanResource>& value) { m_scalingPlanResources = value; } 46 47 /** 48 * <p>Information about the scalable resources.</p> 49 */ SetScalingPlanResources(Aws::Vector<ScalingPlanResource> && value)50 inline void SetScalingPlanResources(Aws::Vector<ScalingPlanResource>&& value) { m_scalingPlanResources = std::move(value); } 51 52 /** 53 * <p>Information about the scalable resources.</p> 54 */ WithScalingPlanResources(const Aws::Vector<ScalingPlanResource> & value)55 inline DescribeScalingPlanResourcesResult& WithScalingPlanResources(const Aws::Vector<ScalingPlanResource>& value) { SetScalingPlanResources(value); return *this;} 56 57 /** 58 * <p>Information about the scalable resources.</p> 59 */ WithScalingPlanResources(Aws::Vector<ScalingPlanResource> && value)60 inline DescribeScalingPlanResourcesResult& WithScalingPlanResources(Aws::Vector<ScalingPlanResource>&& value) { SetScalingPlanResources(std::move(value)); return *this;} 61 62 /** 63 * <p>Information about the scalable resources.</p> 64 */ AddScalingPlanResources(const ScalingPlanResource & value)65 inline DescribeScalingPlanResourcesResult& AddScalingPlanResources(const ScalingPlanResource& value) { m_scalingPlanResources.push_back(value); return *this; } 66 67 /** 68 * <p>Information about the scalable resources.</p> 69 */ AddScalingPlanResources(ScalingPlanResource && value)70 inline DescribeScalingPlanResourcesResult& AddScalingPlanResources(ScalingPlanResource&& value) { m_scalingPlanResources.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>The token required to get the next set of results. This value is 75 * <code>null</code> if there are no more results to return.</p> 76 */ GetNextToken()77 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 78 79 /** 80 * <p>The token required to get the next set of results. This value is 81 * <code>null</code> if there are no more results to return.</p> 82 */ SetNextToken(const Aws::String & value)83 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 84 85 /** 86 * <p>The token required to get the next set of results. This value is 87 * <code>null</code> if there are no more results to return.</p> 88 */ SetNextToken(Aws::String && value)89 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 90 91 /** 92 * <p>The token required to get the next set of results. This value is 93 * <code>null</code> if there are no more results to return.</p> 94 */ SetNextToken(const char * value)95 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 96 97 /** 98 * <p>The token required to get the next set of results. This value is 99 * <code>null</code> if there are no more results to return.</p> 100 */ WithNextToken(const Aws::String & value)101 inline DescribeScalingPlanResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 102 103 /** 104 * <p>The token required to get the next set of results. This value is 105 * <code>null</code> if there are no more results to return.</p> 106 */ WithNextToken(Aws::String && value)107 inline DescribeScalingPlanResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 108 109 /** 110 * <p>The token required to get the next set of results. This value is 111 * <code>null</code> if there are no more results to return.</p> 112 */ WithNextToken(const char * value)113 inline DescribeScalingPlanResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<ScalingPlanResource> m_scalingPlanResources; 118 119 Aws::String m_nextToken; 120 }; 121 122 } // namespace Model 123 } // namespace AutoScalingPlans 124 } // namespace Aws 125