AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
49 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
50 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
51 inline RuleSummary& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
52 inline RuleSummary& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
53 inline RuleSummary& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline RuleSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline RuleSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline RuleSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
75 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
76 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
77 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
78 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
79 inline RuleSummary& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
80 inline RuleSummary& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
82
84
97 inline const LockState& GetLockState() const{ return m_lockState; }
98 inline bool LockStateHasBeenSet() const { return m_lockStateHasBeenSet; }
99 inline void SetLockState(const LockState& value) { m_lockStateHasBeenSet = true; m_lockState = value; }
100 inline void SetLockState(LockState&& value) { m_lockStateHasBeenSet = true; m_lockState = std::move(value); }
101 inline RuleSummary& WithLockState(const LockState& value) { SetLockState(value); return *this;}
102 inline RuleSummary& WithLockState(LockState&& value) { SetLockState(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetRuleArn() const{ return m_ruleArn; }
110 inline bool RuleArnHasBeenSet() const { return m_ruleArnHasBeenSet; }
111 inline void SetRuleArn(const Aws::String& value) { m_ruleArnHasBeenSet = true; m_ruleArn = value; }
112 inline void SetRuleArn(Aws::String&& value) { m_ruleArnHasBeenSet = true; m_ruleArn = std::move(value); }
113 inline void SetRuleArn(const char* value) { m_ruleArnHasBeenSet = true; m_ruleArn.assign(value); }
114 inline RuleSummary& WithRuleArn(const Aws::String& value) { SetRuleArn(value); return *this;}
115 inline RuleSummary& WithRuleArn(Aws::String&& value) { SetRuleArn(std::move(value)); return *this;}
116 inline RuleSummary& WithRuleArn(const char* value) { SetRuleArn(value); return *this;}
118 private:
119
120 Aws::String m_identifier;
121 bool m_identifierHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 RetentionPeriod m_retentionPeriod;
127 bool m_retentionPeriodHasBeenSet = false;
128
129 LockState m_lockState;
130 bool m_lockStateHasBeenSet = false;
131
132 Aws::String m_ruleArn;
133 bool m_ruleArnHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace RecycleBin
138} // namespace Aws
RuleSummary & WithIdentifier(Aws::String &&value)
Definition RuleSummary.h:52
AWS_RECYCLEBIN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRuleArn() const
RuleSummary & WithRuleArn(const Aws::String &value)
RuleSummary & WithIdentifier(const Aws::String &value)
Definition RuleSummary.h:51
const Aws::String & GetIdentifier() const
Definition RuleSummary.h:46
void SetDescription(const char *value)
Definition RuleSummary.h:64
const Aws::String & GetDescription() const
Definition RuleSummary.h:60
RuleSummary & WithRetentionPeriod(const RetentionPeriod &value)
Definition RuleSummary.h:79
AWS_RECYCLEBIN_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionPeriod(const RetentionPeriod &value)
Definition RuleSummary.h:77
const RetentionPeriod & GetRetentionPeriod() const
Definition RuleSummary.h:75
void SetRetentionPeriod(RetentionPeriod &&value)
Definition RuleSummary.h:78
RuleSummary & WithRuleArn(Aws::String &&value)
AWS_RECYCLEBIN_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleSummary & WithRetentionPeriod(RetentionPeriod &&value)
Definition RuleSummary.h:80
RuleSummary & WithDescription(Aws::String &&value)
Definition RuleSummary.h:66
void SetLockState(const LockState &value)
Definition RuleSummary.h:99
void SetRuleArn(Aws::String &&value)
void SetIdentifier(const char *value)
Definition RuleSummary.h:50
RuleSummary & WithDescription(const char *value)
Definition RuleSummary.h:67
RuleSummary & WithIdentifier(const char *value)
Definition RuleSummary.h:53
void SetIdentifier(Aws::String &&value)
Definition RuleSummary.h:49
void SetDescription(const Aws::String &value)
Definition RuleSummary.h:62
void SetLockState(LockState &&value)
const LockState & GetLockState() const
Definition RuleSummary.h:97
void SetIdentifier(const Aws::String &value)
Definition RuleSummary.h:48
RuleSummary & WithLockState(LockState &&value)
AWS_RECYCLEBIN_API RuleSummary()
void SetRuleArn(const char *value)
RuleSummary & WithDescription(const Aws::String &value)
Definition RuleSummary.h:65
RuleSummary & WithRuleArn(const char *value)
void SetRuleArn(const Aws::String &value)
RuleSummary & WithLockState(const LockState &value)
void SetDescription(Aws::String &&value)
Definition RuleSummary.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue