AWS SDK for C++  1.9.16
AWS SDK for C++
CreateContactMethodRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
56  inline const ContactProtocol& GetProtocol() const{ return m_protocol; }
57 
76  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
77 
96  inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
97 
116  inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
117 
136  inline CreateContactMethodRequest& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;}
137 
156  inline CreateContactMethodRequest& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;}
157 
158 
169  inline const Aws::String& GetContactEndpoint() const{ return m_contactEndpoint; }
170 
181  inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; }
182 
193  inline void SetContactEndpoint(const Aws::String& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = value; }
194 
205  inline void SetContactEndpoint(Aws::String&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::move(value); }
206 
217  inline void SetContactEndpoint(const char* value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint.assign(value); }
218 
229  inline CreateContactMethodRequest& WithContactEndpoint(const Aws::String& value) { SetContactEndpoint(value); return *this;}
230 
241  inline CreateContactMethodRequest& WithContactEndpoint(Aws::String&& value) { SetContactEndpoint(std::move(value)); return *this;}
242 
253  inline CreateContactMethodRequest& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;}
254 
255  private:
256 
257  ContactProtocol m_protocol;
258  bool m_protocolHasBeenSet;
259 
260  Aws::String m_contactEndpoint;
261  bool m_contactEndpointHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace Lightsail
266 } // namespace Aws
Aws::Lightsail::Model::CreateContactMethodRequest::GetContactEndpoint
const Aws::String & GetContactEndpoint() const
Definition: CreateContactMethodRequest.h:169
Aws::Lightsail::Model::CreateContactMethodRequest::WithProtocol
CreateContactMethodRequest & WithProtocol(const ContactProtocol &value)
Definition: CreateContactMethodRequest.h:136
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ContactProtocol.h
Aws::Lightsail::Model::CreateContactMethodRequest::ContactEndpointHasBeenSet
bool ContactEndpointHasBeenSet() const
Definition: CreateContactMethodRequest.h:181
Aws::Lightsail::Model::CreateContactMethodRequest::GetProtocol
const ContactProtocol & GetProtocol() const
Definition: CreateContactMethodRequest.h:56
Aws::Lightsail::Model::CreateContactMethodRequest::SetProtocol
void SetProtocol(ContactProtocol &&value)
Definition: CreateContactMethodRequest.h:116
Aws::Lightsail::Model::CreateContactMethodRequest
Definition: CreateContactMethodRequest.h:23
Aws::Lightsail::Model::CreateContactMethodRequest::WithContactEndpoint
CreateContactMethodRequest & WithContactEndpoint(Aws::String &&value)
Definition: CreateContactMethodRequest.h:241
Aws::Lightsail::Model::CreateContactMethodRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateContactMethodRequest.h:76
LightsailRequest.h
Aws::Lightsail::Model::CreateContactMethodRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateContactMethodRequest.h:31
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
AWSString.h
Aws::Lightsail::Model::CreateContactMethodRequest::SerializePayload
Aws::String SerializePayload() const override
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateContactMethodRequest::SetContactEndpoint
void SetContactEndpoint(const char *value)
Definition: CreateContactMethodRequest.h:217
Aws::Lightsail::Model::CreateContactMethodRequest::WithProtocol
CreateContactMethodRequest & WithProtocol(ContactProtocol &&value)
Definition: CreateContactMethodRequest.h:156
Aws::Lightsail::Model::CreateContactMethodRequest::SetContactEndpoint
void SetContactEndpoint(Aws::String &&value)
Definition: CreateContactMethodRequest.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateContactMethodRequest::CreateContactMethodRequest
CreateContactMethodRequest()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateContactMethodRequest::WithContactEndpoint
CreateContactMethodRequest & WithContactEndpoint(const Aws::String &value)
Definition: CreateContactMethodRequest.h:229
Aws::Lightsail::Model::CreateContactMethodRequest::WithContactEndpoint
CreateContactMethodRequest & WithContactEndpoint(const char *value)
Definition: CreateContactMethodRequest.h:253
Aws::Lightsail::Model::CreateContactMethodRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateContactMethodRequest::SetProtocol
void SetProtocol(const ContactProtocol &value)
Definition: CreateContactMethodRequest.h:96
Aws::Lightsail::Model::CreateContactMethodRequest::SetContactEndpoint
void SetContactEndpoint(const Aws::String &value)
Definition: CreateContactMethodRequest.h:193
Aws::Lightsail::Model::ContactProtocol
ContactProtocol
Definition: ContactProtocol.h:17