AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
CreateParticipantConnectionRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipantRequest.h>
8#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
9#include <aws/connectparticipant/model/ConnectionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConnectParticipant {
17namespace Model {
18
22 public:
23 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipantConnection"; }
30
31 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
32
33 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::Vector<ConnectionType>& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::Vector<ConnectionType>>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::Vector<ConnectionType>>
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54 m_typeHasBeenSet = true;
55 m_type.push_back(value);
56 return *this;
57 }
59
61
66 inline const Aws::String& GetParticipantToken() const { return m_participantToken; }
67 inline bool ParticipantTokenHasBeenSet() const { return m_participantTokenHasBeenSet; }
68 template <typename ParticipantTokenT = Aws::String>
69 void SetParticipantToken(ParticipantTokenT&& value) {
70 m_participantTokenHasBeenSet = true;
71 m_participantToken = std::forward<ParticipantTokenT>(value);
72 }
73 template <typename ParticipantTokenT = Aws::String>
75 SetParticipantToken(std::forward<ParticipantTokenT>(value));
76 return *this;
77 }
79
81
86 inline bool GetConnectParticipant() const { return m_connectParticipant; }
87 inline bool ConnectParticipantHasBeenSet() const { return m_connectParticipantHasBeenSet; }
88 inline void SetConnectParticipant(bool value) {
89 m_connectParticipantHasBeenSet = true;
90 m_connectParticipant = value;
91 }
94 return *this;
95 }
97 private:
99 bool m_typeHasBeenSet = false;
100
101 Aws::String m_participantToken;
102 bool m_participantTokenHasBeenSet = false;
103
104 bool m_connectParticipant{false};
105 bool m_connectParticipantHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ConnectParticipant
110} // namespace Aws
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionRequest()=default
CreateParticipantConnectionRequest & AddType(ConnectionType value)
CreateParticipantConnectionRequest & WithParticipantToken(ParticipantTokenT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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