AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 Endpoint();
36 AWS_CONNECT_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const EndpointType& GetType() const{ return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(const EndpointType& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(EndpointType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline Endpoint& WithType(const EndpointType& value) { SetType(value); return *this;}
50 inline Endpoint& WithType(EndpointType&& value) { SetType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetAddress() const{ return m_address; }
58 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
59 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
60 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
61 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
62 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
63 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
64 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
66 private:
67
68 EndpointType m_type;
69 bool m_typeHasBeenSet = false;
70
71 Aws::String m_address;
72 bool m_addressHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Connect
77} // namespace Aws
Endpoint & WithType(const EndpointType &value)
Definition Endpoint.h:49
void SetAddress(const char *value)
Definition Endpoint.h:61
void SetAddress(const Aws::String &value)
Definition Endpoint.h:59
void SetType(const EndpointType &value)
Definition Endpoint.h:47
Endpoint & WithType(EndpointType &&value)
Definition Endpoint.h:50
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:63
const EndpointType & GetType() const
Definition Endpoint.h:45
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddress() const
Definition Endpoint.h:57
void SetType(EndpointType &&value)
Definition Endpoint.h:48
AWS_CONNECT_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:62
AWS_CONNECT_API Endpoint()
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:64
AWS_CONNECT_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AddressHasBeenSet() const
Definition Endpoint.h:58
void SetAddress(Aws::String &&value)
Definition Endpoint.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue