AWS SDK for C++  1.9.132
AWS SDK for C++
CreateRoleAliasRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <aws/iot/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace IoT
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateRoleAlias"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetRoleAlias() const{ return m_roleAlias; }
42 
47  inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
48 
53  inline void SetRoleAlias(const Aws::String& value) { m_roleAliasHasBeenSet = true; m_roleAlias = value; }
54 
59  inline void SetRoleAlias(Aws::String&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::move(value); }
60 
65  inline void SetRoleAlias(const char* value) { m_roleAliasHasBeenSet = true; m_roleAlias.assign(value); }
66 
71  inline CreateRoleAliasRequest& WithRoleAlias(const Aws::String& value) { SetRoleAlias(value); return *this;}
72 
77  inline CreateRoleAliasRequest& WithRoleAlias(Aws::String&& value) { SetRoleAlias(std::move(value)); return *this;}
78 
83  inline CreateRoleAliasRequest& WithRoleAlias(const char* value) { SetRoleAlias(value); return *this;}
84 
85 
89  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
90 
94  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
95 
99  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 
104  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
105 
109  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
110 
114  inline CreateRoleAliasRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
115 
119  inline CreateRoleAliasRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
120 
124  inline CreateRoleAliasRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
125 
126 
131  inline int GetCredentialDurationSeconds() const{ return m_credentialDurationSeconds; }
132 
137  inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
138 
143  inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
144 
149  inline CreateRoleAliasRequest& WithCredentialDurationSeconds(int value) { SetCredentialDurationSeconds(value); return *this;}
150 
151 
159  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
160 
168  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 
177  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
178 
186  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
195  inline CreateRoleAliasRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
196 
204  inline CreateRoleAliasRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
205 
213  inline CreateRoleAliasRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
214 
222  inline CreateRoleAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
223 
224  private:
225 
226  Aws::String m_roleAlias;
227  bool m_roleAliasHasBeenSet;
228 
229  Aws::String m_roleArn;
230  bool m_roleArnHasBeenSet;
231 
232  int m_credentialDurationSeconds;
233  bool m_credentialDurationSecondsHasBeenSet;
234 
235  Aws::Vector<Tag> m_tags;
236  bool m_tagsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace IoT
241 } // namespace Aws
Aws::IoT::Model::CreateRoleAliasRequest::WithTags
CreateRoleAliasRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateRoleAliasRequest.h:195
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(const char *value)
Definition: CreateRoleAliasRequest.h:65
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleArn
CreateRoleAliasRequest & WithRoleArn(const Aws::String &value)
Definition: CreateRoleAliasRequest.h:114
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleAlias
CreateRoleAliasRequest & WithRoleAlias(Aws::String &&value)
Definition: CreateRoleAliasRequest.h:77
Aws::IoT::Model::CreateRoleAliasRequest::CredentialDurationSecondsHasBeenSet
bool CredentialDurationSecondsHasBeenSet() const
Definition: CreateRoleAliasRequest.h:137
Aws::IoT::Model::CreateRoleAliasRequest::GetCredentialDurationSeconds
int GetCredentialDurationSeconds() const
Definition: CreateRoleAliasRequest.h:131
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(Aws::String &&value)
Definition: CreateRoleAliasRequest.h:59
Aws::IoT::Model::CreateRoleAliasRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateRoleAliasRequest.h:186
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateRoleAliasRequest.h:109
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateRoleAliasRequest.h:104
AWSVector.h
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateRoleAliasRequest.h:99
Aws::IoT::Model::CreateRoleAliasRequest::WithTags
CreateRoleAliasRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateRoleAliasRequest.h:204
Aws::IoT::Model::CreateRoleAliasRequest::RoleAliasHasBeenSet
bool RoleAliasHasBeenSet() const
Definition: CreateRoleAliasRequest.h:47
Aws::IoT::Model::CreateRoleAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::Tag
Definition: Tag.h:33
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleArn
CreateRoleAliasRequest & WithRoleArn(const char *value)
Definition: CreateRoleAliasRequest.h:124
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleArn
CreateRoleAliasRequest & WithRoleArn(Aws::String &&value)
Definition: CreateRoleAliasRequest.h:119
Aws::IoT::Model::CreateRoleAliasRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateRoleAliasRequest.h:177
Aws::IoT::Model::CreateRoleAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRoleAliasRequest.h:32
Aws::IoT::Model::CreateRoleAliasRequest::CreateRoleAliasRequest
CreateRoleAliasRequest()
Aws::IoT::Model::CreateRoleAliasRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateRoleAliasRequest.h:89
Aws::IoT::Model::CreateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(const Aws::String &value)
Definition: CreateRoleAliasRequest.h:53
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateRoleAliasRequest
Definition: CreateRoleAliasRequest.h:24
Aws::IoT::Model::CreateRoleAliasRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRoleAliasRequest.h:168
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleAlias
CreateRoleAliasRequest & WithRoleAlias(const char *value)
Definition: CreateRoleAliasRequest.h:83
Aws::IoT::Model::CreateRoleAliasRequest::AddTags
CreateRoleAliasRequest & AddTags(const Tag &value)
Definition: CreateRoleAliasRequest.h:213
Aws::IoT::Model::CreateRoleAliasRequest::WithCredentialDurationSeconds
CreateRoleAliasRequest & WithCredentialDurationSeconds(int value)
Definition: CreateRoleAliasRequest.h:149
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CreateRoleAliasRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateRoleAliasRequest.h:159
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateRoleAliasRequest::GetRoleAlias
const Aws::String & GetRoleAlias() const
Definition: CreateRoleAliasRequest.h:41
Aws::IoT::Model::CreateRoleAliasRequest::AddTags
CreateRoleAliasRequest & AddTags(Tag &&value)
Definition: CreateRoleAliasRequest.h:222
Aws::IoT::Model::CreateRoleAliasRequest::WithRoleAlias
CreateRoleAliasRequest & WithRoleAlias(const Aws::String &value)
Definition: CreateRoleAliasRequest.h:71
IoTRequest.h
Aws::IoT::Model::CreateRoleAliasRequest::SetCredentialDurationSeconds
void SetCredentialDurationSeconds(int value)
Definition: CreateRoleAliasRequest.h:143
Tag.h
IoT_EXPORTS.h
Aws::IoT::Model::CreateRoleAliasRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateRoleAliasRequest.h:94