AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; }
48 inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); }
49 inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); }
50 inline CreateContactChannelRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;}
51 inline CreateContactChannelRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;}
52 inline CreateContactChannelRequest& WithContactId(const char* value) { SetContactId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline CreateContactChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline CreateContactChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline CreateContactChannelRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
75 inline const ChannelType& GetType() const{ return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
78 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
79 inline CreateContactChannelRequest& WithType(const ChannelType& value) { SetType(value); return *this;}
80 inline CreateContactChannelRequest& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
82
84
92 inline const ContactChannelAddress& GetDeliveryAddress() const{ return m_deliveryAddress; }
93 inline bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; }
94 inline void SetDeliveryAddress(const ContactChannelAddress& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = value; }
95 inline void SetDeliveryAddress(ContactChannelAddress&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::move(value); }
99
101
106 inline bool GetDeferActivation() const{ return m_deferActivation; }
107 inline bool DeferActivationHasBeenSet() const { return m_deferActivationHasBeenSet; }
108 inline void SetDeferActivation(bool value) { m_deferActivationHasBeenSet = true; m_deferActivation = value; }
109 inline CreateContactChannelRequest& WithDeferActivation(bool value) { SetDeferActivation(value); return *this;}
111
113
117 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
118 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
119 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
120 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
121 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
123 inline CreateContactChannelRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
124 inline CreateContactChannelRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
126 private:
127
128 Aws::String m_contactId;
129 bool m_contactIdHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 ChannelType m_type;
135 bool m_typeHasBeenSet = false;
136
137 ContactChannelAddress m_deliveryAddress;
138 bool m_deliveryAddressHasBeenSet = false;
139
140 bool m_deferActivation;
141 bool m_deferActivationHasBeenSet = false;
142
143 Aws::String m_idempotencyToken;
144 bool m_idempotencyTokenHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace SSMContacts
149} // namespace Aws
CreateContactChannelRequest & WithType(const ChannelType &value)
CreateContactChannelRequest & WithIdempotencyToken(const Aws::String &value)
CreateContactChannelRequest & WithName(Aws::String &&value)
CreateContactChannelRequest & WithName(const Aws::String &value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
CreateContactChannelRequest & WithContactId(const char *value)
CreateContactChannelRequest & WithType(ChannelType &&value)
CreateContactChannelRequest & WithContactId(Aws::String &&value)
CreateContactChannelRequest & WithDeliveryAddress(const ContactChannelAddress &value)
CreateContactChannelRequest & WithDeliveryAddress(ContactChannelAddress &&value)
CreateContactChannelRequest & WithName(const char *value)
CreateContactChannelRequest & WithIdempotencyToken(Aws::String &&value)
CreateContactChannelRequest & WithDeferActivation(bool value)
CreateContactChannelRequest & WithContactId(const Aws::String &value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContactChannelRequest & WithIdempotencyToken(const char *value)
void SetDeliveryAddress(const ContactChannelAddress &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String