AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetCredentialsRequest.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/redshift-serverless/RedshiftServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RedshiftServerless
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_REDSHIFTSERVERLESS_API GetCredentialsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetCredentials"; }
31
32 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
43 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
44 template<typename CustomDomainNameT = Aws::String>
45 void SetCustomDomainName(CustomDomainNameT&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::forward<CustomDomainNameT>(value); }
46 template<typename CustomDomainNameT = Aws::String>
47 GetCredentialsRequest& WithCustomDomainName(CustomDomainNameT&& value) { SetCustomDomainName(std::forward<CustomDomainNameT>(value)); return *this;}
49
51
62 inline const Aws::String& GetDbName() const { return m_dbName; }
63 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
64 template<typename DbNameT = Aws::String>
65 void SetDbName(DbNameT&& value) { m_dbNameHasBeenSet = true; m_dbName = std::forward<DbNameT>(value); }
66 template<typename DbNameT = Aws::String>
67 GetCredentialsRequest& WithDbName(DbNameT&& value) { SetDbName(std::forward<DbNameT>(value)); return *this;}
69
71
75 inline int GetDurationSeconds() const { return m_durationSeconds; }
76 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
77 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
78 inline GetCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
80
82
85 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
86 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
87 template<typename WorkgroupNameT = Aws::String>
88 void SetWorkgroupName(WorkgroupNameT&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::forward<WorkgroupNameT>(value); }
89 template<typename WorkgroupNameT = Aws::String>
90 GetCredentialsRequest& WithWorkgroupName(WorkgroupNameT&& value) { SetWorkgroupName(std::forward<WorkgroupNameT>(value)); return *this;}
92 private:
93
94 Aws::String m_customDomainName;
95 bool m_customDomainNameHasBeenSet = false;
96
97 Aws::String m_dbName;
98 bool m_dbNameHasBeenSet = false;
99
100 int m_durationSeconds{0};
101 bool m_durationSecondsHasBeenSet = false;
102
103 Aws::String m_workgroupName;
104 bool m_workgroupNameHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace RedshiftServerless
109} // 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