AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::Vector<ConnectionType>& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(Aws::Vector<ConnectionType>&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline CreateParticipantConnectionRequest& WithType(Aws::Vector<ConnectionType>&& value) { SetType(std::move(value)); return *this;}
51 inline CreateParticipantConnectionRequest& AddType(const ConnectionType& value) { m_typeHasBeenSet = true; m_type.push_back(value); return *this; }
52 inline CreateParticipantConnectionRequest& AddType(ConnectionType&& value) { m_typeHasBeenSet = true; m_type.push_back(std::move(value)); return *this; }
54
56
61 inline const Aws::String& GetParticipantToken() const{ return m_participantToken; }
62 inline bool ParticipantTokenHasBeenSet() const { return m_participantTokenHasBeenSet; }
63 inline void SetParticipantToken(const Aws::String& value) { m_participantTokenHasBeenSet = true; m_participantToken = value; }
64 inline void SetParticipantToken(Aws::String&& value) { m_participantTokenHasBeenSet = true; m_participantToken = std::move(value); }
65 inline void SetParticipantToken(const char* value) { m_participantTokenHasBeenSet = true; m_participantToken.assign(value); }
68 inline CreateParticipantConnectionRequest& WithParticipantToken(const char* value) { SetParticipantToken(value); return *this;}
70
72
77 inline bool GetConnectParticipant() const{ return m_connectParticipant; }
78 inline bool ConnectParticipantHasBeenSet() const { return m_connectParticipantHasBeenSet; }
79 inline void SetConnectParticipant(bool value) { m_connectParticipantHasBeenSet = true; m_connectParticipant = value; }
82 private:
83
85 bool m_typeHasBeenSet = false;
86
87 Aws::String m_participantToken;
88 bool m_participantTokenHasBeenSet = false;
89
90 bool m_connectParticipant;
91 bool m_connectParticipantHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ConnectParticipant
96} // namespace Aws
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
CreateParticipantConnectionRequest & AddType(ConnectionType &&value)
CreateParticipantConnectionRequest & WithType(Aws::Vector< ConnectionType > &&value)
CreateParticipantConnectionRequest & WithType(const Aws::Vector< ConnectionType > &value)
CreateParticipantConnectionRequest & AddType(const ConnectionType &value)
CreateParticipantConnectionRequest & WithParticipantToken(const char *value)
CreateParticipantConnectionRequest & WithParticipantToken(Aws::String &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateParticipantConnectionRequest & WithParticipantToken(const Aws::String &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