AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListUsageLimitsRequest.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 <aws/redshift-serverless/model/UsageLimitUsageType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RedshiftServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REDSHIFTSERVERLESS_API ListUsageLimitsRequest();
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 "ListUsageLimits"; }
32
33 AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
44 inline int GetMaxResults() const{ return m_maxResults; }
45 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
47 inline ListUsageLimitsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
49
51
57 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
61 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
62 inline ListUsageLimitsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
63 inline ListUsageLimitsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
64 inline ListUsageLimitsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
66
68
72 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
73 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
74 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
75 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
76 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
77 inline ListUsageLimitsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
78 inline ListUsageLimitsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
79 inline ListUsageLimitsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
81
83
86 inline const UsageLimitUsageType& GetUsageType() const{ return m_usageType; }
87 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
88 inline void SetUsageType(const UsageLimitUsageType& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
89 inline void SetUsageType(UsageLimitUsageType&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
90 inline ListUsageLimitsRequest& WithUsageType(const UsageLimitUsageType& value) { SetUsageType(value); return *this;}
91 inline ListUsageLimitsRequest& WithUsageType(UsageLimitUsageType&& value) { SetUsageType(std::move(value)); return *this;}
93 private:
94
95 int m_maxResults;
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100
101 Aws::String m_resourceArn;
102 bool m_resourceArnHasBeenSet = false;
103
104 UsageLimitUsageType m_usageType;
105 bool m_usageTypeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace RedshiftServerless
110} // namespace Aws
ListUsageLimitsRequest & WithResourceArn(const Aws::String &value)
ListUsageLimitsRequest & WithUsageType(UsageLimitUsageType &&value)
ListUsageLimitsRequest & WithNextToken(const Aws::String &value)
ListUsageLimitsRequest & WithUsageType(const UsageLimitUsageType &value)
AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override
ListUsageLimitsRequest & WithNextToken(Aws::String &&value)
ListUsageLimitsRequest & WithResourceArn(const char *value)
virtual const char * GetServiceRequestName() const override
ListUsageLimitsRequest & WithNextToken(const char *value)
ListUsageLimitsRequest & WithResourceArn(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String