AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
BasicAuthenticationConfiguration.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 BasicAuthenticationConfiguration() = 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>
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 }
68 SetPort(value);
69 return *this;
70 }
72
74
82 inline const Aws::String& GetCredentials() const { return m_credentials; }
83 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
84 template <typename CredentialsT = Aws::String>
85 void SetCredentials(CredentialsT&& value) {
86 m_credentialsHasBeenSet = true;
87 m_credentials = std::forward<CredentialsT>(value);
88 }
89 template <typename CredentialsT = Aws::String>
91 SetCredentials(std::forward<CredentialsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_host;
97
98 int m_port{0};
99
100 Aws::String m_credentials;
101 bool m_hostHasBeenSet = false;
102 bool m_portHasBeenSet = false;
103 bool m_credentialsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace kendra
108} // namespace Aws
AWS_KENDRA_API BasicAuthenticationConfiguration(Aws::Utils::Json::JsonView jsonValue)
BasicAuthenticationConfiguration & WithHost(HostT &&value)
BasicAuthenticationConfiguration & WithCredentials(CredentialsT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API BasicAuthenticationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue