AWS SDK for C++  1.9.125
AWS SDK for C++
UpdateRoleAliasRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateRoleAlias"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetRoleAlias() const{ return m_roleAlias; }
39 
43  inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
44 
48  inline void SetRoleAlias(const Aws::String& value) { m_roleAliasHasBeenSet = true; m_roleAlias = value; }
49 
53  inline void SetRoleAlias(Aws::String&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::move(value); }
54 
58  inline void SetRoleAlias(const char* value) { m_roleAliasHasBeenSet = true; m_roleAlias.assign(value); }
59 
63  inline UpdateRoleAliasRequest& WithRoleAlias(const Aws::String& value) { SetRoleAlias(value); return *this;}
64 
68  inline UpdateRoleAliasRequest& WithRoleAlias(Aws::String&& value) { SetRoleAlias(std::move(value)); return *this;}
69 
73  inline UpdateRoleAliasRequest& WithRoleAlias(const char* value) { SetRoleAlias(value); return *this;}
74 
75 
79  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
80 
84  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
85 
89  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
90 
94  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
95 
99  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
100 
104  inline UpdateRoleAliasRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
105 
109  inline UpdateRoleAliasRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
110 
114  inline UpdateRoleAliasRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
115 
116 
120  inline int GetCredentialDurationSeconds() const{ return m_credentialDurationSeconds; }
121 
125  inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
126 
130  inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
131 
135  inline UpdateRoleAliasRequest& WithCredentialDurationSeconds(int value) { SetCredentialDurationSeconds(value); return *this;}
136 
137  private:
138 
139  Aws::String m_roleAlias;
140  bool m_roleAliasHasBeenSet;
141 
142  Aws::String m_roleArn;
143  bool m_roleArnHasBeenSet;
144 
145  int m_credentialDurationSeconds;
146  bool m_credentialDurationSecondsHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace IoT
151 } // namespace Aws
Aws::IoT::Model::UpdateRoleAliasRequest::SetCredentialDurationSeconds
void SetCredentialDurationSeconds(int value)
Definition: UpdateRoleAliasRequest.h:130
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleArn
UpdateRoleAliasRequest & WithRoleArn(const Aws::String &value)
Definition: UpdateRoleAliasRequest.h:104
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: UpdateRoleAliasRequest.h:94
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleAlias
UpdateRoleAliasRequest & WithRoleAlias(Aws::String &&value)
Definition: UpdateRoleAliasRequest.h:68
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: UpdateRoleAliasRequest.h:99
Aws::IoT::Model::UpdateRoleAliasRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: UpdateRoleAliasRequest.h:79
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleArn
UpdateRoleAliasRequest & WithRoleArn(Aws::String &&value)
Definition: UpdateRoleAliasRequest.h:109
Aws::IoT::Model::UpdateRoleAliasRequest::UpdateRoleAliasRequest
UpdateRoleAliasRequest()
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: UpdateRoleAliasRequest.h:89
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleAlias
UpdateRoleAliasRequest & WithRoleAlias(const char *value)
Definition: UpdateRoleAliasRequest.h:73
Aws::IoT::Model::UpdateRoleAliasRequest::GetRoleAlias
const Aws::String & GetRoleAlias() const
Definition: UpdateRoleAliasRequest.h:38
Aws::IoT::Model::UpdateRoleAliasRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::UpdateRoleAliasRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: UpdateRoleAliasRequest.h:84
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleArn
UpdateRoleAliasRequest & WithRoleArn(const char *value)
Definition: UpdateRoleAliasRequest.h:114
Aws::IoT::Model::UpdateRoleAliasRequest::RoleAliasHasBeenSet
bool RoleAliasHasBeenSet() const
Definition: UpdateRoleAliasRequest.h:43
Aws::IoT::Model::UpdateRoleAliasRequest::GetCredentialDurationSeconds
int GetCredentialDurationSeconds() const
Definition: UpdateRoleAliasRequest.h:120
AWSString.h
Aws::IoT::Model::UpdateRoleAliasRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRoleAliasRequest.h:30
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(Aws::String &&value)
Definition: UpdateRoleAliasRequest.h:53
Aws::IoT::Model::UpdateRoleAliasRequest::WithRoleAlias
UpdateRoleAliasRequest & WithRoleAlias(const Aws::String &value)
Definition: UpdateRoleAliasRequest.h:63
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(const Aws::String &value)
Definition: UpdateRoleAliasRequest.h:48
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::UpdateRoleAliasRequest::WithCredentialDurationSeconds
UpdateRoleAliasRequest & WithCredentialDurationSeconds(int value)
Definition: UpdateRoleAliasRequest.h:135
Aws::IoT::Model::UpdateRoleAliasRequest
Definition: UpdateRoleAliasRequest.h:22
IoTRequest.h
Aws::IoT::Model::UpdateRoleAliasRequest::SetRoleAlias
void SetRoleAlias(const char *value)
Definition: UpdateRoleAliasRequest.h:58
Aws::IoT::Model::UpdateRoleAliasRequest::CredentialDurationSecondsHasBeenSet
bool CredentialDurationSecondsHasBeenSet() const
Definition: UpdateRoleAliasRequest.h:125
IoT_EXPORTS.h