AWS SDK for C++  1.9.68
AWS SDK for C++
StartDeviceAuthorizationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SSOOIDC
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 "StartDeviceAuthorization"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const Aws::String& GetClientId() const{ return m_clientId; }
41 
47  inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
48 
54  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
55 
61  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
62 
68  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
69 
75  inline StartDeviceAuthorizationRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
76 
82  inline StartDeviceAuthorizationRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
83 
89  inline StartDeviceAuthorizationRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
90 
91 
96  inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
97 
102  inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
103 
108  inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
109 
114  inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
115 
120  inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
121 
126  inline StartDeviceAuthorizationRequest& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
127 
132  inline StartDeviceAuthorizationRequest& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
133 
138  inline StartDeviceAuthorizationRequest& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
139 
140 
146  inline const Aws::String& GetStartUrl() const{ return m_startUrl; }
147 
153  inline bool StartUrlHasBeenSet() const { return m_startUrlHasBeenSet; }
154 
160  inline void SetStartUrl(const Aws::String& value) { m_startUrlHasBeenSet = true; m_startUrl = value; }
161 
167  inline void SetStartUrl(Aws::String&& value) { m_startUrlHasBeenSet = true; m_startUrl = std::move(value); }
168 
174  inline void SetStartUrl(const char* value) { m_startUrlHasBeenSet = true; m_startUrl.assign(value); }
175 
181  inline StartDeviceAuthorizationRequest& WithStartUrl(const Aws::String& value) { SetStartUrl(value); return *this;}
182 
188  inline StartDeviceAuthorizationRequest& WithStartUrl(Aws::String&& value) { SetStartUrl(std::move(value)); return *this;}
189 
195  inline StartDeviceAuthorizationRequest& WithStartUrl(const char* value) { SetStartUrl(value); return *this;}
196 
197  private:
198 
199  Aws::String m_clientId;
200  bool m_clientIdHasBeenSet;
201 
202  Aws::String m_clientSecret;
203  bool m_clientSecretHasBeenSet;
204 
205  Aws::String m_startUrl;
206  bool m_startUrlHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace SSOOIDC
211 } // namespace Aws
AWS_SSOOIDC_API
#define AWS_SSOOIDC_API
Definition: SSOOIDC_EXPORTS.h:28
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientSecret
StartDeviceAuthorizationRequest & WithClientSecret(const char *value)
Definition: StartDeviceAuthorizationRequest.h:138
SSOOIDC_EXPORTS.h
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::GetClientId
const Aws::String & GetClientId() const
Definition: StartDeviceAuthorizationRequest.h:40
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartDeviceAuthorizationRequest.h:30
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientId
void SetClientId(const char *value)
Definition: StartDeviceAuthorizationRequest.h:68
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::GetStartUrl
const Aws::String & GetStartUrl() const
Definition: StartDeviceAuthorizationRequest.h:146
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::GetClientSecret
const Aws::String & GetClientSecret() const
Definition: StartDeviceAuthorizationRequest.h:96
Aws::SSOOIDC::SSOOIDCRequest
Definition: SSOOIDCRequest.h:17
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithStartUrl
StartDeviceAuthorizationRequest & WithStartUrl(const char *value)
Definition: StartDeviceAuthorizationRequest.h:195
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientId
void SetClientId(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:54
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientId
StartDeviceAuthorizationRequest & WithClientId(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:82
SSOOIDCRequest.h
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientSecret
void SetClientSecret(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:108
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithStartUrl
StartDeviceAuthorizationRequest & WithStartUrl(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:188
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientId
StartDeviceAuthorizationRequest & WithClientId(const char *value)
Definition: StartDeviceAuthorizationRequest.h:89
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::ClientSecretHasBeenSet
bool ClientSecretHasBeenSet() const
Definition: StartDeviceAuthorizationRequest.h:102
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetStartUrl
void SetStartUrl(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:167
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::StartUrlHasBeenSet
bool StartUrlHasBeenSet() const
Definition: StartDeviceAuthorizationRequest.h:153
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientId
void SetClientId(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:61
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithStartUrl
StartDeviceAuthorizationRequest & WithStartUrl(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:181
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetStartUrl
void SetStartUrl(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:160
AWSString.h
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientSecret
void SetClientSecret(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:114
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetClientSecret
void SetClientSecret(const char *value)
Definition: StartDeviceAuthorizationRequest.h:120
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientSecret
StartDeviceAuthorizationRequest & WithClientSecret(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:126
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SetStartUrl
void SetStartUrl(const char *value)
Definition: StartDeviceAuthorizationRequest.h:174
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::ClientIdHasBeenSet
bool ClientIdHasBeenSet() const
Definition: StartDeviceAuthorizationRequest.h:47
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientId
StartDeviceAuthorizationRequest & WithClientId(const Aws::String &value)
Definition: StartDeviceAuthorizationRequest.h:75
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::StartDeviceAuthorizationRequest
StartDeviceAuthorizationRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest
Definition: StartDeviceAuthorizationRequest.h:22
Aws::SSOOIDC::Model::StartDeviceAuthorizationRequest::WithClientSecret
StartDeviceAuthorizationRequest & WithClientSecret(Aws::String &&value)
Definition: StartDeviceAuthorizationRequest.h:132