AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedRuleGroupVersion.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
34 {
35 public:
36 AWS_WAFV2_API ManagedRuleGroupVersion() = default;
39 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 ManagedRuleGroupVersion& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const { return m_lastUpdateTimestamp; }
60 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
61 template<typename LastUpdateTimestampT = Aws::Utils::DateTime>
62 void SetLastUpdateTimestamp(LastUpdateTimestampT&& value) { m_lastUpdateTimestampHasBeenSet = true; m_lastUpdateTimestamp = std::forward<LastUpdateTimestampT>(value); }
63 template<typename LastUpdateTimestampT = Aws::Utils::DateTime>
64 ManagedRuleGroupVersion& WithLastUpdateTimestamp(LastUpdateTimestampT&& value) { SetLastUpdateTimestamp(std::forward<LastUpdateTimestampT>(value)); return *this;}
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
71 Aws::Utils::DateTime m_lastUpdateTimestamp{};
72 bool m_lastUpdateTimestampHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WAFV2
77} // namespace Aws
void SetLastUpdateTimestamp(LastUpdateTimestampT &&value)
AWS_WAFV2_API ManagedRuleGroupVersion()=default
ManagedRuleGroupVersion & WithName(NameT &&value)
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
AWS_WAFV2_API ManagedRuleGroupVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WAFV2_API ManagedRuleGroupVersion(Aws::Utils::Json::JsonView jsonValue)
ManagedRuleGroupVersion & WithLastUpdateTimestamp(LastUpdateTimestampT &&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