AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/model/AwsLocation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/ConnectionPropertiesInput.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace DataZone
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATAZONE_API CreateConnectionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConnection"; }
34
35 AWS_DATAZONE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const AwsLocation& GetAwsLocation() const { return m_awsLocation; }
43 inline bool AwsLocationHasBeenSet() const { return m_awsLocationHasBeenSet; }
44 template<typename AwsLocationT = AwsLocation>
45 void SetAwsLocation(AwsLocationT&& value) { m_awsLocationHasBeenSet = true; m_awsLocation = std::forward<AwsLocationT>(value); }
46 template<typename AwsLocationT = AwsLocation>
47 CreateConnectionRequest& WithAwsLocation(AwsLocationT&& value) { SetAwsLocation(std::forward<AwsLocationT>(value)); return *this;}
49
51
55 inline const Aws::String& GetClientToken() const { return m_clientToken; }
56 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
57 template<typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
59 template<typename ClientTokenT = Aws::String>
60 CreateConnectionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 CreateConnectionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
80 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
81 template<typename DomainIdentifierT = Aws::String>
82 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
83 template<typename DomainIdentifierT = Aws::String>
84 CreateConnectionRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
86
88
91 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
92 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
93 template<typename EnvironmentIdentifierT = Aws::String>
94 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value); }
95 template<typename EnvironmentIdentifierT = Aws::String>
96 CreateConnectionRequest& WithEnvironmentIdentifier(EnvironmentIdentifierT&& value) { SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value)); return *this;}
98
100
103 inline const Aws::String& GetName() const { return m_name; }
104 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
105 template<typename NameT = Aws::String>
106 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
107 template<typename NameT = Aws::String>
108 CreateConnectionRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
110
112
115 inline const ConnectionPropertiesInput& GetProps() const { return m_props; }
116 inline bool PropsHasBeenSet() const { return m_propsHasBeenSet; }
117 template<typename PropsT = ConnectionPropertiesInput>
118 void SetProps(PropsT&& value) { m_propsHasBeenSet = true; m_props = std::forward<PropsT>(value); }
119 template<typename PropsT = ConnectionPropertiesInput>
120 CreateConnectionRequest& WithProps(PropsT&& value) { SetProps(std::forward<PropsT>(value)); return *this;}
122 private:
123
124 AwsLocation m_awsLocation;
125 bool m_awsLocationHasBeenSet = false;
126
128 bool m_clientTokenHasBeenSet = true;
129
130 Aws::String m_description;
131 bool m_descriptionHasBeenSet = false;
132
133 Aws::String m_domainIdentifier;
134 bool m_domainIdentifierHasBeenSet = false;
135
136 Aws::String m_environmentIdentifier;
137 bool m_environmentIdentifierHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 ConnectionPropertiesInput m_props;
143 bool m_propsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace DataZone
148} // namespace Aws
CreateConnectionRequest & WithAwsLocation(AwsLocationT &&value)
AWS_DATAZONE_API CreateConnectionRequest()=default
CreateConnectionRequest & WithProps(PropsT &&value)
virtual const char * GetServiceRequestName() const override
void SetEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateConnectionRequest & WithName(NameT &&value)
CreateConnectionRequest & WithDescription(DescriptionT &&value)
CreateConnectionRequest & WithClientToken(ClientTokenT &&value)
const ConnectionPropertiesInput & GetProps() const
AWS_DATAZONE_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithDomainIdentifier(DomainIdentifierT &&value)
CreateConnectionRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String