AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
ManagedRuleSetVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WAFV2 {
21namespace Model {
22
37 public:
38 AWS_WAFV2_API ManagedRuleSetVersion() = default;
41 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const Aws::String& GetAssociatedRuleGroupArn() const { return m_associatedRuleGroupArn; }
49 inline bool AssociatedRuleGroupArnHasBeenSet() const { return m_associatedRuleGroupArnHasBeenSet; }
50 template <typename AssociatedRuleGroupArnT = Aws::String>
51 void SetAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) {
52 m_associatedRuleGroupArnHasBeenSet = true;
53 m_associatedRuleGroupArn = std::forward<AssociatedRuleGroupArnT>(value);
54 }
55 template <typename AssociatedRuleGroupArnT = Aws::String>
56 ManagedRuleSetVersion& WithAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) {
57 SetAssociatedRuleGroupArn(std::forward<AssociatedRuleGroupArnT>(value));
58 return *this;
59 }
61
63
75 inline long long GetCapacity() const { return m_capacity; }
76 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
77 inline void SetCapacity(long long value) {
78 m_capacityHasBeenSet = true;
79 m_capacity = value;
80 }
81 inline ManagedRuleSetVersion& WithCapacity(long long value) {
82 SetCapacity(value);
83 return *this;
84 }
86
88
92 inline int GetForecastedLifetime() const { return m_forecastedLifetime; }
93 inline bool ForecastedLifetimeHasBeenSet() const { return m_forecastedLifetimeHasBeenSet; }
94 inline void SetForecastedLifetime(int value) {
95 m_forecastedLifetimeHasBeenSet = true;
96 m_forecastedLifetime = value;
97 }
100 return *this;
101 }
103
105
110 inline const Aws::Utils::DateTime& GetPublishTimestamp() const { return m_publishTimestamp; }
111 inline bool PublishTimestampHasBeenSet() const { return m_publishTimestampHasBeenSet; }
112 template <typename PublishTimestampT = Aws::Utils::DateTime>
113 void SetPublishTimestamp(PublishTimestampT&& value) {
114 m_publishTimestampHasBeenSet = true;
115 m_publishTimestamp = std::forward<PublishTimestampT>(value);
116 }
117 template <typename PublishTimestampT = Aws::Utils::DateTime>
118 ManagedRuleSetVersion& WithPublishTimestamp(PublishTimestampT&& value) {
119 SetPublishTimestamp(std::forward<PublishTimestampT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const { return m_lastUpdateTimestamp; }
131 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
132 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
133 void SetLastUpdateTimestamp(LastUpdateTimestampT&& value) {
134 m_lastUpdateTimestampHasBeenSet = true;
135 m_lastUpdateTimestamp = std::forward<LastUpdateTimestampT>(value);
136 }
137 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
138 ManagedRuleSetVersion& WithLastUpdateTimestamp(LastUpdateTimestampT&& value) {
139 SetLastUpdateTimestamp(std::forward<LastUpdateTimestampT>(value));
140 return *this;
141 }
143
145
150 inline const Aws::Utils::DateTime& GetExpiryTimestamp() const { return m_expiryTimestamp; }
151 inline bool ExpiryTimestampHasBeenSet() const { return m_expiryTimestampHasBeenSet; }
152 template <typename ExpiryTimestampT = Aws::Utils::DateTime>
153 void SetExpiryTimestamp(ExpiryTimestampT&& value) {
154 m_expiryTimestampHasBeenSet = true;
155 m_expiryTimestamp = std::forward<ExpiryTimestampT>(value);
156 }
157 template <typename ExpiryTimestampT = Aws::Utils::DateTime>
158 ManagedRuleSetVersion& WithExpiryTimestamp(ExpiryTimestampT&& value) {
159 SetExpiryTimestamp(std::forward<ExpiryTimestampT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_associatedRuleGroupArn;
165
166 long long m_capacity{0};
167
168 int m_forecastedLifetime{0};
169
170 Aws::Utils::DateTime m_publishTimestamp{};
171
172 Aws::Utils::DateTime m_lastUpdateTimestamp{};
173
174 Aws::Utils::DateTime m_expiryTimestamp{};
175 bool m_associatedRuleGroupArnHasBeenSet = false;
176 bool m_capacityHasBeenSet = false;
177 bool m_forecastedLifetimeHasBeenSet = false;
178 bool m_publishTimestampHasBeenSet = false;
179 bool m_lastUpdateTimestampHasBeenSet = false;
180 bool m_expiryTimestampHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace WAFV2
185} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
ManagedRuleSetVersion & WithCapacity(long long value)
const Aws::String & GetAssociatedRuleGroupArn() const
void SetExpiryTimestamp(ExpiryTimestampT &&value)
ManagedRuleSetVersion & WithForecastedLifetime(int value)
AWS_WAFV2_API ManagedRuleSetVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API ManagedRuleSetVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPublishTimestamp() const
AWS_WAFV2_API ManagedRuleSetVersion()=default
void SetAssociatedRuleGroupArn(AssociatedRuleGroupArnT &&value)
ManagedRuleSetVersion & WithPublishTimestamp(PublishTimestampT &&value)
ManagedRuleSetVersion & WithAssociatedRuleGroupArn(AssociatedRuleGroupArnT &&value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdateTimestamp(LastUpdateTimestampT &&value)
ManagedRuleSetVersion & WithExpiryTimestamp(ExpiryTimestampT &&value)
ManagedRuleSetVersion & WithLastUpdateTimestamp(LastUpdateTimestampT &&value)
const Aws::Utils::DateTime & GetExpiryTimestamp() const
void SetPublishTimestamp(PublishTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue