AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContactRequest.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/ContactType.h>
11#include <aws/ssm-contacts/model/Plan.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ssm-contacts/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace SSMContacts
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SSMCONTACTS_API CreateContactRequest();
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_SSMCONTACTS_API Aws::String SerializePayload() const override;
38
39 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetAlias() const{ return m_alias; }
48 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
49 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
50 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
51 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
52 inline CreateContactRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
53 inline CreateContactRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
54 inline CreateContactRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
56
58
61 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
64 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
65 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
66 inline CreateContactRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
67 inline CreateContactRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
68 inline CreateContactRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
70
72
76 inline const ContactType& GetType() const{ return m_type; }
77 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; }
79 inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
80 inline CreateContactRequest& WithType(const ContactType& value) { SetType(value); return *this;}
81 inline CreateContactRequest& WithType(ContactType&& value) { SetType(std::move(value)); return *this;}
83
85
90 inline const Plan& GetPlan() const{ return m_plan; }
91 inline bool PlanHasBeenSet() const { return m_planHasBeenSet; }
92 inline void SetPlan(const Plan& value) { m_planHasBeenSet = true; m_plan = value; }
93 inline void SetPlan(Plan&& value) { m_planHasBeenSet = true; m_plan = std::move(value); }
94 inline CreateContactRequest& WithPlan(const Plan& value) { SetPlan(value); return *this;}
95 inline CreateContactRequest& WithPlan(Plan&& value) { SetPlan(std::move(value)); return *this;}
97
99
103 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
107 inline CreateContactRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
108 inline CreateContactRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
109 inline CreateContactRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
110 inline CreateContactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
112
114
118 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
119 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
120 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
121 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
122 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
123 inline CreateContactRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
124 inline CreateContactRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
125 inline CreateContactRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
127 private:
128
129 Aws::String m_alias;
130 bool m_aliasHasBeenSet = false;
131
132 Aws::String m_displayName;
133 bool m_displayNameHasBeenSet = false;
134
135 ContactType m_type;
136 bool m_typeHasBeenSet = false;
137
138 Plan m_plan;
139 bool m_planHasBeenSet = false;
140
141 Aws::Vector<Tag> m_tags;
142 bool m_tagsHasBeenSet = false;
143
144 Aws::String m_idempotencyToken;
145 bool m_idempotencyTokenHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SSMContacts
150} // namespace Aws
CreateContactRequest & WithAlias(Aws::String &&value)
CreateContactRequest & WithPlan(const Plan &value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContactRequest & WithTags(Aws::Vector< Tag > &&value)
CreateContactRequest & WithDisplayName(Aws::String &&value)
CreateContactRequest & WithAlias(const char *value)
CreateContactRequest & WithIdempotencyToken(const char *value)
CreateContactRequest & AddTags(const Tag &value)
CreateContactRequest & WithIdempotencyToken(const Aws::String &value)
CreateContactRequest & WithPlan(Plan &&value)
CreateContactRequest & WithType(ContactType &&value)
CreateContactRequest & WithDisplayName(const Aws::String &value)
CreateContactRequest & WithTags(const Aws::Vector< Tag > &value)
CreateContactRequest & WithIdempotencyToken(Aws::String &&value)
CreateContactRequest & WithDisplayName(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
CreateContactRequest & WithAlias(const Aws::String &value)
CreateContactRequest & AddTags(Tag &&value)
CreateContactRequest & WithType(const ContactType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector