AWS SDK for C++  1.9.16
AWS SDK for C++
SendContactMethodVerificationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "SendContactMethodVerification"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const ContactMethodVerificationProtocol& GetProtocol() const{ return m_protocol; }
42 
47  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
48 
53  inline void SetProtocol(const ContactMethodVerificationProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
54 
59  inline void SetProtocol(ContactMethodVerificationProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
60 
65  inline SendContactMethodVerificationRequest& WithProtocol(const ContactMethodVerificationProtocol& value) { SetProtocol(value); return *this;}
66 
71  inline SendContactMethodVerificationRequest& WithProtocol(ContactMethodVerificationProtocol&& value) { SetProtocol(std::move(value)); return *this;}
72 
73  private:
74 
76  bool m_protocolHasBeenSet;
77  };
78 
79 } // namespace Model
80 } // namespace Lightsail
81 } // namespace Aws
Aws::Lightsail::Model::SendContactMethodVerificationRequest::SendContactMethodVerificationRequest
SendContactMethodVerificationRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::SendContactMethodVerificationRequest::WithProtocol
SendContactMethodVerificationRequest & WithProtocol(const ContactMethodVerificationProtocol &value)
Definition: SendContactMethodVerificationRequest.h:65
Aws::Lightsail::Model::SendContactMethodVerificationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::SendContactMethodVerificationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendContactMethodVerificationRequest.h:30
Aws::Lightsail::Model::SendContactMethodVerificationRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: SendContactMethodVerificationRequest.h:47
Aws::Lightsail::Model::ContactMethodVerificationProtocol
ContactMethodVerificationProtocol
Definition: ContactMethodVerificationProtocol.h:17
LightsailRequest.h
Aws::Lightsail::Model::SendContactMethodVerificationRequest
Definition: SendContactMethodVerificationRequest.h:22
ContactMethodVerificationProtocol.h
Aws::Lightsail::Model::SendContactMethodVerificationRequest::GetProtocol
const ContactMethodVerificationProtocol & GetProtocol() const
Definition: SendContactMethodVerificationRequest.h:41
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::SendContactMethodVerificationRequest::SerializePayload
Aws::String SerializePayload() const override
Lightsail_EXPORTS.h
Aws::Lightsail::Model::SendContactMethodVerificationRequest::SetProtocol
void SetProtocol(ContactMethodVerificationProtocol &&value)
Definition: SendContactMethodVerificationRequest.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::SendContactMethodVerificationRequest::SetProtocol
void SetProtocol(const ContactMethodVerificationProtocol &value)
Definition: SendContactMethodVerificationRequest.h:53
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::SendContactMethodVerificationRequest::WithProtocol
SendContactMethodVerificationRequest & WithProtocol(ContactMethodVerificationProtocol &&value)
Definition: SendContactMethodVerificationRequest.h:71