AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateContactChannelRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-contacts/model/ChannelType.h>
11#include <aws/ssm-contacts/model/ContactChannelAddress.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SSMContacts
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSMCONTACTS_API CreateContactChannelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContactChannel"; }
34
35 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
36
37 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetContactId() const { return m_contactId; }
46 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
47 template<typename ContactIdT = Aws::String>
48 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
49 template<typename ContactIdT = Aws::String>
50 CreateContactChannelRequest& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 CreateContactChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
71 inline ChannelType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(ChannelType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline CreateContactChannelRequest& WithType(ChannelType value) { SetType(value); return *this;}
76
78
86 inline const ContactChannelAddress& GetDeliveryAddress() const { return m_deliveryAddress; }
87 inline bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; }
88 template<typename DeliveryAddressT = ContactChannelAddress>
89 void SetDeliveryAddress(DeliveryAddressT&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::forward<DeliveryAddressT>(value); }
90 template<typename DeliveryAddressT = ContactChannelAddress>
91 CreateContactChannelRequest& WithDeliveryAddress(DeliveryAddressT&& value) { SetDeliveryAddress(std::forward<DeliveryAddressT>(value)); return *this;}
93
95
100 inline bool GetDeferActivation() const { return m_deferActivation; }
101 inline bool DeferActivationHasBeenSet() const { return m_deferActivationHasBeenSet; }
102 inline void SetDeferActivation(bool value) { m_deferActivationHasBeenSet = true; m_deferActivation = value; }
103 inline CreateContactChannelRequest& WithDeferActivation(bool value) { SetDeferActivation(value); return *this;}
105
107
111 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
112 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
113 template<typename IdempotencyTokenT = Aws::String>
114 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
115 template<typename IdempotencyTokenT = Aws::String>
116 CreateContactChannelRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
118 private:
119
120 Aws::String m_contactId;
121 bool m_contactIdHasBeenSet = false;
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
127 bool m_typeHasBeenSet = false;
128
129 ContactChannelAddress m_deliveryAddress;
130 bool m_deliveryAddressHasBeenSet = false;
131
132 bool m_deferActivation{false};
133 bool m_deferActivationHasBeenSet = false;
134
136 bool m_idempotencyTokenHasBeenSet = true;
137 };
138
139} // namespace Model
140} // namespace SSMContacts
141} // namespace Aws
CreateContactChannelRequest & WithDeliveryAddress(DeliveryAddressT &&value)
CreateContactChannelRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
CreateContactChannelRequest & WithContactId(ContactIdT &&value)
AWS_SSMCONTACTS_API CreateContactChannelRequest()=default
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
CreateContactChannelRequest & WithDeferActivation(bool value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContactChannelRequest & WithName(NameT &&value)
CreateContactChannelRequest & WithType(ChannelType value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String