AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
38
42 inline const CreateOAuth2TokenRequestBody& GetTokenInput() const { return m_tokenInput; }
43 inline bool TokenInputHasBeenSet() const { return m_tokenInputHasBeenSet; }
44 template <typename TokenInputT = CreateOAuth2TokenRequestBody>
45 void SetTokenInput(TokenInputT&& value) {
46 m_tokenInputHasBeenSet = true;
47 m_tokenInput = std::forward<TokenInputT>(value);
48 }
49 template <typename TokenInputT = CreateOAuth2TokenRequestBody>
51 SetTokenInput(std::forward<TokenInputT>(value));
52 return *this;
53 }
55 private:
57 bool m_tokenInputHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace Signin
62} // 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String