AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShareRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dlm/model/RetentionIntervalUnitValues.h>
10#include <aws/core/utils/memory/stl/AWSString.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
35 {
36 public:
37 AWS_DLM_API ShareRule();
38 AWS_DLM_API ShareRule(Aws::Utils::Json::JsonView jsonValue);
41
42
44
48 inline const Aws::Vector<Aws::String>& GetTargetAccounts() const{ return m_targetAccounts; }
49 inline bool TargetAccountsHasBeenSet() const { return m_targetAccountsHasBeenSet; }
50 inline void SetTargetAccounts(const Aws::Vector<Aws::String>& value) { m_targetAccountsHasBeenSet = true; m_targetAccounts = value; }
51 inline void SetTargetAccounts(Aws::Vector<Aws::String>&& value) { m_targetAccountsHasBeenSet = true; m_targetAccounts = std::move(value); }
52 inline ShareRule& WithTargetAccounts(const Aws::Vector<Aws::String>& value) { SetTargetAccounts(value); return *this;}
53 inline ShareRule& WithTargetAccounts(Aws::Vector<Aws::String>&& value) { SetTargetAccounts(std::move(value)); return *this;}
54 inline ShareRule& AddTargetAccounts(const Aws::String& value) { m_targetAccountsHasBeenSet = true; m_targetAccounts.push_back(value); return *this; }
55 inline ShareRule& AddTargetAccounts(Aws::String&& value) { m_targetAccountsHasBeenSet = true; m_targetAccounts.push_back(std::move(value)); return *this; }
56 inline ShareRule& AddTargetAccounts(const char* value) { m_targetAccountsHasBeenSet = true; m_targetAccounts.push_back(value); return *this; }
58
60
64 inline int GetUnshareInterval() const{ return m_unshareInterval; }
65 inline bool UnshareIntervalHasBeenSet() const { return m_unshareIntervalHasBeenSet; }
66 inline void SetUnshareInterval(int value) { m_unshareIntervalHasBeenSet = true; m_unshareInterval = value; }
67 inline ShareRule& WithUnshareInterval(int value) { SetUnshareInterval(value); return *this;}
69
71
74 inline const RetentionIntervalUnitValues& GetUnshareIntervalUnit() const{ return m_unshareIntervalUnit; }
75 inline bool UnshareIntervalUnitHasBeenSet() const { return m_unshareIntervalUnitHasBeenSet; }
76 inline void SetUnshareIntervalUnit(const RetentionIntervalUnitValues& value) { m_unshareIntervalUnitHasBeenSet = true; m_unshareIntervalUnit = value; }
77 inline void SetUnshareIntervalUnit(RetentionIntervalUnitValues&& value) { m_unshareIntervalUnitHasBeenSet = true; m_unshareIntervalUnit = std::move(value); }
79 inline ShareRule& WithUnshareIntervalUnit(RetentionIntervalUnitValues&& value) { SetUnshareIntervalUnit(std::move(value)); return *this;}
81 private:
82
83 Aws::Vector<Aws::String> m_targetAccounts;
84 bool m_targetAccountsHasBeenSet = false;
85
86 int m_unshareInterval;
87 bool m_unshareIntervalHasBeenSet = false;
88
89 RetentionIntervalUnitValues m_unshareIntervalUnit;
90 bool m_unshareIntervalUnitHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace DLM
95} // namespace Aws
const RetentionIntervalUnitValues & GetUnshareIntervalUnit() const
Definition ShareRule.h:74
bool TargetAccountsHasBeenSet() const
Definition ShareRule.h:49
void SetUnshareInterval(int value)
Definition ShareRule.h:66
AWS_DLM_API ShareRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetAccounts(const Aws::Vector< Aws::String > &value)
Definition ShareRule.h:50
ShareRule & WithUnshareIntervalUnit(const RetentionIntervalUnitValues &value)
Definition ShareRule.h:78
ShareRule & WithUnshareIntervalUnit(RetentionIntervalUnitValues &&value)
Definition ShareRule.h:79
ShareRule & WithTargetAccounts(Aws::Vector< Aws::String > &&value)
Definition ShareRule.h:53
void SetTargetAccounts(Aws::Vector< Aws::String > &&value)
Definition ShareRule.h:51
const Aws::Vector< Aws::String > & GetTargetAccounts() const
Definition ShareRule.h:48
bool UnshareIntervalHasBeenSet() const
Definition ShareRule.h:65
void SetUnshareIntervalUnit(RetentionIntervalUnitValues &&value)
Definition ShareRule.h:77
ShareRule & WithTargetAccounts(const Aws::Vector< Aws::String > &value)
Definition ShareRule.h:52
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUnshareIntervalUnit(const RetentionIntervalUnitValues &value)
Definition ShareRule.h:76
AWS_DLM_API ShareRule(Aws::Utils::Json::JsonView jsonValue)
ShareRule & AddTargetAccounts(const Aws::String &value)
Definition ShareRule.h:54
bool UnshareIntervalUnitHasBeenSet() const
Definition ShareRule.h:75
int GetUnshareInterval() const
Definition ShareRule.h:64
ShareRule & WithUnshareInterval(int value)
Definition ShareRule.h:67
ShareRule & AddTargetAccounts(const char *value)
Definition ShareRule.h:56
ShareRule & AddTargetAccounts(Aws::String &&value)
Definition ShareRule.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue