AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetContactMethodsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/ContactProtocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API GetContactMethodsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetContactMethods"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
40 inline const Aws::Vector<ContactProtocol>& GetProtocols() const { return m_protocols; }
41 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
42 template <typename ProtocolsT = Aws::Vector<ContactProtocol>>
43 void SetProtocols(ProtocolsT&& value) {
44 m_protocolsHasBeenSet = true;
45 m_protocols = std::forward<ProtocolsT>(value);
46 }
47 template <typename ProtocolsT = Aws::Vector<ContactProtocol>>
49 SetProtocols(std::forward<ProtocolsT>(value));
50 return *this;
51 }
53 m_protocolsHasBeenSet = true;
54 m_protocols.push_back(value);
55 return *this;
56 }
58 private:
60 bool m_protocolsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Lightsail
65} // namespace Aws
GetContactMethodsRequest & WithProtocols(ProtocolsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ContactProtocol > & GetProtocols() const
AWS_LIGHTSAIL_API GetContactMethodsRequest()=default
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
GetContactMethodsRequest & AddProtocols(ContactProtocol value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector