AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECT_API EndpointInfo() = default;
36 AWS_CONNECT_API EndpointInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline EndpointType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(EndpointType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline EndpointInfo& WithType(EndpointType value) { SetType(value); return *this;}
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) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
59 template<typename AddressT = Aws::String>
60 EndpointInfo& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDisplayName() const { return m_displayName; }
68 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
69 template<typename DisplayNameT = Aws::String>
70 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
71 template<typename DisplayNameT = Aws::String>
72 EndpointInfo& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
79 Aws::String m_address;
80 bool m_addressHasBeenSet = false;
81
82 Aws::String m_displayName;
83 bool m_displayNameHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Connect
88} // 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