AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateContactMethodRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/ContactProtocol.h>
12#include <aws/lightsail/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Lightsail {
18namespace Model {
19
23 public:
24 AWS_LIGHTSAIL_API CreateContactMethodRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateContactMethod"; }
31
32 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
33
35
37
55 inline ContactProtocol GetProtocol() const { return m_protocol; }
56 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
57 inline void SetProtocol(ContactProtocol value) {
58 m_protocolHasBeenSet = true;
59 m_protocol = value;
60 }
62 SetProtocol(value);
63 return *this;
64 }
66
68
78 inline const Aws::String& GetContactEndpoint() const { return m_contactEndpoint; }
79 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
80 template <typename ContactEndpointT = Aws::String>
81 void SetContactEndpoint(ContactEndpointT&& value) {
82 m_contactEndpointHasBeenSet = true;
83 m_contactEndpoint = std::forward<ContactEndpointT>(value);
84 }
85 template <typename ContactEndpointT = Aws::String>
87 SetContactEndpoint(std::forward<ContactEndpointT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Vector<Tag>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsT = Tag>
112 m_tagsHasBeenSet = true;
113 m_tags.emplace_back(std::forward<TagsT>(value));
114 return *this;
115 }
117 private:
119
120 Aws::String m_contactEndpoint;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_protocolHasBeenSet = false;
124 bool m_contactEndpointHasBeenSet = false;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Lightsail
130} // namespace Aws
CreateContactMethodRequest & WithProtocol(ContactProtocol value)
CreateContactMethodRequest & WithTags(TagsT &&value)
AWS_LIGHTSAIL_API CreateContactMethodRequest()=default
CreateContactMethodRequest & WithContactEndpoint(ContactEndpointT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateContactMethodRequest & AddTags(TagsT &&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