AWS SDK for C++  1.9.123
AWS SDK for C++
LogoutRequest.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 SSO
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 "Logout"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
44 
51  inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
52 
59  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
60 
67  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
68 
75  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
76 
83  inline LogoutRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
84 
91  inline LogoutRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
92 
99  inline LogoutRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
100 
101  private:
102 
103  Aws::String m_accessToken;
104  bool m_accessTokenHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace SSO
109 } // namespace Aws
Aws::IoTSiteWise::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::SSO::Model::LogoutRequest::SetAccessToken
void SetAccessToken(Aws::String &&value)
Definition: LogoutRequest.h:67
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
SSO_EXPORTS.h
AWS_SSO_API
#define AWS_SSO_API
Definition: SSO_EXPORTS.h:28
Aws::SSO::Model::LogoutRequest::SetAccessToken
void SetAccessToken(const Aws::String &value)
Definition: LogoutRequest.h:59
Aws::SSO::Model::LogoutRequest
Definition: LogoutRequest.h:22
Aws::SSO::Model::LogoutRequest::SetAccessToken
void SetAccessToken(const char *value)
Definition: LogoutRequest.h:75
Aws::SSO::Model::LogoutRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSO::Model::LogoutRequest::WithAccessToken
LogoutRequest & WithAccessToken(Aws::String &&value)
Definition: LogoutRequest.h:91
Aws::SSO::Model::LogoutRequest::GetAccessToken
const Aws::String & GetAccessToken() const
Definition: LogoutRequest.h:43
AWSString.h
Aws::SSO::Model::LogoutRequest::AccessTokenHasBeenSet
bool AccessTokenHasBeenSet() const
Definition: LogoutRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::SSO::Model::LogoutRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSO::SSORequest
Definition: SSORequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSO::Model::LogoutRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: LogoutRequest.h:30
SSORequest.h
Aws::SSO::Model::LogoutRequest::LogoutRequest
LogoutRequest()
Aws::SSO::Model::LogoutRequest::WithAccessToken
LogoutRequest & WithAccessToken(const Aws::String &value)
Definition: LogoutRequest.h:83
Aws::SSO::Model::LogoutRequest::WithAccessToken
LogoutRequest & WithAccessToken(const char *value)
Definition: LogoutRequest.h:99