AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeReleaseLabelResult.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/model/SimplifiedApplication.h>
11#include <aws/elasticmapreduce/model/OSRelease.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace EMR
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EMR_API DescribeReleaseLabelResult() = default;
36
37
39
42 inline const Aws::String& GetReleaseLabel() const { return m_releaseLabel; }
43 template<typename ReleaseLabelT = Aws::String>
44 void SetReleaseLabel(ReleaseLabelT&& value) { m_releaseLabelHasBeenSet = true; m_releaseLabel = std::forward<ReleaseLabelT>(value); }
45 template<typename ReleaseLabelT = Aws::String>
46 DescribeReleaseLabelResult& WithReleaseLabel(ReleaseLabelT&& value) { SetReleaseLabel(std::forward<ReleaseLabelT>(value)); return *this;}
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) { m_applicationsHasBeenSet = true; m_applications = std::forward<ApplicationsT>(value); }
58 template<typename ApplicationsT = Aws::Vector<SimplifiedApplication>>
59 DescribeReleaseLabelResult& WithApplications(ApplicationsT&& value) { SetApplications(std::forward<ApplicationsT>(value)); return *this;}
60 template<typename ApplicationsT = SimplifiedApplication>
61 DescribeReleaseLabelResult& AddApplications(ApplicationsT&& value) { m_applicationsHasBeenSet = true; m_applications.emplace_back(std::forward<ApplicationsT>(value)); return *this; }
63
65
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 DescribeReleaseLabelResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
83 inline const Aws::Vector<OSRelease>& GetAvailableOSReleases() const { return m_availableOSReleases; }
84 template<typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
85 void SetAvailableOSReleases(AvailableOSReleasesT&& value) { m_availableOSReleasesHasBeenSet = true; m_availableOSReleases = std::forward<AvailableOSReleasesT>(value); }
86 template<typename AvailableOSReleasesT = Aws::Vector<OSRelease>>
87 DescribeReleaseLabelResult& WithAvailableOSReleases(AvailableOSReleasesT&& value) { SetAvailableOSReleases(std::forward<AvailableOSReleasesT>(value)); return *this;}
88 template<typename AvailableOSReleasesT = OSRelease>
89 DescribeReleaseLabelResult& AddAvailableOSReleases(AvailableOSReleasesT&& value) { m_availableOSReleasesHasBeenSet = true; m_availableOSReleases.emplace_back(std::forward<AvailableOSReleasesT>(value)); return *this; }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template<typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
97 template<typename RequestIdT = Aws::String>
98 DescribeReleaseLabelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
100 private:
101
102 Aws::String m_releaseLabel;
103 bool m_releaseLabelHasBeenSet = false;
104
106 bool m_applicationsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110
111 Aws::Vector<OSRelease> m_availableOSReleases;
112 bool m_availableOSReleasesHasBeenSet = false;
113
114 Aws::String m_requestId;
115 bool m_requestIdHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace EMR
120} // 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