AWS SDK for C++

AWS SDK for C++ Version 1.11.830

Loading...
Searching...
No Matches
CreateOAuth2TokenRequest.h
1
6#pragma once
7#include <aws/signin/SigninRequest.h>
8#include <aws/signin/Signin_EXPORTS.h>
9#include <aws/signin/model/CreateOAuth2TokenRequestBody.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Signin {
15namespace Model {
16
26 public:
27 AWS_SIGNIN_API CreateOAuth2TokenRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateOAuth2Token"; }
34
35 AWS_SIGNIN_API Aws::String SerializePayload() const override;
36
40 AWS_SIGNIN_API EndpointParameters GetEndpointContextParams() const override;
41
43
47 inline const CreateOAuth2TokenRequestBody& GetTokenInput() const { return m_tokenInput; }
48 inline bool TokenInputHasBeenSet() const { return m_tokenInputHasBeenSet; }
49 template <typename TokenInputT = CreateOAuth2TokenRequestBody>
50 void SetTokenInput(TokenInputT&& value) {
51 m_tokenInputHasBeenSet = true;
52 m_tokenInput = std::forward<TokenInputT>(value);
53 }
54 template <typename TokenInputT = CreateOAuth2TokenRequestBody>
56 SetTokenInput(std::forward<TokenInputT>(value));
57 return *this;
58 }
60 private:
62 bool m_tokenInputHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace Signin
67} // namespace Aws
const CreateOAuth2TokenRequestBody & GetTokenInput() const
AWS_SIGNIN_API Aws::String SerializePayload() const override
CreateOAuth2TokenRequest & WithTokenInput(TokenInputT &&value)
AWS_SIGNIN_API CreateOAuth2TokenRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SIGNIN_API EndpointParameters GetEndpointContextParams() const override
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String