AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeReleaseLabelResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticmapreduce/EMR_EXPORTS.h>
10#include <aws/elasticmapreduce/model/OSRelease.h>
11#include <aws/elasticmapreduce/model/SimplifiedApplication.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EMR {
25namespace Model {
27 public:
28 AWS_EMR_API DescribeReleaseLabelResult() = default;
31
33
36 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
37 template <typename ReleaseLabelT = Aws::String>
38 void SetReleaseLabel(ReleaseLabelT&& value) {
39 m_releaseLabelHasBeenSet = true;
40 m_releaseLabel = std::forward<ReleaseLabelT>(value);
41 }
42 template <typename ReleaseLabelT = Aws::String>
44 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::Vector<SimplifiedApplication>& GetApplications() const { return m_applications; }
56 template <typename ApplicationsT = Aws::Vector<SimplifiedApplication>>
57 void SetApplications(ApplicationsT&& value) {
58 m_applicationsHasBeenSet = true;
59 m_applications = std::forward<ApplicationsT>(value);
60 }
61 template <typename ApplicationsT = Aws::Vector<SimplifiedApplication>>
63 SetApplications(std::forward<ApplicationsT>(value));
64 return *this;
65 }
66 template <typename ApplicationsT = SimplifiedApplication>
68 m_applicationsHasBeenSet = true;
69 m_applications.emplace_back(std::forward<ApplicationsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
86 SetNextToken(std::forward<NextTokenT>(value));
87 return *this;
88 }
90
92
99 inline const Aws::Vector<OSRelease>& GetAvailableOSReleases() const { return m_availableOSReleases; }
100 template <typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
101 void SetAvailableOSReleases(AvailableOSReleasesT&& value) {
102 m_availableOSReleasesHasBeenSet = true;
103 m_availableOSReleases = std::forward<AvailableOSReleasesT>(value);
104 }
105 template <typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
107 SetAvailableOSReleases(std::forward<AvailableOSReleasesT>(value));
108 return *this;
109 }
110 template <typename AvailableOSReleasesT = OSRelease>
111 DescribeReleaseLabelResult& AddAvailableOSReleases(AvailableOSReleasesT&& value) {
112 m_availableOSReleasesHasBeenSet = true;
113 m_availableOSReleases.emplace_back(std::forward<AvailableOSReleasesT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_releaseLabel;
134
136
137 Aws::String m_nextToken;
138
139 Aws::Vector<OSRelease> m_availableOSReleases;
140
141 Aws::String m_requestId;
142 bool m_releaseLabelHasBeenSet = false;
143 bool m_applicationsHasBeenSet = false;
144 bool m_nextTokenHasBeenSet = false;
145 bool m_availableOSReleasesHasBeenSet = false;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace EMR
151} // namespace Aws
DescribeReleaseLabelResult & WithApplications(ApplicationsT &&value)
AWS_EMR_API DescribeReleaseLabelResult()=default
AWS_EMR_API DescribeReleaseLabelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_EMR_API DescribeReleaseLabelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeReleaseLabelResult & AddAvailableOSReleases(AvailableOSReleasesT &&value)
DescribeReleaseLabelResult & WithAvailableOSReleases(AvailableOSReleasesT &&value)
DescribeReleaseLabelResult & WithRequestId(RequestIdT &&value)
DescribeReleaseLabelResult & WithNextToken(NextTokenT &&value)
void SetAvailableOSReleases(AvailableOSReleasesT &&value)
const Aws::Vector< SimplifiedApplication > & GetApplications() const
DescribeReleaseLabelResult & WithReleaseLabel(ReleaseLabelT &&value)
const Aws::Vector< OSRelease > & GetAvailableOSReleases() const
DescribeReleaseLabelResult & AddApplications(ApplicationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue