AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartEngagementRequest.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 <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API StartEngagementRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartEngagement"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetContactId() const { return m_contactId; }
43 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
44 template<typename ContactIdT = Aws::String>
45 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
46 template<typename ContactIdT = Aws::String>
47 StartEngagementRequest& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetSender() const { return m_sender; }
55 inline bool SenderHasBeenSet() const { return m_senderHasBeenSet; }
56 template<typename SenderT = Aws::String>
57 void SetSender(SenderT&& value) { m_senderHasBeenSet = true; m_sender = std::forward<SenderT>(value); }
58 template<typename SenderT = Aws::String>
59 StartEngagementRequest& WithSender(SenderT&& value) { SetSender(std::forward<SenderT>(value)); return *this;}
61
63
67 inline const Aws::String& GetSubject() const { return m_subject; }
68 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
69 template<typename SubjectT = Aws::String>
70 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
71 template<typename SubjectT = Aws::String>
72 StartEngagementRequest& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
74
76
80 inline const Aws::String& GetContent() const { return m_content; }
81 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
82 template<typename ContentT = Aws::String>
83 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
84 template<typename ContentT = Aws::String>
85 StartEngagementRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
87
89
93 inline const Aws::String& GetPublicSubject() const { return m_publicSubject; }
94 inline bool PublicSubjectHasBeenSet() const { return m_publicSubjectHasBeenSet; }
95 template<typename PublicSubjectT = Aws::String>
96 void SetPublicSubject(PublicSubjectT&& value) { m_publicSubjectHasBeenSet = true; m_publicSubject = std::forward<PublicSubjectT>(value); }
97 template<typename PublicSubjectT = Aws::String>
98 StartEngagementRequest& WithPublicSubject(PublicSubjectT&& value) { SetPublicSubject(std::forward<PublicSubjectT>(value)); return *this;}
100
102
106 inline const Aws::String& GetPublicContent() const { return m_publicContent; }
107 inline bool PublicContentHasBeenSet() const { return m_publicContentHasBeenSet; }
108 template<typename PublicContentT = Aws::String>
109 void SetPublicContent(PublicContentT&& value) { m_publicContentHasBeenSet = true; m_publicContent = std::forward<PublicContentT>(value); }
110 template<typename PublicContentT = Aws::String>
111 StartEngagementRequest& WithPublicContent(PublicContentT&& value) { SetPublicContent(std::forward<PublicContentT>(value)); return *this;}
113
115
118 inline const Aws::String& GetIncidentId() const { return m_incidentId; }
119 inline bool IncidentIdHasBeenSet() const { return m_incidentIdHasBeenSet; }
120 template<typename IncidentIdT = Aws::String>
121 void SetIncidentId(IncidentIdT&& value) { m_incidentIdHasBeenSet = true; m_incidentId = std::forward<IncidentIdT>(value); }
122 template<typename IncidentIdT = Aws::String>
123 StartEngagementRequest& WithIncidentId(IncidentIdT&& value) { SetIncidentId(std::forward<IncidentIdT>(value)); return *this;}
125
127
131 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
132 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
133 template<typename IdempotencyTokenT = Aws::String>
134 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
135 template<typename IdempotencyTokenT = Aws::String>
136 StartEngagementRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
138 private:
139
140 Aws::String m_contactId;
141 bool m_contactIdHasBeenSet = false;
142
143 Aws::String m_sender;
144 bool m_senderHasBeenSet = false;
145
146 Aws::String m_subject;
147 bool m_subjectHasBeenSet = false;
148
149 Aws::String m_content;
150 bool m_contentHasBeenSet = false;
151
152 Aws::String m_publicSubject;
153 bool m_publicSubjectHasBeenSet = false;
154
155 Aws::String m_publicContent;
156 bool m_publicContentHasBeenSet = false;
157
158 Aws::String m_incidentId;
159 bool m_incidentIdHasBeenSet = false;
160
162 bool m_idempotencyTokenHasBeenSet = true;
163 };
164
165} // namespace Model
166} // namespace SSMContacts
167} // namespace Aws
virtual const char * GetServiceRequestName() const override
StartEngagementRequest & WithIncidentId(IncidentIdT &&value)
StartEngagementRequest & WithSubject(SubjectT &&value)
StartEngagementRequest & WithSender(SenderT &&value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
StartEngagementRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartEngagementRequest & WithPublicSubject(PublicSubjectT &&value)
StartEngagementRequest & WithContent(ContentT &&value)
StartEngagementRequest & WithContactId(ContactIdT &&value)
StartEngagementRequest & WithPublicContent(PublicContentT &&value)
AWS_SSMCONTACTS_API StartEngagementRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String