AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VersionToPublish.h
1
6#pragma once
7#include <aws/wafv2/WAFV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WAFV2
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_WAFV2_API VersionToPublish() = default;
45 AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetAssociatedRuleGroupArn() const { return m_associatedRuleGroupArn; }
54 inline bool AssociatedRuleGroupArnHasBeenSet() const { return m_associatedRuleGroupArnHasBeenSet; }
55 template<typename AssociatedRuleGroupArnT = Aws::String>
56 void SetAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) { m_associatedRuleGroupArnHasBeenSet = true; m_associatedRuleGroupArn = std::forward<AssociatedRuleGroupArnT>(value); }
57 template<typename AssociatedRuleGroupArnT = Aws::String>
58 VersionToPublish& WithAssociatedRuleGroupArn(AssociatedRuleGroupArnT&& value) { SetAssociatedRuleGroupArn(std::forward<AssociatedRuleGroupArnT>(value)); return *this;}
60
62
66 inline int GetForecastedLifetime() const { return m_forecastedLifetime; }
67 inline bool ForecastedLifetimeHasBeenSet() const { return m_forecastedLifetimeHasBeenSet; }
68 inline void SetForecastedLifetime(int value) { m_forecastedLifetimeHasBeenSet = true; m_forecastedLifetime = value; }
69 inline VersionToPublish& WithForecastedLifetime(int value) { SetForecastedLifetime(value); return *this;}
71 private:
72
73 Aws::String m_associatedRuleGroupArn;
74 bool m_associatedRuleGroupArnHasBeenSet = false;
75
76 int m_forecastedLifetime{0};
77 bool m_forecastedLifetimeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace WAFV2
82} // namespace Aws
VersionToPublish & WithAssociatedRuleGroupArn(AssociatedRuleGroupArnT &&value)
const Aws::String & GetAssociatedRuleGroupArn() const
AWS_WAFV2_API VersionToPublish(Aws::Utils::Json::JsonView jsonValue)
VersionToPublish & WithForecastedLifetime(int value)
void SetAssociatedRuleGroupArn(AssociatedRuleGroupArnT &&value)
AWS_WAFV2_API VersionToPublish()=default
AWS_WAFV2_API VersionToPublish & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WAFV2_API Aws::Utils::Json::JsonValue Jsonize() const
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