AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ManagedRuleSetVersion.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WAFV2
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_WAFV2_API ManagedRuleSetVersion();
46 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const Aws::String& GetAssociatedRuleGroupArn() const{ return m_associatedRuleGroupArn; }
55 inline bool AssociatedRuleGroupArnHasBeenSet() const { return m_associatedRuleGroupArnHasBeenSet; }
56 inline void SetAssociatedRuleGroupArn(const Aws::String& value) { m_associatedRuleGroupArnHasBeenSet = true; m_associatedRuleGroupArn = value; }
57 inline void SetAssociatedRuleGroupArn(Aws::String&& value) { m_associatedRuleGroupArnHasBeenSet = true; m_associatedRuleGroupArn = std::move(value); }
58 inline void SetAssociatedRuleGroupArn(const char* value) { m_associatedRuleGroupArnHasBeenSet = true; m_associatedRuleGroupArn.assign(value); }
61 inline ManagedRuleSetVersion& WithAssociatedRuleGroupArn(const char* value) { SetAssociatedRuleGroupArn(value); return *this;}
63
65
77 inline long long GetCapacity() const{ return m_capacity; }
78 inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; }
79 inline void SetCapacity(long long value) { m_capacityHasBeenSet = true; m_capacity = value; }
80 inline ManagedRuleSetVersion& WithCapacity(long long value) { SetCapacity(value); return *this;}
82
84
88 inline int GetForecastedLifetime() const{ return m_forecastedLifetime; }
89 inline bool ForecastedLifetimeHasBeenSet() const { return m_forecastedLifetimeHasBeenSet; }
90 inline void SetForecastedLifetime(int value) { m_forecastedLifetimeHasBeenSet = true; m_forecastedLifetime = value; }
91 inline ManagedRuleSetVersion& WithForecastedLifetime(int value) { SetForecastedLifetime(value); return *this;}
93
95
100 inline const Aws::Utils::DateTime& GetPublishTimestamp() const{ return m_publishTimestamp; }
101 inline bool PublishTimestampHasBeenSet() const { return m_publishTimestampHasBeenSet; }
102 inline void SetPublishTimestamp(const Aws::Utils::DateTime& value) { m_publishTimestampHasBeenSet = true; m_publishTimestamp = value; }
103 inline void SetPublishTimestamp(Aws::Utils::DateTime&& value) { m_publishTimestampHasBeenSet = true; m_publishTimestamp = std::move(value); }
105 inline ManagedRuleSetVersion& WithPublishTimestamp(Aws::Utils::DateTime&& value) { SetPublishTimestamp(std::move(value)); return *this;}
107
109
114 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const{ return m_lastUpdateTimestamp; }
115 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
116 inline void SetLastUpdateTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = value; }
117 inline void SetLastUpdateTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = std::move(value); }
121
123
128 inline const Aws::Utils::DateTime& GetExpiryTimestamp() const{ return m_expiryTimestamp; }
129 inline bool ExpiryTimestampHasBeenSet() const { return m_expiryTimestampHasBeenSet; }
130 inline void SetExpiryTimestamp(const Aws::Utils::DateTime& value) { m_expiryTimestampHasBeenSet = true; m_expiryTimestamp = value; }
131 inline void SetExpiryTimestamp(Aws::Utils::DateTime&& value) { m_expiryTimestampHasBeenSet = true; m_expiryTimestamp = std::move(value); }
133 inline ManagedRuleSetVersion& WithExpiryTimestamp(Aws::Utils::DateTime&& value) { SetExpiryTimestamp(std::move(value)); return *this;}
135 private:
136
137 Aws::String m_associatedRuleGroupArn;
138 bool m_associatedRuleGroupArnHasBeenSet = false;
139
140 long long m_capacity;
141 bool m_capacityHasBeenSet = false;
142
143 int m_forecastedLifetime;
144 bool m_forecastedLifetimeHasBeenSet = false;
145
146 Aws::Utils::DateTime m_publishTimestamp;
147 bool m_publishTimestampHasBeenSet = false;
148
149 Aws::Utils::DateTime m_lastUpdateTimestamp;
150 bool m_lastUpdateTimestampHasBeenSet = false;
151
152 Aws::Utils::DateTime m_expiryTimestamp;
153 bool m_expiryTimestampHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace WAFV2
158} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
ManagedRuleSetVersion & WithCapacity(long long value)
const Aws::String & GetAssociatedRuleGroupArn() const
ManagedRuleSetVersion & WithExpiryTimestamp(const Aws::Utils::DateTime &value)
ManagedRuleSetVersion & WithPublishTimestamp(Aws::Utils::DateTime &&value)
void SetAssociatedRuleGroupArn(Aws::String &&value)
ManagedRuleSetVersion & WithForecastedLifetime(int value)
ManagedRuleSetVersion & WithLastUpdateTimestamp(Aws::Utils::DateTime &&value)
ManagedRuleSetVersion & WithAssociatedRuleGroupArn(Aws::String &&value)
ManagedRuleSetVersion & WithPublishTimestamp(const Aws::Utils::DateTime &value)
ManagedRuleSetVersion & WithExpiryTimestamp(Aws::Utils::DateTime &&value)
void SetLastUpdateTimestamp(const Aws::Utils::DateTime &value)
void SetExpiryTimestamp(Aws::Utils::DateTime &&value)
AWS_WAFV2_API ManagedRuleSetVersion(Aws::Utils::Json::JsonView jsonValue)
void SetPublishTimestamp(const Aws::Utils::DateTime &value)
ManagedRuleSetVersion & WithAssociatedRuleGroupArn(const Aws::String &value)
AWS_WAFV2_API ManagedRuleSetVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetPublishTimestamp() const
void SetAssociatedRuleGroupArn(const Aws::String &value)
void SetPublishTimestamp(Aws::Utils::DateTime &&value)
ManagedRuleSetVersion & WithLastUpdateTimestamp(const Aws::Utils::DateTime &value)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdateTimestamp(Aws::Utils::DateTime &&value)
ManagedRuleSetVersion & WithAssociatedRuleGroupArn(const char *value)
const Aws::Utils::DateTime & GetExpiryTimestamp() const
void SetExpiryTimestamp(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue