AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rbin/RecycleBin_EXPORTS.h>
9#include <aws/rbin/model/LockState.h>
10#include <aws/rbin/model/RetentionPeriod.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace RecycleBin {
22namespace Model {
23
30 public:
31 AWS_RECYCLEBIN_API RuleSummary() = default;
32 AWS_RECYCLEBIN_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RECYCLEBIN_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 RuleSummary& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 RuleSummary& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
78 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
79 template <typename RetentionPeriodT = RetentionPeriod>
80 void SetRetentionPeriod(RetentionPeriodT&& value) {
81 m_retentionPeriodHasBeenSet = true;
82 m_retentionPeriod = std::forward<RetentionPeriodT>(value);
83 }
84 template <typename RetentionPeriodT = RetentionPeriod>
85 RuleSummary& WithRetentionPeriod(RetentionPeriodT&& value) {
86 SetRetentionPeriod(std::forward<RetentionPeriodT>(value));
87 return *this;
88 }
90
92
105 inline LockState GetLockState() const { return m_lockState; }
106 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
107 inline void SetLockState(LockState value) {
108 m_lockStateHasBeenSet = true;
109 m_lockState = value;
110 }
112 SetLockState(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
122 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
123 template <typename RuleArnT = Aws::String>
124 void SetRuleArn(RuleArnT&& value) {
125 m_ruleArnHasBeenSet = true;
126 m_ruleArn = std::forward<RuleArnT>(value);
127 }
128 template <typename RuleArnT = Aws::String>
129 RuleSummary& WithRuleArn(RuleArnT&& value) {
130 SetRuleArn(std::forward<RuleArnT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_identifier;
136
137 Aws::String m_description;
138
139 RetentionPeriod m_retentionPeriod;
140
141 LockState m_lockState{LockState::NOT_SET};
142
143 Aws::String m_ruleArn;
144 bool m_identifierHasBeenSet = false;
145 bool m_descriptionHasBeenSet = false;
146 bool m_retentionPeriodHasBeenSet = false;
147 bool m_lockStateHasBeenSet = false;
148 bool m_ruleArnHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace RecycleBin
153} // namespace Aws
AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleArn() const
const Aws::String & GetIdentifier() const
Definition RuleSummary.h:40
void SetRuleArn(RuleArnT &&value)
const Aws::String & GetDescription() const
Definition RuleSummary.h:58
AWS_RECYCLEBIN_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithLockState(LockState value)
const RetentionPeriod & GetRetentionPeriod() const
Definition RuleSummary.h:77
RuleSummary & WithDescription(DescriptionT &&value)
Definition RuleSummary.h:66
AWS_RECYCLEBIN_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLockState(LockState value)
RuleSummary & WithRetentionPeriod(RetentionPeriodT &&value)
Definition RuleSummary.h:85
RuleSummary & WithRuleArn(RuleArnT &&value)
AWS_RECYCLEBIN_API RuleSummary()=default
void SetIdentifier(IdentifierT &&value)
Definition RuleSummary.h:43
RuleSummary & WithIdentifier(IdentifierT &&value)
Definition RuleSummary.h:48
void SetDescription(DescriptionT &&value)
Definition RuleSummary.h:61
void SetRetentionPeriod(RetentionPeriodT &&value)
Definition RuleSummary.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue