AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ExchangeCodeForTokenRequest.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/amplifyuibuilder/AmplifyUIBuilderRequest.h>
9#include <aws/amplifyuibuilder/model/TokenProviders.h>
10#include <aws/amplifyuibuilder/model/ExchangeCodeForTokenRequestBody.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AmplifyUIBuilder
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ExchangeCodeForToken"; }
32
33 AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override;
34
35
37
41 inline TokenProviders GetProvider() const { return m_provider; }
42 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
43 inline void SetProvider(TokenProviders value) { m_providerHasBeenSet = true; m_provider = value; }
46
48
51 inline const ExchangeCodeForTokenRequestBody& GetRequest() const { return m_request; }
52 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
53 template<typename RequestT = ExchangeCodeForTokenRequestBody>
54 void SetRequest(RequestT&& value) { m_requestHasBeenSet = true; m_request = std::forward<RequestT>(value); }
55 template<typename RequestT = ExchangeCodeForTokenRequestBody>
56 ExchangeCodeForTokenRequest& WithRequest(RequestT&& value) { SetRequest(std::forward<RequestT>(value)); return *this;}
58 private:
59
61 bool m_providerHasBeenSet = false;
62
63 ExchangeCodeForTokenRequestBody m_request;
64 bool m_requestHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace AmplifyUIBuilder
69} // namespace Aws
const ExchangeCodeForTokenRequestBody & GetRequest() const
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
ExchangeCodeForTokenRequest & WithRequest(RequestT &&value)
AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenRequest()=default
ExchangeCodeForTokenRequest & WithProvider(TokenProviders value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String