AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ContactProtocol& GetProtocol() const{ return m_protocol; }
58 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
59 inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
60 inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
61 inline CreateContactMethodRequest& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;}
62 inline CreateContactMethodRequest& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;}
64
66
76 inline const Aws::String& GetContactEndpoint() const{ return m_contactEndpoint; }
77 inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
78 inline void SetContactEndpoint(const Aws::String& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = value; }
79 inline void SetContactEndpoint(Aws::String&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::move(value); }
80 inline void SetContactEndpoint(const char* value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint.assign(value); }
82 inline CreateContactMethodRequest& WithContactEndpoint(Aws::String&& value) { SetContactEndpoint(std::move(value)); return *this;}
83 inline CreateContactMethodRequest& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;}
85 private:
86
87 ContactProtocol m_protocol;
88 bool m_protocolHasBeenSet = false;
89
90 Aws::String m_contactEndpoint;
91 bool m_contactEndpointHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Lightsail
96} // namespace Aws
CreateContactMethodRequest & WithContactEndpoint(const Aws::String &value)
CreateContactMethodRequest & WithProtocol(const ContactProtocol &value)
CreateContactMethodRequest & WithProtocol(ContactProtocol &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateContactMethodRequest & WithContactEndpoint(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateContactMethodRequest & WithContactEndpoint(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String