AWS SDK for C++  1.9.16
AWS SDK for C++
DeleteContactMethodRequest.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 "DeleteContactMethod"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const ContactProtocol& GetProtocol() const{ return m_protocol; }
44 
51  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
52 
59  inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
60 
67  inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
68 
75  inline DeleteContactMethodRequest& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;}
76 
83  inline DeleteContactMethodRequest& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;}
84 
85  private:
86 
87  ContactProtocol m_protocol;
88  bool m_protocolHasBeenSet;
89  };
90 
91 } // namespace Model
92 } // namespace Lightsail
93 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ContactProtocol.h
Aws::Lightsail::Model::DeleteContactMethodRequest::WithProtocol
DeleteContactMethodRequest & WithProtocol(ContactProtocol &&value)
Definition: DeleteContactMethodRequest.h:83
Aws::Lightsail::Model::DeleteContactMethodRequest::WithProtocol
DeleteContactMethodRequest & WithProtocol(const ContactProtocol &value)
Definition: DeleteContactMethodRequest.h:75
Aws::Lightsail::Model::DeleteContactMethodRequest
Definition: DeleteContactMethodRequest.h:22
Aws::Lightsail::Model::DeleteContactMethodRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
LightsailRequest.h
Aws::Lightsail::Model::DeleteContactMethodRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteContactMethodRequest.h:30
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::DeleteContactMethodRequest::SetProtocol
void SetProtocol(ContactProtocol &&value)
Definition: DeleteContactMethodRequest.h:67
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DeleteContactMethodRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: DeleteContactMethodRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DeleteContactMethodRequest::DeleteContactMethodRequest
DeleteContactMethodRequest()
Aws::Lightsail::Model::DeleteContactMethodRequest::SetProtocol
void SetProtocol(const ContactProtocol &value)
Definition: DeleteContactMethodRequest.h:59
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DeleteContactMethodRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::ContactProtocol
ContactProtocol
Definition: ContactProtocol.h:17
Aws::Lightsail::Model::DeleteContactMethodRequest::GetProtocol
const ContactProtocol & GetProtocol() const
Definition: DeleteContactMethodRequest.h:43