AWS SDK for C++  1.9.40
AWS SDK for C++
GetRoleCredentialsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sso/SSO_EXPORTS.h>
8 #include <aws/sso/SSORequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace SSO
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetRoleCredentials"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
41 
42 
46  inline const Aws::String& GetRoleName() const{ return m_roleName; }
47 
51  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
52 
56  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
57 
61  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
62 
66  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
67 
71  inline GetRoleCredentialsRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
72 
76  inline GetRoleCredentialsRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
77 
81  inline GetRoleCredentialsRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
82 
83 
87  inline const Aws::String& GetAccountId() const{ return m_accountId; }
88 
92  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
93 
97  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
98 
102  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
103 
107  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
108 
112  inline GetRoleCredentialsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
113 
117  inline GetRoleCredentialsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
118 
122  inline GetRoleCredentialsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
123 
124 
131  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
132 
139  inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
140 
147  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
148 
155  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
156 
163  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
164 
171  inline GetRoleCredentialsRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
172 
179  inline GetRoleCredentialsRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
180 
187  inline GetRoleCredentialsRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
188 
189  private:
190 
191  Aws::String m_roleName;
192  bool m_roleNameHasBeenSet;
193 
194  Aws::String m_accountId;
195  bool m_accountIdHasBeenSet;
196 
197  Aws::String m_accessToken;
198  bool m_accessTokenHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace SSO
203 } // namespace Aws
Aws::IoTSiteWise::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:97
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccessToken
void SetAccessToken(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:147
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccessToken
GetRoleCredentialsRequest & WithAccessToken(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:171
Aws::Http::URI
Definition: URI.h:32
Aws::SSO::Model::GetRoleCredentialsRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: GetRoleCredentialsRequest.h:46
Aws::SSO::Model::GetRoleCredentialsRequest::GetAccessToken
const Aws::String & GetAccessToken() const
Definition: GetRoleCredentialsRequest.h:131
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSO::Model::GetRoleCredentialsRequest::SerializePayload
Aws::String SerializePayload() const override
SSO_EXPORTS.h
Aws::SSO::Model::GetRoleCredentialsRequest
Definition: GetRoleCredentialsRequest.h:26
Aws::SSO::Model::GetRoleCredentialsRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:56
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccountId
GetRoleCredentialsRequest & WithAccountId(const char *value)
Definition: GetRoleCredentialsRequest.h:122
AWS_SSO_API
#define AWS_SSO_API
Definition: SSO_EXPORTS.h:28
Aws::SSO::Model::GetRoleCredentialsRequest::SetRoleName
void SetRoleName(const char *value)
Definition: GetRoleCredentialsRequest.h:66
Aws::SSO::Model::GetRoleCredentialsRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetRoleCredentialsRequest.h:92
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccessToken
GetRoleCredentialsRequest & WithAccessToken(const char *value)
Definition: GetRoleCredentialsRequest.h:187
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccessToken
void SetAccessToken(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:155
Aws::SSO::Model::GetRoleCredentialsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::SSO::Model::GetRoleCredentialsRequest::WithRoleName
GetRoleCredentialsRequest & WithRoleName(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:76
Aws::SSO::Model::GetRoleCredentialsRequest::AccessTokenHasBeenSet
bool AccessTokenHasBeenSet() const
Definition: GetRoleCredentialsRequest.h:139
Aws::SSO::Model::GetRoleCredentialsRequest::GetRoleCredentialsRequest
GetRoleCredentialsRequest()
Aws::SSO::Model::GetRoleCredentialsRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetRoleCredentialsRequest.h:87
Aws::SSO::Model::GetRoleCredentialsRequest::WithRoleName
GetRoleCredentialsRequest & WithRoleName(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:71
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccountId
GetRoleCredentialsRequest & WithAccountId(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:117
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccessToken
void SetAccessToken(const char *value)
Definition: GetRoleCredentialsRequest.h:163
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccountId
GetRoleCredentialsRequest & WithAccountId(const Aws::String &value)
Definition: GetRoleCredentialsRequest.h:112
Aws::SSO::Model::GetRoleCredentialsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRoleCredentialsRequest.h:34
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetRoleCredentialsRequest.h:107
AWSString.h
Aws::SSO::Model::GetRoleCredentialsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSO::Model::GetRoleCredentialsRequest::WithAccessToken
GetRoleCredentialsRequest & WithAccessToken(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:179
Aws
Definition: AccessManagementClient.h:15
Aws::SSO::Model::GetRoleCredentialsRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: GetRoleCredentialsRequest.h:51
Aws::SSO::Model::GetRoleCredentialsRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:61
Aws::SSO::SSORequest
Definition: SSORequest.h:17
Aws::SSO::Model::GetRoleCredentialsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetRoleCredentialsRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSO::Model::GetRoleCredentialsRequest::WithRoleName
GetRoleCredentialsRequest & WithRoleName(const char *value)
Definition: GetRoleCredentialsRequest.h:81
SSORequest.h