AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateParticipantConnectionRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/ConnectParticipantRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/connectparticipant/model/ConnectionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConnectParticipant
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECTPARTICIPANT_API CreateParticipantConnectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipantConnection"; }
33
34 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
35
36 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<ConnectionType>& GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 template<typename TypeT = Aws::Vector<ConnectionType>>
48 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
49 template<typename TypeT = Aws::Vector<ConnectionType>>
50 CreateParticipantConnectionRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
51 inline CreateParticipantConnectionRequest& AddType(ConnectionType value) { m_typeHasBeenSet = true; m_type.push_back(value); return *this; }
53
55
60 inline const Aws::String& GetParticipantToken() const { return m_participantToken; }
61 inline bool ParticipantTokenHasBeenSet() const { return m_participantTokenHasBeenSet; }
62 template<typename ParticipantTokenT = Aws::String>
63 void SetParticipantToken(ParticipantTokenT&& value) { m_participantTokenHasBeenSet = true; m_participantToken = std::forward<ParticipantTokenT>(value); }
64 template<typename ParticipantTokenT = Aws::String>
65 CreateParticipantConnectionRequest& WithParticipantToken(ParticipantTokenT&& value) { SetParticipantToken(std::forward<ParticipantTokenT>(value)); return *this;}
67
69
74 inline bool GetConnectParticipant() const { return m_connectParticipant; }
75 inline bool ConnectParticipantHasBeenSet() const { return m_connectParticipantHasBeenSet; }
76 inline void SetConnectParticipant(bool value) { m_connectParticipantHasBeenSet = true; m_connectParticipant = value; }
79 private:
80
82 bool m_typeHasBeenSet = false;
83
84 Aws::String m_participantToken;
85 bool m_participantTokenHasBeenSet = false;
86
87 bool m_connectParticipant{false};
88 bool m_connectParticipantHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ConnectParticipant
93} // 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