AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContactChannel.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-contacts/model/ChannelType.h>
10#include <aws/ssm-contacts/model/ContactChannelAddress.h>
11#include <aws/ssm-contacts/model/ActivationStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSMContacts
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SSMCONTACTS_API ContactChannel();
39 AWS_SSMCONTACTS_API ContactChannel(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_API ContactChannel& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetContactChannelArn() const{ return m_contactChannelArn; }
49 inline bool ContactChannelArnHasBeenSet() const { return m_contactChannelArnHasBeenSet; }
50 inline void SetContactChannelArn(const Aws::String& value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn = value; }
51 inline void SetContactChannelArn(Aws::String&& value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn = std::move(value); }
52 inline void SetContactChannelArn(const char* value) { m_contactChannelArnHasBeenSet = true; m_contactChannelArn.assign(value); }
53 inline ContactChannel& WithContactChannelArn(const Aws::String& value) { SetContactChannelArn(value); return *this;}
54 inline ContactChannel& WithContactChannelArn(Aws::String&& value) { SetContactChannelArn(std::move(value)); return *this;}
55 inline ContactChannel& WithContactChannelArn(const char* value) { SetContactChannelArn(value); return *this;}
57
59
62 inline const Aws::String& GetContactArn() const{ return m_contactArn; }
63 inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; }
64 inline void SetContactArn(const Aws::String& value) { m_contactArnHasBeenSet = true; m_contactArn = value; }
65 inline void SetContactArn(Aws::String&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::move(value); }
66 inline void SetContactArn(const char* value) { m_contactArnHasBeenSet = true; m_contactArn.assign(value); }
67 inline ContactChannel& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;}
68 inline ContactChannel& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;}
69 inline ContactChannel& WithContactArn(const char* value) { SetContactArn(value); return *this;}
71
73
76 inline const Aws::String& GetName() const{ return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
81 inline ContactChannel& WithName(const Aws::String& value) { SetName(value); return *this;}
82 inline ContactChannel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 inline ContactChannel& WithName(const char* value) { SetName(value); return *this;}
85
87
92 inline const ChannelType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline ContactChannel& WithType(const ChannelType& value) { SetType(value); return *this;}
97 inline ContactChannel& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
99
101
105 inline const ContactChannelAddress& GetDeliveryAddress() const{ return m_deliveryAddress; }
106 inline bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; }
107 inline void SetDeliveryAddress(const ContactChannelAddress& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = value; }
108 inline void SetDeliveryAddress(ContactChannelAddress&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::move(value); }
109 inline ContactChannel& WithDeliveryAddress(const ContactChannelAddress& value) { SetDeliveryAddress(value); return *this;}
110 inline ContactChannel& WithDeliveryAddress(ContactChannelAddress&& value) { SetDeliveryAddress(std::move(value)); return *this;}
112
114
119 inline const ActivationStatus& GetActivationStatus() const{ return m_activationStatus; }
120 inline bool ActivationStatusHasBeenSet() const { return m_activationStatusHasBeenSet; }
121 inline void SetActivationStatus(const ActivationStatus& value) { m_activationStatusHasBeenSet = true; m_activationStatus = value; }
122 inline void SetActivationStatus(ActivationStatus&& value) { m_activationStatusHasBeenSet = true; m_activationStatus = std::move(value); }
123 inline ContactChannel& WithActivationStatus(const ActivationStatus& value) { SetActivationStatus(value); return *this;}
124 inline ContactChannel& WithActivationStatus(ActivationStatus&& value) { SetActivationStatus(std::move(value)); return *this;}
126 private:
127
128 Aws::String m_contactChannelArn;
129 bool m_contactChannelArnHasBeenSet = false;
130
131 Aws::String m_contactArn;
132 bool m_contactArnHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 ChannelType m_type;
138 bool m_typeHasBeenSet = false;
139
140 ContactChannelAddress m_deliveryAddress;
141 bool m_deliveryAddressHasBeenSet = false;
142
143 ActivationStatus m_activationStatus;
144 bool m_activationStatusHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SSMContacts
149} // namespace Aws
ContactChannel & WithActivationStatus(const ActivationStatus &value)
AWS_SSMCONTACTS_API ContactChannel(Aws::Utils::Json::JsonView jsonValue)
ContactChannel & WithContactArn(Aws::String &&value)
const Aws::String & GetContactChannelArn() const
void SetContactChannelArn(const char *value)
ContactChannel & WithName(const char *value)
const ChannelType & GetType() const
void SetDeliveryAddress(const ContactChannelAddress &value)
void SetDeliveryAddress(ContactChannelAddress &&value)
const ActivationStatus & GetActivationStatus() const
ContactChannel & WithName(const Aws::String &value)
void SetContactArn(const Aws::String &value)
void SetActivationStatus(const ActivationStatus &value)
AWS_SSMCONTACTS_API ContactChannel & operator=(Aws::Utils::Json::JsonView jsonValue)
ContactChannel & WithType(const ChannelType &value)
ContactChannel & WithContactArn(const Aws::String &value)
ContactChannel & WithName(Aws::String &&value)
void SetContactChannelArn(const Aws::String &value)
ContactChannel & WithDeliveryAddress(const ContactChannelAddress &value)
void SetActivationStatus(ActivationStatus &&value)
ContactChannel & WithContactArn(const char *value)
const Aws::String & GetContactArn() const
ContactChannel & WithActivationStatus(ActivationStatus &&value)
ContactChannel & WithContactChannelArn(Aws::String &&value)
ContactChannel & WithContactChannelArn(const Aws::String &value)
void SetName(const Aws::String &value)
ContactChannel & WithDeliveryAddress(ContactChannelAddress &&value)
void SetType(const ChannelType &value)
const Aws::String & GetName() const
ContactChannel & WithContactChannelArn(const char *value)
void SetContactChannelArn(Aws::String &&value)
const ContactChannelAddress & GetDeliveryAddress() const
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
ContactChannel & WithType(ChannelType &&value)
void SetContactArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue