AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCustomDomainName(const Aws::String& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = value; }
45 inline void SetCustomDomainName(Aws::String&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::move(value); }
46 inline void SetCustomDomainName(const char* value) { m_customDomainNameHasBeenSet = true; m_customDomainName.assign(value); }
47 inline GetCredentialsRequest& WithCustomDomainName(const Aws::String& value) { SetCustomDomainName(value); return *this;}
48 inline GetCredentialsRequest& WithCustomDomainName(Aws::String&& value) { SetCustomDomainName(std::move(value)); return *this;}
49 inline GetCredentialsRequest& WithCustomDomainName(const char* value) { SetCustomDomainName(value); return *this;}
51
53
64 inline const Aws::String& GetDbName() const{ return m_dbName; }
65 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
66 inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
67 inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
68 inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
69 inline GetCredentialsRequest& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
70 inline GetCredentialsRequest& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
71 inline GetCredentialsRequest& WithDbName(const char* value) { SetDbName(value); return *this;}
73
75
79 inline int GetDurationSeconds() const{ return m_durationSeconds; }
80 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
81 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
82 inline GetCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
84
86
89 inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; }
90 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
91 inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; }
92 inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); }
93 inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); }
94 inline GetCredentialsRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;}
95 inline GetCredentialsRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;}
96 inline GetCredentialsRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;}
98 private:
99
100 Aws::String m_customDomainName;
101 bool m_customDomainNameHasBeenSet = false;
102
103 Aws::String m_dbName;
104 bool m_dbNameHasBeenSet = false;
105
106 int m_durationSeconds;
107 bool m_durationSecondsHasBeenSet = false;
108
109 Aws::String m_workgroupName;
110 bool m_workgroupNameHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace RedshiftServerless
115} // namespace Aws
GetCredentialsRequest & WithCustomDomainName(Aws::String &&value)
GetCredentialsRequest & WithWorkgroupName(const char *value)
GetCredentialsRequest & WithWorkgroupName(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
GetCredentialsRequest & WithCustomDomainName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetCredentialsRequest & WithDbName(const Aws::String &value)
GetCredentialsRequest & WithDbName(const char *value)
GetCredentialsRequest & WithDbName(Aws::String &&value)
GetCredentialsRequest & WithCustomDomainName(const char *value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCredentialsRequest & WithWorkgroupName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String