AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_KENDRA_API ProxyConfiguration() = default;
38 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetHost() const { return m_host; }
48 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
49 template<typename HostT = Aws::String>
50 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
51 template<typename HostT = Aws::String>
52 ProxyConfiguration& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
54
56
61 inline int GetPort() const { return m_port; }
62 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
63 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
64 inline ProxyConfiguration& WithPort(int value) { SetPort(value); return *this;}
66
68
77 inline const Aws::String& GetCredentials() const { return m_credentials; }
78 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
79 template<typename CredentialsT = Aws::String>
80 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
81 template<typename CredentialsT = Aws::String>
82 ProxyConfiguration& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
84 private:
85
86 Aws::String m_host;
87 bool m_hostHasBeenSet = false;
88
89 int m_port{0};
90 bool m_portHasBeenSet = false;
91
92 Aws::String m_credentials;
93 bool m_credentialsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace kendra
98} // 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