AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/rbin/RecycleBin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rbin/model/RetentionPeriod.h>
10#include <aws/rbin/model/LockState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RecycleBin
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_RECYCLEBIN_API RuleSummary() = default;
37 AWS_RECYCLEBIN_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RECYCLEBIN_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetIdentifier() const { return m_identifier; }
47 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
48 template<typename IdentifierT = Aws::String>
49 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
50 template<typename IdentifierT = Aws::String>
51 RuleSummary& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 RuleSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
71 inline const RetentionPeriod& GetRetentionPeriod() const { return m_retentionPeriod; }
72 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
73 template<typename RetentionPeriodT = RetentionPeriod>
74 void SetRetentionPeriod(RetentionPeriodT&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::forward<RetentionPeriodT>(value); }
75 template<typename RetentionPeriodT = RetentionPeriod>
76 RuleSummary& WithRetentionPeriod(RetentionPeriodT&& value) { SetRetentionPeriod(std::forward<RetentionPeriodT>(value)); return *this;}
78
80
93 inline LockState GetLockState() const { return m_lockState; }
94 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
95 inline void SetLockState(LockState value) { m_lockStateHasBeenSet = true; m_lockState = value; }
96 inline RuleSummary& WithLockState(LockState value) { SetLockState(value); return *this;}
98
100
103 inline const Aws::String& GetRuleArn() const { return m_ruleArn; }
104 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
105 template<typename RuleArnT = Aws::String>
106 void SetRuleArn(RuleArnT&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::forward<RuleArnT>(value); }
107 template<typename RuleArnT = Aws::String>
108 RuleSummary& WithRuleArn(RuleArnT&& value) { SetRuleArn(std::forward<RuleArnT>(value)); return *this;}
110 private:
111
112 Aws::String m_identifier;
113 bool m_identifierHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 RetentionPeriod m_retentionPeriod;
119 bool m_retentionPeriodHasBeenSet = false;
120
121 LockState m_lockState{LockState::NOT_SET};
122 bool m_lockStateHasBeenSet = false;
123
124 Aws::String m_ruleArn;
125 bool m_ruleArnHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace RecycleBin
130} // namespace Aws
AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleArn() const
const Aws::String & GetIdentifier() const
Definition RuleSummary.h:46
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)
Definition RuleSummary.h:96
const RetentionPeriod & GetRetentionPeriod() const
Definition RuleSummary.h:71
RuleSummary & WithDescription(DescriptionT &&value)
Definition RuleSummary.h:63
AWS_RECYCLEBIN_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLockState(LockState value)
Definition RuleSummary.h:95
RuleSummary & WithRetentionPeriod(RetentionPeriodT &&value)
Definition RuleSummary.h:76
RuleSummary & WithRuleArn(RuleArnT &&value)
AWS_RECYCLEBIN_API RuleSummary()=default
void SetIdentifier(IdentifierT &&value)
Definition RuleSummary.h:49
RuleSummary & WithIdentifier(IdentifierT &&value)
Definition RuleSummary.h:51
void SetDescription(DescriptionT &&value)
Definition RuleSummary.h:61
void SetRetentionPeriod(RetentionPeriodT &&value)
Definition RuleSummary.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue