AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUsageLimitResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/model/UsageLimitFeatureType.h>
10#include <aws/redshift/model/UsageLimitLimitType.h>
11#include <aws/redshift/model/UsageLimitPeriod.h>
12#include <aws/redshift/model/UsageLimitBreachAction.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/redshift/model/ResponseMetadata.h>
15#include <aws/redshift/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Xml
26{
27 class XmlDocument;
28} // namespace Xml
29} // namespace Utils
30namespace Redshift
31{
32namespace Model
33{
40 {
41 public:
42 AWS_REDSHIFT_API CreateUsageLimitResult();
45
46
48
51 inline const Aws::String& GetUsageLimitId() const{ return m_usageLimitId; }
52 inline void SetUsageLimitId(const Aws::String& value) { m_usageLimitId = value; }
53 inline void SetUsageLimitId(Aws::String&& value) { m_usageLimitId = std::move(value); }
54 inline void SetUsageLimitId(const char* value) { m_usageLimitId.assign(value); }
55 inline CreateUsageLimitResult& WithUsageLimitId(const Aws::String& value) { SetUsageLimitId(value); return *this;}
56 inline CreateUsageLimitResult& WithUsageLimitId(Aws::String&& value) { SetUsageLimitId(std::move(value)); return *this;}
57 inline CreateUsageLimitResult& WithUsageLimitId(const char* value) { SetUsageLimitId(value); return *this;}
59
61
64 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
65 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifier = value; }
66 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifier = std::move(value); }
67 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifier.assign(value); }
69 inline CreateUsageLimitResult& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
70 inline CreateUsageLimitResult& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
72
74
77 inline const UsageLimitFeatureType& GetFeatureType() const{ return m_featureType; }
78 inline void SetFeatureType(const UsageLimitFeatureType& value) { m_featureType = value; }
79 inline void SetFeatureType(UsageLimitFeatureType&& value) { m_featureType = std::move(value); }
80 inline CreateUsageLimitResult& WithFeatureType(const UsageLimitFeatureType& value) { SetFeatureType(value); return *this;}
81 inline CreateUsageLimitResult& WithFeatureType(UsageLimitFeatureType&& value) { SetFeatureType(std::move(value)); return *this;}
83
85
89 inline const UsageLimitLimitType& GetLimitType() const{ return m_limitType; }
90 inline void SetLimitType(const UsageLimitLimitType& value) { m_limitType = value; }
91 inline void SetLimitType(UsageLimitLimitType&& value) { m_limitType = std::move(value); }
92 inline CreateUsageLimitResult& WithLimitType(const UsageLimitLimitType& value) { SetLimitType(value); return *this;}
93 inline CreateUsageLimitResult& WithLimitType(UsageLimitLimitType&& value) { SetLimitType(std::move(value)); return *this;}
95
97
101 inline long long GetAmount() const{ return m_amount; }
102 inline void SetAmount(long long value) { m_amount = value; }
103 inline CreateUsageLimitResult& WithAmount(long long value) { SetAmount(value); return *this;}
105
107
111 inline const UsageLimitPeriod& GetPeriod() const{ return m_period; }
112 inline void SetPeriod(const UsageLimitPeriod& value) { m_period = value; }
113 inline void SetPeriod(UsageLimitPeriod&& value) { m_period = std::move(value); }
114 inline CreateUsageLimitResult& WithPeriod(const UsageLimitPeriod& value) { SetPeriod(value); return *this;}
115 inline CreateUsageLimitResult& WithPeriod(UsageLimitPeriod&& value) { SetPeriod(std::move(value)); return *this;}
117
119
126 inline const UsageLimitBreachAction& GetBreachAction() const{ return m_breachAction; }
127 inline void SetBreachAction(const UsageLimitBreachAction& value) { m_breachAction = value; }
128 inline void SetBreachAction(UsageLimitBreachAction&& value) { m_breachAction = std::move(value); }
130 inline CreateUsageLimitResult& WithBreachAction(UsageLimitBreachAction&& value) { SetBreachAction(std::move(value)); return *this;}
132
134
137 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
138 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
139 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
140 inline CreateUsageLimitResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
141 inline CreateUsageLimitResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
142 inline CreateUsageLimitResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
143 inline CreateUsageLimitResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
145
147
148 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
149 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
150 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
152 inline CreateUsageLimitResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
154 private:
155
156 Aws::String m_usageLimitId;
157
158 Aws::String m_clusterIdentifier;
159
160 UsageLimitFeatureType m_featureType;
161
162 UsageLimitLimitType m_limitType;
163
164 long long m_amount;
165
166 UsageLimitPeriod m_period;
167
168 UsageLimitBreachAction m_breachAction;
169
170 Aws::Vector<Tag> m_tags;
171
172 ResponseMetadata m_responseMetadata;
173 };
174
175} // namespace Model
176} // namespace Redshift
177} // namespace Aws
CreateUsageLimitResult & WithUsageLimitId(const Aws::String &value)
void SetClusterIdentifier(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
void SetResponseMetadata(const ResponseMetadata &value)
CreateUsageLimitResult & WithClusterIdentifier(const char *value)
CreateUsageLimitResult & WithResponseMetadata(const ResponseMetadata &value)
AWS_REDSHIFT_API CreateUsageLimitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetFeatureType(const UsageLimitFeatureType &value)
CreateUsageLimitResult & WithUsageLimitId(const char *value)
const ResponseMetadata & GetResponseMetadata() const
void SetBreachAction(const UsageLimitBreachAction &value)
CreateUsageLimitResult & WithFeatureType(UsageLimitFeatureType &&value)
CreateUsageLimitResult & WithLimitType(UsageLimitLimitType &&value)
CreateUsageLimitResult & WithClusterIdentifier(Aws::String &&value)
CreateUsageLimitResult & WithFeatureType(const UsageLimitFeatureType &value)
CreateUsageLimitResult & WithTags(const Aws::Vector< Tag > &value)
const UsageLimitFeatureType & GetFeatureType() const
CreateUsageLimitResult & WithLimitType(const UsageLimitLimitType &value)
AWS_REDSHIFT_API CreateUsageLimitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateUsageLimitResult & WithPeriod(const UsageLimitPeriod &value)
void SetBreachAction(UsageLimitBreachAction &&value)
CreateUsageLimitResult & WithClusterIdentifier(const Aws::String &value)
CreateUsageLimitResult & WithResponseMetadata(ResponseMetadata &&value)
void SetPeriod(const UsageLimitPeriod &value)
void SetLimitType(UsageLimitLimitType &&value)
const UsageLimitLimitType & GetLimitType() const
CreateUsageLimitResult & AddTags(const Tag &value)
CreateUsageLimitResult & WithTags(Aws::Vector< Tag > &&value)
void SetFeatureType(UsageLimitFeatureType &&value)
CreateUsageLimitResult & AddTags(Tag &&value)
CreateUsageLimitResult & WithPeriod(UsageLimitPeriod &&value)
CreateUsageLimitResult & WithBreachAction(const UsageLimitBreachAction &value)
CreateUsageLimitResult & WithBreachAction(UsageLimitBreachAction &&value)
void SetLimitType(const UsageLimitLimitType &value)
CreateUsageLimitResult & WithAmount(long long value)
const UsageLimitBreachAction & GetBreachAction() const
CreateUsageLimitResult & WithUsageLimitId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument