AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EndpointType.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 Connect {
21namespace Model {
22
28class Endpoint {
29 public:
30 AWS_CONNECT_API Endpoint() = default;
31 AWS_CONNECT_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline EndpointType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(EndpointType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetAddress() const { return m_address; }
56 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
57 template <typename AddressT = Aws::String>
58 void SetAddress(AddressT&& value) {
59 m_addressHasBeenSet = true;
60 m_address = std::forward<AddressT>(value);
61 }
62 template <typename AddressT = Aws::String>
63 Endpoint& WithAddress(AddressT&& value) {
64 SetAddress(std::forward<AddressT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_address;
72 bool m_typeHasBeenSet = false;
73 bool m_addressHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Connect
78} // namespace Aws
void SetAddress(AddressT &&value)
Definition Endpoint.h:58
AWS_CONNECT_API Endpoint()=default
EndpointType GetType() const
Definition Endpoint.h:39
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:63
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddress() const
Definition Endpoint.h:55
void SetType(EndpointType value)
Definition Endpoint.h:41
AWS_CONNECT_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AddressHasBeenSet() const
Definition Endpoint.h:56
Endpoint & WithType(EndpointType value)
Definition Endpoint.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue