AWS SDK for C++

AWS SDK for C++ Version 1.11.693

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace kendra {
20namespace Model {
21
29 public:
30 AWS_KENDRA_API ProxyConfiguration() = default;
33 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetHost() const { return m_host; }
42 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
43 template <typename HostT = Aws::String>
44 void SetHost(HostT&& value) {
45 m_hostHasBeenSet = true;
46 m_host = std::forward<HostT>(value);
47 }
48 template <typename HostT = Aws::String>
49 ProxyConfiguration& WithHost(HostT&& value) {
50 SetHost(std::forward<HostT>(value));
51 return *this;
52 }
54
56
61 inline int GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) {
64 m_portHasBeenSet = true;
65 m_port = value;
66 }
67 inline ProxyConfiguration& WithPort(int value) {
68 SetPort(value);
69 return *this;
70 }
72
74
83 inline const Aws::String& GetCredentials() const { return m_credentials; }
84 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
85 template <typename CredentialsT = Aws::String>
86 void SetCredentials(CredentialsT&& value) {
87 m_credentialsHasBeenSet = true;
88 m_credentials = std::forward<CredentialsT>(value);
89 }
90 template <typename CredentialsT = Aws::String>
91 ProxyConfiguration& WithCredentials(CredentialsT&& value) {
92 SetCredentials(std::forward<CredentialsT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_host;
98 bool m_hostHasBeenSet = false;
99
100 int m_port{0};
101 bool m_portHasBeenSet = false;
102
103 Aws::String m_credentials;
104 bool m_credentialsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace kendra
109} // namespace Aws
ProxyConfiguration & WithPort(int value)
AWS_KENDRA_API ProxyConfiguration()=default
void SetCredentials(CredentialsT &&value)
AWS_KENDRA_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
ProxyConfiguration & WithHost(HostT &&value)
const Aws::String & GetCredentials() const
AWS_KENDRA_API ProxyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ProxyConfiguration & WithCredentials(CredentialsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue