AWS SDK for C++  1.9.104
AWS SDK for C++
CreateContactRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 #include <aws/core/utils/UUID.h>
16 
17 namespace Aws
18 {
19 namespace SSMContacts
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateContact"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetAlias() const{ return m_alias; }
47 
52  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
53 
58  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
59 
64  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
65 
70  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
71 
76  inline CreateContactRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
77 
82  inline CreateContactRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
83 
88  inline CreateContactRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
89 
90 
94  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
95 
99  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
100 
104  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
105 
109  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
110 
114  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
115 
119  inline CreateContactRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
120 
124  inline CreateContactRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
125 
129  inline CreateContactRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
130 
131 
136  inline const ContactType& GetType() const{ return m_type; }
137 
142  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
143 
148  inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; }
149 
154  inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
155 
160  inline CreateContactRequest& WithType(const ContactType& value) { SetType(value); return *this;}
161 
166  inline CreateContactRequest& WithType(ContactType&& value) { SetType(std::move(value)); return *this;}
167 
168 
174  inline const Plan& GetPlan() const{ return m_plan; }
175 
181  inline bool PlanHasBeenSet() const { return m_planHasBeenSet; }
182 
188  inline void SetPlan(const Plan& value) { m_planHasBeenSet = true; m_plan = value; }
189 
195  inline void SetPlan(Plan&& value) { m_planHasBeenSet = true; m_plan = std::move(value); }
196 
202  inline CreateContactRequest& WithPlan(const Plan& value) { SetPlan(value); return *this;}
203 
209  inline CreateContactRequest& WithPlan(Plan&& value) { SetPlan(std::move(value)); return *this;}
210 
211 
216  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
217 
222  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 
228  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
229 
234  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
235 
240  inline CreateContactRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
241 
246  inline CreateContactRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
247 
252  inline CreateContactRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
253 
258  inline CreateContactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
259 
260 
265  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
266 
271  inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
272 
277  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
278 
283  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
284 
289  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
290 
295  inline CreateContactRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
296 
301  inline CreateContactRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
302 
307  inline CreateContactRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
308 
309  private:
310 
311  Aws::String m_alias;
312  bool m_aliasHasBeenSet;
313 
314  Aws::String m_displayName;
315  bool m_displayNameHasBeenSet;
316 
317  ContactType m_type;
318  bool m_typeHasBeenSet;
319 
320  Plan m_plan;
321  bool m_planHasBeenSet;
322 
323  Aws::Vector<Tag> m_tags;
324  bool m_tagsHasBeenSet;
325 
326  Aws::String m_idempotencyToken;
327  bool m_idempotencyTokenHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace SSMContacts
332 } // namespace Aws
Aws::SSMContacts::Model::CreateContactRequest::SetIdempotencyToken
void SetIdempotencyToken(Aws::String &&value)
Definition: CreateContactRequest.h:283
Aws::SSMContacts::Model::CreateContactRequest::WithIdempotencyToken
CreateContactRequest & WithIdempotencyToken(Aws::String &&value)
Definition: CreateContactRequest.h:301
Aws::SSMContacts::Model::CreateContactRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateContactRequest.h:94
Plan.h
Aws::SSMContacts::Model::ContactType
ContactType
Definition: ContactType.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSMContacts::Model::CreateContactRequest::IdempotencyTokenHasBeenSet
bool IdempotencyTokenHasBeenSet() const
Definition: CreateContactRequest.h:271
ContactType.h
Aws::SSMContacts::Model::CreateContactRequest::WithPlan
CreateContactRequest & WithPlan(Plan &&value)
Definition: CreateContactRequest.h:209
Aws::SSMContacts::Model::CreateContactRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateContactRequest.h:234
Aws::SSMContacts::Model::CreateContactRequest::PlanHasBeenSet
bool PlanHasBeenSet() const
Definition: CreateContactRequest.h:181
Aws::SSMContacts::Model::CreateContactRequest::SetAlias
void SetAlias(const char *value)
Definition: CreateContactRequest.h:70
Aws::SSMContacts::Model::Plan
Definition: Plan.h:34
Aws::SSMContacts::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(const char *value)
Definition: CreateContactRequest.h:129
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SSMContacts::Model::CreateContactRequest::WithIdempotencyToken
CreateContactRequest & WithIdempotencyToken(const Aws::String &value)
Definition: CreateContactRequest.h:295
Aws::SSMContacts::Model::CreateContactRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: CreateContactRequest.h:64
Aws::SSMContacts::Model::CreateContactRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateContactRequest.h:99
Aws::SSMContacts::Model::CreateContactRequest::WithIdempotencyToken
CreateContactRequest & WithIdempotencyToken(const char *value)
Definition: CreateContactRequest.h:307
Aws::SSMContacts::Model::CreateContactRequest
Definition: CreateContactRequest.h:27
Aws::SSMContacts::Model::CreateContactRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateContactRequest.h:142
Aws::SSMContacts::Model::CreateContactRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateContactRequest.h:228
Aws::SSMContacts::Model::CreateContactRequest::AddTags
CreateContactRequest & AddTags(Tag &&value)
Definition: CreateContactRequest.h:258
Aws::SSMContacts::Model::CreateContactRequest::WithAlias
CreateContactRequest & WithAlias(const Aws::String &value)
Definition: CreateContactRequest.h:76
Aws::SSMContacts::Model::CreateContactRequest::SetPlan
void SetPlan(Plan &&value)
Definition: CreateContactRequest.h:195
SSMContacts_EXPORTS.h
Aws::SSMContacts::Model::CreateContactRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSMContacts::Model::CreateContactRequest::GetIdempotencyToken
const Aws::String & GetIdempotencyToken() const
Definition: CreateContactRequest.h:265
Aws::SSMContacts::Model::CreateContactRequest::AddTags
CreateContactRequest & AddTags(const Tag &value)
Definition: CreateContactRequest.h:252
Aws::SSMContacts::Model::CreateContactRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSMContacts::Model::CreateContactRequest::WithType
CreateContactRequest & WithType(ContactType &&value)
Definition: CreateContactRequest.h:166
Aws::SSMContacts::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(const Aws::String &value)
Definition: CreateContactRequest.h:119
Aws::SSMContacts::Model::CreateContactRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateContactRequest.h:216
AWSString.h
Aws::SSMContacts::Model::CreateContactRequest::WithTags
CreateContactRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateContactRequest.h:240
Aws::SSMContacts::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateContactRequest.h:114
Aws::SSMContacts::Model::CreateContactRequest::WithAlias
CreateContactRequest & WithAlias(const char *value)
Definition: CreateContactRequest.h:88
Aws::SSMContacts::Model::CreateContactRequest::GetPlan
const Plan & GetPlan() const
Definition: CreateContactRequest.h:174
SSMContactsRequest.h
Aws::SSMContacts::Model::CreateContactRequest::CreateContactRequest
CreateContactRequest()
Aws::SSMContacts::Model::CreateContactRequest::WithAlias
CreateContactRequest & WithAlias(Aws::String &&value)
Definition: CreateContactRequest.h:82
Aws::SSMContacts::Model::CreateContactRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactRequest.h:35
Aws::SSMContacts::Model::CreateContactRequest::WithDisplayName
CreateContactRequest & WithDisplayName(Aws::String &&value)
Definition: CreateContactRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::SSMContacts::Model::CreateContactRequest::SetType
void SetType(ContactType &&value)
Definition: CreateContactRequest.h:154
Aws::SSMContacts::Model::CreateContactRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: CreateContactRequest.h:52
Aws::SSMContacts::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateContactRequest.h:109
Aws::SSMContacts::Model::CreateContactRequest::GetType
const ContactType & GetType() const
Definition: CreateContactRequest.h:136
Aws::SSMContacts::Model::CreateContactRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: CreateContactRequest.h:58
Aws::SSMContacts::Model::CreateContactRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateContactRequest.h:222
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_SSMCONTACTS_API
#define AWS_SSMCONTACTS_API
Definition: SSMContacts_EXPORTS.h:28
Aws::SSMContacts::Model::CreateContactRequest::WithPlan
CreateContactRequest & WithPlan(const Plan &value)
Definition: CreateContactRequest.h:202
Aws::SSMContacts::Model::CreateContactRequest::WithTags
CreateContactRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateContactRequest.h:246
Aws::SSMContacts::Model::CreateContactRequest::SetIdempotencyToken
void SetIdempotencyToken(const Aws::String &value)
Definition: CreateContactRequest.h:277
UUID.h
Aws::SSMContacts::Model::Tag
Definition: Tag.h:32
Aws::SSMContacts::SSMContactsRequest
Definition: SSMContactsRequest.h:17
Tag.h
Aws::SSMContacts::Model::CreateContactRequest::SetType
void SetType(const ContactType &value)
Definition: CreateContactRequest.h:148
Aws::SSMContacts::Model::CreateContactRequest::SetPlan
void SetPlan(const Plan &value)
Definition: CreateContactRequest.h:188
Aws::SSMContacts::Model::CreateContactRequest::GetAlias
const Aws::String & GetAlias() const
Definition: CreateContactRequest.h:46
Aws::SSMContacts::Model::CreateContactRequest::SetIdempotencyToken
void SetIdempotencyToken(const char *value)
Definition: CreateContactRequest.h:289
Aws::SSMContacts::Model::CreateContactRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateContactRequest.h:104
Aws::SSMContacts::Model::CreateContactRequest::WithType
CreateContactRequest & WithType(const ContactType &value)
Definition: CreateContactRequest.h:160