AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
HttpDataSourceConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AuthorizationConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
29 public:
30 AWS_APPSYNC_API HttpDataSourceConfig() = default;
33 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
43 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
44 template <typename EndpointT = Aws::String>
45 void SetEndpoint(EndpointT&& value) {
46 m_endpointHasBeenSet = true;
47 m_endpoint = std::forward<EndpointT>(value);
48 }
49 template <typename EndpointT = Aws::String>
50 HttpDataSourceConfig& WithEndpoint(EndpointT&& value) {
51 SetEndpoint(std::forward<EndpointT>(value));
52 return *this;
53 }
55
57
61 inline const AuthorizationConfig& GetAuthorizationConfig() const { return m_authorizationConfig; }
62 inline bool AuthorizationConfigHasBeenSet() const { return m_authorizationConfigHasBeenSet; }
63 template <typename AuthorizationConfigT = AuthorizationConfig>
64 void SetAuthorizationConfig(AuthorizationConfigT&& value) {
65 m_authorizationConfigHasBeenSet = true;
66 m_authorizationConfig = std::forward<AuthorizationConfigT>(value);
67 }
68 template <typename AuthorizationConfigT = AuthorizationConfig>
69 HttpDataSourceConfig& WithAuthorizationConfig(AuthorizationConfigT&& value) {
70 SetAuthorizationConfig(std::forward<AuthorizationConfigT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_endpoint;
76
77 AuthorizationConfig m_authorizationConfig;
78 bool m_endpointHasBeenSet = false;
79 bool m_authorizationConfigHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace AppSync
84} // namespace Aws
AWS_APPSYNC_API HttpDataSourceConfig()=default
const AuthorizationConfig & GetAuthorizationConfig() const
AWS_APPSYNC_API HttpDataSourceConfig(Aws::Utils::Json::JsonView jsonValue)
HttpDataSourceConfig & WithAuthorizationConfig(AuthorizationConfigT &&value)
AWS_APPSYNC_API HttpDataSourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAuthorizationConfig(AuthorizationConfigT &&value)
HttpDataSourceConfig & WithEndpoint(EndpointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue