AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DescribeReleaseLabelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11#include <aws/elasticmapreduce/model/OSRelease.h>
12#include <aws/elasticmapreduce/model/SimplifiedApplication.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace EMR {
26namespace Model {
28 public:
29 AWS_EMR_API DescribeReleaseLabelResult() = default;
32
34
37 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
38 template <typename ReleaseLabelT = Aws::String>
39 void SetReleaseLabel(ReleaseLabelT&& value) {
40 m_releaseLabelHasBeenSet = true;
41 m_releaseLabel = std::forward<ReleaseLabelT>(value);
42 }
43 template <typename ReleaseLabelT = Aws::String>
45 SetReleaseLabel(std::forward<ReleaseLabelT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<SimplifiedApplication>& GetApplications() const { return m_applications; }
57 template <typename ApplicationsT = Aws::Vector<SimplifiedApplication>>
58 void SetApplications(ApplicationsT&& value) {
59 m_applicationsHasBeenSet = true;
60 m_applications = std::forward<ApplicationsT>(value);
61 }
62 template <typename ApplicationsT = Aws::Vector<SimplifiedApplication>>
64 SetApplications(std::forward<ApplicationsT>(value));
65 return *this;
66 }
67 template <typename ApplicationsT = SimplifiedApplication>
69 m_applicationsHasBeenSet = true;
70 m_applications.emplace_back(std::forward<ApplicationsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
100 inline const Aws::Vector<OSRelease>& GetAvailableOSReleases() const { return m_availableOSReleases; }
101 template <typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
102 void SetAvailableOSReleases(AvailableOSReleasesT&& value) {
103 m_availableOSReleasesHasBeenSet = true;
104 m_availableOSReleases = std::forward<AvailableOSReleasesT>(value);
105 }
106 template <typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
108 SetAvailableOSReleases(std::forward<AvailableOSReleasesT>(value));
109 return *this;
110 }
111 template <typename AvailableOSReleasesT = OSRelease>
112 DescribeReleaseLabelResult& AddAvailableOSReleases(AvailableOSReleasesT&& value) {
113 m_availableOSReleasesHasBeenSet = true;
114 m_availableOSReleases.emplace_back(std::forward<AvailableOSReleasesT>(value));
115 return *this;
116 }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template <typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) {
124 m_requestIdHasBeenSet = true;
125 m_requestId = std::forward<RequestIdT>(value);
126 }
127 template <typename RequestIdT = Aws::String>
129 SetRequestId(std::forward<RequestIdT>(value));
130 return *this;
131 }
133 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
134
135 private:
136 Aws::String m_releaseLabel;
137
139
140 Aws::String m_nextToken;
141
142 Aws::Vector<OSRelease> m_availableOSReleases;
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_releaseLabelHasBeenSet = false;
147 bool m_applicationsHasBeenSet = false;
148 bool m_nextTokenHasBeenSet = false;
149 bool m_availableOSReleasesHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace EMR
155} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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