AWS SDK for C++  1.9.16
AWS SDK for C++
GetContactMethodsRequest.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 "GetContactMethods"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::Vector<ContactProtocol>& GetProtocols() const{ return m_protocols; }
44 
50  inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
51 
57  inline void SetProtocols(const Aws::Vector<ContactProtocol>& value) { m_protocolsHasBeenSet = true; m_protocols = value; }
58 
64  inline void SetProtocols(Aws::Vector<ContactProtocol>&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); }
65 
71  inline GetContactMethodsRequest& WithProtocols(const Aws::Vector<ContactProtocol>& value) { SetProtocols(value); return *this;}
72 
78  inline GetContactMethodsRequest& WithProtocols(Aws::Vector<ContactProtocol>&& value) { SetProtocols(std::move(value)); return *this;}
79 
85  inline GetContactMethodsRequest& AddProtocols(const ContactProtocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
86 
92  inline GetContactMethodsRequest& AddProtocols(ContactProtocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; }
93 
94  private:
95 
96  Aws::Vector<ContactProtocol> m_protocols;
97  bool m_protocolsHasBeenSet;
98  };
99 
100 } // namespace Model
101 } // namespace Lightsail
102 } // namespace Aws
Aws::Lightsail::Model::GetContactMethodsRequest::ProtocolsHasBeenSet
bool ProtocolsHasBeenSet() const
Definition: GetContactMethodsRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ContactProtocol.h
Aws::Lightsail::Model::GetContactMethodsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContactMethodsRequest.h:31
Aws::Lightsail::Model::GetContactMethodsRequest::AddProtocols
GetContactMethodsRequest & AddProtocols(ContactProtocol &&value)
Definition: GetContactMethodsRequest.h:92
Aws::Lightsail::Model::GetContactMethodsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::GetContactMethodsRequest::WithProtocols
GetContactMethodsRequest & WithProtocols(Aws::Vector< ContactProtocol > &&value)
Definition: GetContactMethodsRequest.h:78
Aws::Lightsail::Model::GetContactMethodsRequest::SetProtocols
void SetProtocols(Aws::Vector< ContactProtocol > &&value)
Definition: GetContactMethodsRequest.h:64
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::GetContactMethodsRequest::GetProtocols
const Aws::Vector< ContactProtocol > & GetProtocols() const
Definition: GetContactMethodsRequest.h:43
Aws::Lightsail::Model::GetContactMethodsRequest::WithProtocols
GetContactMethodsRequest & WithProtocols(const Aws::Vector< ContactProtocol > &value)
Definition: GetContactMethodsRequest.h:71
Aws::Lightsail::Model::GetContactMethodsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Lightsail_EXPORTS.h
Aws::Lightsail::Model::GetContactMethodsRequest::AddProtocols
GetContactMethodsRequest & AddProtocols(const ContactProtocol &value)
Definition: GetContactMethodsRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::GetContactMethodsRequest::SetProtocols
void SetProtocols(const Aws::Vector< ContactProtocol > &value)
Definition: GetContactMethodsRequest.h:57
Aws::Lightsail::Model::GetContactMethodsRequest::GetContactMethodsRequest
GetContactMethodsRequest()
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::GetContactMethodsRequest
Definition: GetContactMethodsRequest.h:23
Aws::Lightsail::Model::ContactProtocol
ContactProtocol
Definition: ContactProtocol.h:17