AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
BasicAuthenticationConfiguration.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 BasicAuthenticationConfiguration() = 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 BasicAuthenticationConfiguration& 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 BasicAuthenticationConfiguration& WithPort(int value) { SetPort(value); return *this;}
66
68
76 inline const Aws::String& GetCredentials() const { return m_credentials; }
77 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
78 template<typename CredentialsT = Aws::String>
79 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
80 template<typename CredentialsT = Aws::String>
81 BasicAuthenticationConfiguration& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
83 private:
84
85 Aws::String m_host;
86 bool m_hostHasBeenSet = false;
87
88 int m_port{0};
89 bool m_portHasBeenSet = false;
90
91 Aws::String m_credentials;
92 bool m_credentialsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace kendra
97} // 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