AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const TokenProviders& GetProvider() const{ return m_provider; }
42 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
43 inline void SetProvider(const TokenProviders& value) { m_providerHasBeenSet = true; m_provider = value; }
44 inline void SetProvider(TokenProviders&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); }
45 inline ExchangeCodeForTokenRequest& WithProvider(const TokenProviders& value) { SetProvider(value); return *this;}
46 inline ExchangeCodeForTokenRequest& WithProvider(TokenProviders&& value) { SetProvider(std::move(value)); return *this;}
48
50
53 inline const ExchangeCodeForTokenRequestBody& GetRequest() const{ return m_request; }
54 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
55 inline void SetRequest(const ExchangeCodeForTokenRequestBody& value) { m_requestHasBeenSet = true; m_request = value; }
56 inline void SetRequest(ExchangeCodeForTokenRequestBody&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
58 inline ExchangeCodeForTokenRequest& WithRequest(ExchangeCodeForTokenRequestBody&& value) { SetRequest(std::move(value)); return *this;}
60 private:
61
62 TokenProviders m_provider;
63 bool m_providerHasBeenSet = false;
64
66 bool m_requestHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace AmplifyUIBuilder
71} // namespace Aws
const ExchangeCodeForTokenRequestBody & GetRequest() const
ExchangeCodeForTokenRequest & WithRequest(const ExchangeCodeForTokenRequestBody &value)
ExchangeCodeForTokenRequest & WithProvider(const TokenProviders &value)
ExchangeCodeForTokenRequest & WithProvider(TokenProviders &&value)
ExchangeCodeForTokenRequest & WithRequest(ExchangeCodeForTokenRequestBody &&value)
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
void SetRequest(const ExchangeCodeForTokenRequestBody &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String