AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AcceptPageRequest.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/AcceptType.h>
11#include <aws/ssm-contacts/model/AcceptCodeValidation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSMContacts
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSMCONTACTS_API AcceptPageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AcceptPage"; }
33
34 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
35
36 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetPageId() const { return m_pageId; }
44 inline bool PageIdHasBeenSet() const { return m_pageIdHasBeenSet; }
45 template<typename PageIdT = Aws::String>
46 void SetPageId(PageIdT&& value) { m_pageIdHasBeenSet = true; m_pageId = std::forward<PageIdT>(value); }
47 template<typename PageIdT = Aws::String>
48 AcceptPageRequest& WithPageId(PageIdT&& value) { SetPageId(std::forward<PageIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetContactChannelId() const { return m_contactChannelId; }
56 inline bool ContactChannelIdHasBeenSet() const { return m_contactChannelIdHasBeenSet; }
57 template<typename ContactChannelIdT = Aws::String>
58 void SetContactChannelId(ContactChannelIdT&& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = std::forward<ContactChannelIdT>(value); }
59 template<typename ContactChannelIdT = Aws::String>
60 AcceptPageRequest& WithContactChannelId(ContactChannelIdT&& value) { SetContactChannelId(std::forward<ContactChannelIdT>(value)); return *this;}
62
64
68 inline AcceptType GetAcceptType() const { return m_acceptType; }
69 inline bool AcceptTypeHasBeenSet() const { return m_acceptTypeHasBeenSet; }
70 inline void SetAcceptType(AcceptType value) { m_acceptTypeHasBeenSet = true; m_acceptType = value; }
71 inline AcceptPageRequest& WithAcceptType(AcceptType value) { SetAcceptType(value); return *this;}
73
75
78 inline const Aws::String& GetNote() const { return m_note; }
79 inline bool NoteHasBeenSet() const { return m_noteHasBeenSet; }
80 template<typename NoteT = Aws::String>
81 void SetNote(NoteT&& value) { m_noteHasBeenSet = true; m_note = std::forward<NoteT>(value); }
82 template<typename NoteT = Aws::String>
83 AcceptPageRequest& WithNote(NoteT&& value) { SetNote(std::forward<NoteT>(value)); return *this;}
85
87
90 inline const Aws::String& GetAcceptCode() const { return m_acceptCode; }
91 inline bool AcceptCodeHasBeenSet() const { return m_acceptCodeHasBeenSet; }
92 template<typename AcceptCodeT = Aws::String>
93 void SetAcceptCode(AcceptCodeT&& value) { m_acceptCodeHasBeenSet = true; m_acceptCode = std::forward<AcceptCodeT>(value); }
94 template<typename AcceptCodeT = Aws::String>
95 AcceptPageRequest& WithAcceptCode(AcceptCodeT&& value) { SetAcceptCode(std::forward<AcceptCodeT>(value)); return *this;}
97
99
109 inline AcceptCodeValidation GetAcceptCodeValidation() const { return m_acceptCodeValidation; }
110 inline bool AcceptCodeValidationHasBeenSet() const { return m_acceptCodeValidationHasBeenSet; }
111 inline void SetAcceptCodeValidation(AcceptCodeValidation value) { m_acceptCodeValidationHasBeenSet = true; m_acceptCodeValidation = value; }
114 private:
115
116 Aws::String m_pageId;
117 bool m_pageIdHasBeenSet = false;
118
119 Aws::String m_contactChannelId;
120 bool m_contactChannelIdHasBeenSet = false;
121
122 AcceptType m_acceptType{AcceptType::NOT_SET};
123 bool m_acceptTypeHasBeenSet = false;
124
125 Aws::String m_note;
126 bool m_noteHasBeenSet = false;
127
128 Aws::String m_acceptCode;
129 bool m_acceptCodeHasBeenSet = false;
130
132 bool m_acceptCodeValidationHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SSMContacts
137} // namespace Aws
AWS_SSMCONTACTS_API AcceptPageRequest()=default
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
AcceptPageRequest & WithAcceptCode(AcceptCodeT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AcceptPageRequest & WithAcceptType(AcceptType value)
AcceptCodeValidation GetAcceptCodeValidation() const
virtual const char * GetServiceRequestName() const override
AcceptPageRequest & WithContactChannelId(ContactChannelIdT &&value)
void SetAcceptCodeValidation(AcceptCodeValidation value)
AcceptPageRequest & WithNote(NoteT &&value)
void SetContactChannelId(ContactChannelIdT &&value)
AcceptPageRequest & WithPageId(PageIdT &&value)
const Aws::String & GetContactChannelId() const
AcceptPageRequest & WithAcceptCodeValidation(AcceptCodeValidation value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String