AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateStudioRequest.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/EMRRequest.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EMR {
16namespace Model {
17
21 public:
22 AWS_EMR_API UpdateStudioRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateStudio"; }
29
30 AWS_EMR_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetStudioId() const { return m_studioId; }
39 inline bool StudioIdHasBeenSet() const { return m_studioIdHasBeenSet; }
40 template <typename StudioIdT = Aws::String>
41 void SetStudioId(StudioIdT&& value) {
42 m_studioIdHasBeenSet = true;
43 m_studioId = std::forward<StudioIdT>(value);
44 }
45 template <typename StudioIdT = Aws::String>
46 UpdateStudioRequest& WithStudioId(StudioIdT&& value) {
47 SetStudioId(std::forward<StudioIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 UpdateStudioRequest& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 UpdateStudioRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
96 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
97 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
98 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
99 void SetSubnetIds(SubnetIdsT&& value) {
100 m_subnetIdsHasBeenSet = true;
101 m_subnetIds = std::forward<SubnetIdsT>(value);
102 }
103 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
104 UpdateStudioRequest& WithSubnetIds(SubnetIdsT&& value) {
105 SetSubnetIds(std::forward<SubnetIdsT>(value));
106 return *this;
107 }
108 template <typename SubnetIdsT = Aws::String>
109 UpdateStudioRequest& AddSubnetIds(SubnetIdsT&& value) {
110 m_subnetIdsHasBeenSet = true;
111 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetDefaultS3Location() const { return m_defaultS3Location; }
122 inline bool DefaultS3LocationHasBeenSet() const { return m_defaultS3LocationHasBeenSet; }
123 template <typename DefaultS3LocationT = Aws::String>
124 void SetDefaultS3Location(DefaultS3LocationT&& value) {
125 m_defaultS3LocationHasBeenSet = true;
126 m_defaultS3Location = std::forward<DefaultS3LocationT>(value);
127 }
128 template <typename DefaultS3LocationT = Aws::String>
129 UpdateStudioRequest& WithDefaultS3Location(DefaultS3LocationT&& value) {
130 SetDefaultS3Location(std::forward<DefaultS3LocationT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
141 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
142 template <typename EncryptionKeyArnT = Aws::String>
143 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
144 m_encryptionKeyArnHasBeenSet = true;
145 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
146 }
147 template <typename EncryptionKeyArnT = Aws::String>
148 UpdateStudioRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
149 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_studioId;
155
156 Aws::String m_name;
157
158 Aws::String m_description;
159
160 Aws::Vector<Aws::String> m_subnetIds;
161
162 Aws::String m_defaultS3Location;
163
164 Aws::String m_encryptionKeyArn;
165 bool m_studioIdHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_subnetIdsHasBeenSet = false;
169 bool m_defaultS3LocationHasBeenSet = false;
170 bool m_encryptionKeyArnHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace EMR
175} // namespace Aws
const Aws::Vector< Aws::String > & GetSubnetIds() const
const Aws::String & GetStudioId() const
UpdateStudioRequest & WithStudioId(StudioIdT &&value)
const Aws::String & GetName() const
void SetDefaultS3Location(DefaultS3LocationT &&value)
const Aws::String & GetDefaultS3Location() const
void SetDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
const Aws::String & GetEncryptionKeyArn() const
UpdateStudioRequest & WithSubnetIds(SubnetIdsT &&value)
UpdateStudioRequest & WithDefaultS3Location(DefaultS3LocationT &&value)
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_EMR_API UpdateStudioRequest()=default
UpdateStudioRequest & WithName(NameT &&value)
UpdateStudioRequest & AddSubnetIds(SubnetIdsT &&value)
const Aws::String & GetDescription() const
AWS_EMR_API Aws::String SerializePayload() const override
UpdateStudioRequest & WithDescription(DescriptionT &&value)
UpdateStudioRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector