AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetCredentialsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RedshiftServerless {
15namespace Model {
16
20 public:
21 AWS_REDSHIFTSERVERLESS_API GetCredentialsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetCredentials"; }
28
29 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
30
31 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
38 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
39 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
40 template <typename CustomDomainNameT = Aws::String>
41 void SetCustomDomainName(CustomDomainNameT&& value) {
42 m_customDomainNameHasBeenSet = true;
43 m_customDomainName = std::forward<CustomDomainNameT>(value);
44 }
45 template <typename CustomDomainNameT = Aws::String>
46 GetCredentialsRequest& WithCustomDomainName(CustomDomainNameT&& value) {
47 SetCustomDomainName(std::forward<CustomDomainNameT>(value));
48 return *this;
49 }
51
53
64 inline const Aws::String& GetDbName() const { return m_dbName; }
65 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
66 template <typename DbNameT = Aws::String>
67 void SetDbName(DbNameT&& value) {
68 m_dbNameHasBeenSet = true;
69 m_dbName = std::forward<DbNameT>(value);
70 }
71 template <typename DbNameT = Aws::String>
73 SetDbName(std::forward<DbNameT>(value));
74 return *this;
75 }
77
79
83 inline int GetDurationSeconds() const { return m_durationSeconds; }
84 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
85 inline void SetDurationSeconds(int value) {
86 m_durationSecondsHasBeenSet = true;
87 m_durationSeconds = value;
88 }
90 SetDurationSeconds(value);
91 return *this;
92 }
94
96
99 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
100 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
101 template <typename WorkgroupNameT = Aws::String>
102 void SetWorkgroupName(WorkgroupNameT&& value) {
103 m_workgroupNameHasBeenSet = true;
104 m_workgroupName = std::forward<WorkgroupNameT>(value);
105 }
106 template <typename WorkgroupNameT = Aws::String>
107 GetCredentialsRequest& WithWorkgroupName(WorkgroupNameT&& value) {
108 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_customDomainName;
114
115 Aws::String m_dbName;
116
117 int m_durationSeconds{0};
118
119 Aws::String m_workgroupName;
120 bool m_customDomainNameHasBeenSet = false;
121 bool m_dbNameHasBeenSet = false;
122 bool m_durationSecondsHasBeenSet = false;
123 bool m_workgroupNameHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace RedshiftServerless
128} // namespace Aws
GetCredentialsRequest & WithDbName(DbNameT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
GetCredentialsRequest & WithCustomDomainName(CustomDomainNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REDSHIFTSERVERLESS_API GetCredentialsRequest()=default
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCredentialsRequest & WithWorkgroupName(WorkgroupNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String