AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSightRequest.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/DataSourceCredentials.h>
11#include <aws/quicksight/model/DataSourceParameters.h>
12#include <aws/quicksight/model/SslProperties.h>
13#include <aws/quicksight/model/VpcConnectionProperties.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API UpdateDataSourceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
40 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
41 template <typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) {
43 m_awsAccountIdHasBeenSet = true;
44 m_awsAccountId = std::forward<AwsAccountIdT>(value);
45 }
46 template <typename AwsAccountIdT = Aws::String>
47 UpdateDataSourceRequest& WithAwsAccountId(AwsAccountIdT&& value) {
48 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
59 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
60 template <typename DataSourceIdT = Aws::String>
61 void SetDataSourceId(DataSourceIdT&& value) {
62 m_dataSourceIdHasBeenSet = true;
63 m_dataSourceId = std::forward<DataSourceIdT>(value);
64 }
65 template <typename DataSourceIdT = Aws::String>
66 UpdateDataSourceRequest& WithDataSourceId(DataSourceIdT&& value) {
67 SetDataSourceId(std::forward<DataSourceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
95 inline const DataSourceParameters& GetDataSourceParameters() const { return m_dataSourceParameters; }
96 inline bool DataSourceParametersHasBeenSet() const { return m_dataSourceParametersHasBeenSet; }
97 template <typename DataSourceParametersT = DataSourceParameters>
98 void SetDataSourceParameters(DataSourceParametersT&& value) {
99 m_dataSourceParametersHasBeenSet = true;
100 m_dataSourceParameters = std::forward<DataSourceParametersT>(value);
101 }
102 template <typename DataSourceParametersT = DataSourceParameters>
103 UpdateDataSourceRequest& WithDataSourceParameters(DataSourceParametersT&& value) {
104 SetDataSourceParameters(std::forward<DataSourceParametersT>(value));
105 return *this;
106 }
108
110
115 inline const DataSourceCredentials& GetCredentials() const { return m_credentials; }
116 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
117 template <typename CredentialsT = DataSourceCredentials>
118 void SetCredentials(CredentialsT&& value) {
119 m_credentialsHasBeenSet = true;
120 m_credentials = std::forward<CredentialsT>(value);
121 }
122 template <typename CredentialsT = DataSourceCredentials>
124 SetCredentials(std::forward<CredentialsT>(value));
125 return *this;
126 }
128
130
134 inline const VpcConnectionProperties& GetVpcConnectionProperties() const { return m_vpcConnectionProperties; }
135 inline bool VpcConnectionPropertiesHasBeenSet() const { return m_vpcConnectionPropertiesHasBeenSet; }
136 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
137 void SetVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
138 m_vpcConnectionPropertiesHasBeenSet = true;
139 m_vpcConnectionProperties = std::forward<VpcConnectionPropertiesT>(value);
140 }
141 template <typename VpcConnectionPropertiesT = VpcConnectionProperties>
142 UpdateDataSourceRequest& WithVpcConnectionProperties(VpcConnectionPropertiesT&& value) {
143 SetVpcConnectionProperties(std::forward<VpcConnectionPropertiesT>(value));
144 return *this;
145 }
147
149
153 inline const SslProperties& GetSslProperties() const { return m_sslProperties; }
154 inline bool SslPropertiesHasBeenSet() const { return m_sslPropertiesHasBeenSet; }
155 template <typename SslPropertiesT = SslProperties>
156 void SetSslProperties(SslPropertiesT&& value) {
157 m_sslPropertiesHasBeenSet = true;
158 m_sslProperties = std::forward<SslPropertiesT>(value);
159 }
160 template <typename SslPropertiesT = SslProperties>
162 SetSslProperties(std::forward<SslPropertiesT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_awsAccountId;
168
169 Aws::String m_dataSourceId;
170
171 Aws::String m_name;
172
173 DataSourceParameters m_dataSourceParameters;
174
175 DataSourceCredentials m_credentials;
176
177 VpcConnectionProperties m_vpcConnectionProperties;
178
179 SslProperties m_sslProperties;
180 bool m_awsAccountIdHasBeenSet = false;
181 bool m_dataSourceIdHasBeenSet = false;
182 bool m_nameHasBeenSet = false;
183 bool m_dataSourceParametersHasBeenSet = false;
184 bool m_credentialsHasBeenSet = false;
185 bool m_vpcConnectionPropertiesHasBeenSet = false;
186 bool m_sslPropertiesHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace QuickSight
191} // namespace Aws
void SetDataSourceParameters(DataSourceParametersT &&value)
UpdateDataSourceRequest & WithAwsAccountId(AwsAccountIdT &&value)
const DataSourceCredentials & GetCredentials() const
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
void SetVpcConnectionProperties(VpcConnectionPropertiesT &&value)
UpdateDataSourceRequest & WithVpcConnectionProperties(VpcConnectionPropertiesT &&value)
UpdateDataSourceRequest & WithDataSourceParameters(DataSourceParametersT &&value)
UpdateDataSourceRequest & WithSslProperties(SslPropertiesT &&value)
AWS_QUICKSIGHT_API UpdateDataSourceRequest()=default
UpdateDataSourceRequest & WithCredentials(CredentialsT &&value)
const DataSourceParameters & GetDataSourceParameters() const
virtual const char * GetServiceRequestName() const override
const VpcConnectionProperties & GetVpcConnectionProperties() const
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithDataSourceId(DataSourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String