AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateContactMethodRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/ContactProtocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API CreateContactMethodRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateContactMethod"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
53 inline ContactProtocol GetProtocol() const { return m_protocol; }
54 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
55 inline void SetProtocol(ContactProtocol value) {
56 m_protocolHasBeenSet = true;
57 m_protocol = value;
58 }
60 SetProtocol(value);
61 return *this;
62 }
64
66
76 inline const Aws::String& GetContactEndpoint() const { return m_contactEndpoint; }
77 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
78 template <typename ContactEndpointT = Aws::String>
79 void SetContactEndpoint(ContactEndpointT&& value) {
80 m_contactEndpointHasBeenSet = true;
81 m_contactEndpoint = std::forward<ContactEndpointT>(value);
82 }
83 template <typename ContactEndpointT = Aws::String>
85 SetContactEndpoint(std::forward<ContactEndpointT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::String m_contactEndpoint;
93 bool m_protocolHasBeenSet = false;
94 bool m_contactEndpointHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Lightsail
99} // namespace Aws
CreateContactMethodRequest & WithProtocol(ContactProtocol 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
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String