AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateContactMethodRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/model/ContactProtocol.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API CreateContactMethodRequest() = 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 "CreateContactMethod"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
57 inline ContactProtocol GetProtocol() const { return m_protocol; }
58 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
59 inline void SetProtocol(ContactProtocol value) { m_protocolHasBeenSet = true; m_protocol = value; }
62
64
74 inline const Aws::String& GetContactEndpoint() const { return m_contactEndpoint; }
75 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
76 template<typename ContactEndpointT = Aws::String>
77 void SetContactEndpoint(ContactEndpointT&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::forward<ContactEndpointT>(value); }
78 template<typename ContactEndpointT = Aws::String>
79 CreateContactMethodRequest& WithContactEndpoint(ContactEndpointT&& value) { SetContactEndpoint(std::forward<ContactEndpointT>(value)); return *this;}
81 private:
82
84 bool m_protocolHasBeenSet = false;
85
86 Aws::String m_contactEndpoint;
87 bool m_contactEndpointHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Lightsail
92} // 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