AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AliasT = Aws::String>
50 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
51 template<typename AliasT = Aws::String>
52 CreateContactRequest& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template<typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
63 template<typename DisplayNameT = Aws::String>
64 CreateContactRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
66
68
72 inline ContactType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(ContactType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline CreateContactRequest& WithType(ContactType value) { SetType(value); return *this;}
77
79
84 inline const Plan& GetPlan() const { return m_plan; }
85 inline bool PlanHasBeenSet() const { return m_planHasBeenSet; }
86 template<typename PlanT = Plan>
87 void SetPlan(PlanT&& value) { m_planHasBeenSet = true; m_plan = std::forward<PlanT>(value); }
88 template<typename PlanT = Plan>
89 CreateContactRequest& WithPlan(PlanT&& value) { SetPlan(std::forward<PlanT>(value)); return *this;}
91
93
97 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 template<typename TagsT = Aws::Vector<Tag>>
100 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
101 template<typename TagsT = Aws::Vector<Tag>>
102 CreateContactRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
103 template<typename TagsT = Tag>
104 CreateContactRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
106
108
112 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
113 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
114 template<typename IdempotencyTokenT = Aws::String>
115 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
116 template<typename IdempotencyTokenT = Aws::String>
117 CreateContactRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
119 private:
120
121 Aws::String m_alias;
122 bool m_aliasHasBeenSet = false;
123
124 Aws::String m_displayName;
125 bool m_displayNameHasBeenSet = false;
126
128 bool m_typeHasBeenSet = false;
129
130 Plan m_plan;
131 bool m_planHasBeenSet = false;
132
133 Aws::Vector<Tag> m_tags;
134 bool m_tagsHasBeenSet = false;
135
137 bool m_idempotencyTokenHasBeenSet = true;
138 };
139
140} // namespace Model
141} // namespace SSMContacts
142} // namespace Aws
CreateContactRequest & WithAlias(AliasT &&value)
void SetIdempotencyToken(IdempotencyTokenT &&value)
CreateContactRequest & WithDisplayName(DisplayNameT &&value)
CreateContactRequest & WithTags(TagsT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContactRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateContactRequest & WithPlan(PlanT &&value)
CreateContactRequest & AddTags(TagsT &&value)
AWS_SSMCONTACTS_API CreateContactRequest()=default
CreateContactRequest & WithType(ContactType value)
virtual const char * GetServiceRequestName() const override
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
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