AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AssociatedRuleGroupArnT = Aws::String>
57 void SetAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) { m_associatedRuleGroupArnHasBeenSet = true; m_associatedRuleGroupArn = std::forward<AssociatedRuleGroupArnT>(value); }
58 template<typename AssociatedRuleGroupArnT = Aws::String>
59 ManagedRuleSetVersion& WithAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) { SetAssociatedRuleGroupArn(std::forward<AssociatedRuleGroupArnT>(value)); return *this;}
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) { m_capacityHasBeenSet = true; m_capacity = value; }
78 inline ManagedRuleSetVersion& WithCapacity(long long value) { SetCapacity(value); return *this;}
80
82
86 inline int GetForecastedLifetime() const { return m_forecastedLifetime; }
87 inline bool ForecastedLifetimeHasBeenSet() const { return m_forecastedLifetimeHasBeenSet; }
88 inline void SetForecastedLifetime(int value) { m_forecastedLifetimeHasBeenSet = true; m_forecastedLifetime = value; }
89 inline ManagedRuleSetVersion& WithForecastedLifetime(int value) { SetForecastedLifetime(value); return *this;}
91
93
98 inline const Aws::Utils::DateTime& GetPublishTimestamp() const { return m_publishTimestamp; }
99 inline bool PublishTimestampHasBeenSet() const { return m_publishTimestampHasBeenSet; }
100 template<typename PublishTimestampT = Aws::Utils::DateTime>
101 void SetPublishTimestamp(PublishTimestampT&& value) { m_publishTimestampHasBeenSet = true; m_publishTimestamp = std::forward<PublishTimestampT>(value); }
102 template<typename PublishTimestampT = Aws::Utils::DateTime>
103 ManagedRuleSetVersion& WithPublishTimestamp(PublishTimestampT&& value) { SetPublishTimestamp(std::forward<PublishTimestampT>(value)); return *this;}
105
107
112 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const { return m_lastUpdateTimestamp; }
113 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
114 template<typename LastUpdateTimestampT = Aws::Utils::DateTime>
115 void SetLastUpdateTimestamp(LastUpdateTimestampT&& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = std::forward<LastUpdateTimestampT>(value); }
116 template<typename LastUpdateTimestampT = Aws::Utils::DateTime>
117 ManagedRuleSetVersion& WithLastUpdateTimestamp(LastUpdateTimestampT&& value) { SetLastUpdateTimestamp(std::forward<LastUpdateTimestampT>(value)); return *this;}
119
121
126 inline const Aws::Utils::DateTime& GetExpiryTimestamp() const { return m_expiryTimestamp; }
127 inline bool ExpiryTimestampHasBeenSet() const { return m_expiryTimestampHasBeenSet; }
128 template<typename ExpiryTimestampT = Aws::Utils::DateTime>
129 void SetExpiryTimestamp(ExpiryTimestampT&& value) { m_expiryTimestampHasBeenSet = true; m_expiryTimestamp = std::forward<ExpiryTimestampT>(value); }
130 template<typename ExpiryTimestampT = Aws::Utils::DateTime>
131 ManagedRuleSetVersion& WithExpiryTimestamp(ExpiryTimestampT&& value) { SetExpiryTimestamp(std::forward<ExpiryTimestampT>(value)); return *this;}
133 private:
134
135 Aws::String m_associatedRuleGroupArn;
136 bool m_associatedRuleGroupArnHasBeenSet = false;
137
138 long long m_capacity{0};
139 bool m_capacityHasBeenSet = false;
140
141 int m_forecastedLifetime{0};
142 bool m_forecastedLifetimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_publishTimestamp{};
145 bool m_publishTimestampHasBeenSet = false;
146
147 Aws::Utils::DateTime m_lastUpdateTimestamp{};
148 bool m_lastUpdateTimestampHasBeenSet = false;
149
150 Aws::Utils::DateTime m_expiryTimestamp{};
151 bool m_expiryTimestampHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace WAFV2
156} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue