AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CrossRegionCopyRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dlm/model/CrossRegionCopyRetainRule.h>
10#include <aws/dlm/model/CrossRegionCopyDeprecateRule.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 DLM
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_DLM_API CrossRegionCopyRule();
44
45
47
55 inline const Aws::String& GetTargetRegion() const{ return m_targetRegion; }
56 inline bool TargetRegionHasBeenSet() const { return m_targetRegionHasBeenSet; }
57 inline void SetTargetRegion(const Aws::String& value) { m_targetRegionHasBeenSet = true; m_targetRegion = value; }
58 inline void SetTargetRegion(Aws::String&& value) { m_targetRegionHasBeenSet = true; m_targetRegion = std::move(value); }
59 inline void SetTargetRegion(const char* value) { m_targetRegionHasBeenSet = true; m_targetRegion.assign(value); }
60 inline CrossRegionCopyRule& WithTargetRegion(const Aws::String& value) { SetTargetRegion(value); return *this;}
61 inline CrossRegionCopyRule& WithTargetRegion(Aws::String&& value) { SetTargetRegion(std::move(value)); return *this;}
62 inline CrossRegionCopyRule& WithTargetRegion(const char* value) { SetTargetRegion(value); return *this;}
64
66
72 inline const Aws::String& GetTarget() const{ return m_target; }
73 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
74 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
75 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
76 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
77 inline CrossRegionCopyRule& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
78 inline CrossRegionCopyRule& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
79 inline CrossRegionCopyRule& WithTarget(const char* value) { SetTarget(value); return *this;}
81
83
89 inline bool GetEncrypted() const{ return m_encrypted; }
90 inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
91 inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
92 inline CrossRegionCopyRule& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
94
96
101 inline const Aws::String& GetCmkArn() const{ return m_cmkArn; }
102 inline bool CmkArnHasBeenSet() const { return m_cmkArnHasBeenSet; }
103 inline void SetCmkArn(const Aws::String& value) { m_cmkArnHasBeenSet = true; m_cmkArn = value; }
104 inline void SetCmkArn(Aws::String&& value) { m_cmkArnHasBeenSet = true; m_cmkArn = std::move(value); }
105 inline void SetCmkArn(const char* value) { m_cmkArnHasBeenSet = true; m_cmkArn.assign(value); }
106 inline CrossRegionCopyRule& WithCmkArn(const Aws::String& value) { SetCmkArn(value); return *this;}
107 inline CrossRegionCopyRule& WithCmkArn(Aws::String&& value) { SetCmkArn(std::move(value)); return *this;}
108 inline CrossRegionCopyRule& WithCmkArn(const char* value) { SetCmkArn(value); return *this;}
110
112
116 inline bool GetCopyTags() const{ return m_copyTags; }
117 inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; }
118 inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; }
119 inline CrossRegionCopyRule& WithCopyTags(bool value) { SetCopyTags(value); return *this;}
121
123
127 inline const CrossRegionCopyRetainRule& GetRetainRule() const{ return m_retainRule; }
128 inline bool RetainRuleHasBeenSet() const { return m_retainRuleHasBeenSet; }
129 inline void SetRetainRule(const CrossRegionCopyRetainRule& value) { m_retainRuleHasBeenSet = true; m_retainRule = value; }
130 inline void SetRetainRule(CrossRegionCopyRetainRule&& value) { m_retainRuleHasBeenSet = true; m_retainRule = std::move(value); }
131 inline CrossRegionCopyRule& WithRetainRule(const CrossRegionCopyRetainRule& value) { SetRetainRule(value); return *this;}
132 inline CrossRegionCopyRule& WithRetainRule(CrossRegionCopyRetainRule&& value) { SetRetainRule(std::move(value)); return *this;}
134
136
140 inline const CrossRegionCopyDeprecateRule& GetDeprecateRule() const{ return m_deprecateRule; }
141 inline bool DeprecateRuleHasBeenSet() const { return m_deprecateRuleHasBeenSet; }
142 inline void SetDeprecateRule(const CrossRegionCopyDeprecateRule& value) { m_deprecateRuleHasBeenSet = true; m_deprecateRule = value; }
143 inline void SetDeprecateRule(CrossRegionCopyDeprecateRule&& value) { m_deprecateRuleHasBeenSet = true; m_deprecateRule = std::move(value); }
145 inline CrossRegionCopyRule& WithDeprecateRule(CrossRegionCopyDeprecateRule&& value) { SetDeprecateRule(std::move(value)); return *this;}
147 private:
148
149 Aws::String m_targetRegion;
150 bool m_targetRegionHasBeenSet = false;
151
152 Aws::String m_target;
153 bool m_targetHasBeenSet = false;
154
155 bool m_encrypted;
156 bool m_encryptedHasBeenSet = false;
157
158 Aws::String m_cmkArn;
159 bool m_cmkArnHasBeenSet = false;
160
161 bool m_copyTags;
162 bool m_copyTagsHasBeenSet = false;
163
164 CrossRegionCopyRetainRule m_retainRule;
165 bool m_retainRuleHasBeenSet = false;
166
167 CrossRegionCopyDeprecateRule m_deprecateRule;
168 bool m_deprecateRuleHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace DLM
173} // namespace Aws
void SetCmkArn(const Aws::String &value)
void SetTargetRegion(const Aws::String &value)
CrossRegionCopyRule & WithEncrypted(bool value)
void SetTargetRegion(Aws::String &&value)
CrossRegionCopyRule & WithCopyTags(bool value)
CrossRegionCopyRule & WithCmkArn(const Aws::String &value)
CrossRegionCopyRule & WithTargetRegion(const char *value)
CrossRegionCopyRule & WithDeprecateRule(const CrossRegionCopyDeprecateRule &value)
CrossRegionCopyRule & WithCmkArn(Aws::String &&value)
void SetTarget(const Aws::String &value)
AWS_DLM_API CrossRegionCopyRule(Aws::Utils::Json::JsonView jsonValue)
const CrossRegionCopyDeprecateRule & GetDeprecateRule() const
CrossRegionCopyRule & WithTargetRegion(const Aws::String &value)
CrossRegionCopyRule & WithTarget(const Aws::String &value)
CrossRegionCopyRule & WithRetainRule(CrossRegionCopyRetainRule &&value)
void SetDeprecateRule(CrossRegionCopyDeprecateRule &&value)
const CrossRegionCopyRetainRule & GetRetainRule() const
CrossRegionCopyRule & WithTarget(const char *value)
void SetRetainRule(const CrossRegionCopyRetainRule &value)
void SetDeprecateRule(const CrossRegionCopyDeprecateRule &value)
const Aws::String & GetTargetRegion() const
CrossRegionCopyRule & WithTarget(Aws::String &&value)
const Aws::String & GetTarget() const
CrossRegionCopyRule & WithRetainRule(const CrossRegionCopyRetainRule &value)
AWS_DLM_API CrossRegionCopyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
CrossRegionCopyRule & WithDeprecateRule(CrossRegionCopyDeprecateRule &&value)
const Aws::String & GetCmkArn() const
CrossRegionCopyRule & WithCmkArn(const char *value)
void SetRetainRule(CrossRegionCopyRetainRule &&value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
CrossRegionCopyRule & WithTargetRegion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue