AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EndpointInfo.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
29 public:
30 AWS_CONNECT_API EndpointInfo() = default;
31 AWS_CONNECT_API EndpointInfo(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 EndpointInfo& WithAddress(AddressT&& value) {
64 SetAddress(std::forward<AddressT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template <typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) {
77 m_displayNameHasBeenSet = true;
78 m_displayName = std::forward<DisplayNameT>(value);
79 }
80 template <typename DisplayNameT = Aws::String>
81 EndpointInfo& WithDisplayName(DisplayNameT&& value) {
82 SetDisplayName(std::forward<DisplayNameT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_address;
90
91 Aws::String m_displayName;
92 bool m_typeHasBeenSet = false;
93 bool m_addressHasBeenSet = false;
94 bool m_displayNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Connect
99} // namespace Aws
AWS_CONNECT_API EndpointInfo(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
void SetType(EndpointType value)
AWS_CONNECT_API EndpointInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
EndpointInfo & WithDisplayName(DisplayNameT &&value)
EndpointInfo & WithAddress(AddressT &&value)
const Aws::String & GetDisplayName() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointInfo & WithType(EndpointType value)
const Aws::String & GetAddress() const
AWS_CONNECT_API EndpointInfo()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue