AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationDetails.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MACIE2_API ReplicationDetails();
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetReplicated() const{ return m_replicated; }
49 inline bool ReplicatedHasBeenSet() const { return m_replicatedHasBeenSet; }
50 inline void SetReplicated(bool value) { m_replicatedHasBeenSet = true; m_replicated = value; }
51 inline ReplicationDetails& WithReplicated(bool value) { SetReplicated(value); return *this;}
53
55
62 inline bool GetReplicatedExternally() const{ return m_replicatedExternally; }
63 inline bool ReplicatedExternallyHasBeenSet() const { return m_replicatedExternallyHasBeenSet; }
64 inline void SetReplicatedExternally(bool value) { m_replicatedExternallyHasBeenSet = true; m_replicatedExternally = value; }
65 inline ReplicationDetails& WithReplicatedExternally(bool value) { SetReplicatedExternally(value); return *this;}
67
69
74 inline const Aws::Vector<Aws::String>& GetReplicationAccounts() const{ return m_replicationAccounts; }
75 inline bool ReplicationAccountsHasBeenSet() const { return m_replicationAccountsHasBeenSet; }
76 inline void SetReplicationAccounts(const Aws::Vector<Aws::String>& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts = value; }
77 inline void SetReplicationAccounts(Aws::Vector<Aws::String>&& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts = std::move(value); }
80 inline ReplicationDetails& AddReplicationAccounts(const Aws::String& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(value); return *this; }
81 inline ReplicationDetails& AddReplicationAccounts(Aws::String&& value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(std::move(value)); return *this; }
82 inline ReplicationDetails& AddReplicationAccounts(const char* value) { m_replicationAccountsHasBeenSet = true; m_replicationAccounts.push_back(value); return *this; }
84 private:
85
86 bool m_replicated;
87 bool m_replicatedHasBeenSet = false;
88
89 bool m_replicatedExternally;
90 bool m_replicatedExternallyHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_replicationAccounts;
93 bool m_replicationAccountsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Macie2
98} // namespace Aws
void SetReplicationAccounts(const Aws::Vector< Aws::String > &value)
ReplicationDetails & WithReplicated(bool value)
AWS_MACIE2_API ReplicationDetails(Aws::Utils::Json::JsonView jsonValue)
ReplicationDetails & WithReplicationAccounts(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetReplicationAccounts() const
ReplicationDetails & WithReplicationAccounts(Aws::Vector< Aws::String > &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationDetails & AddReplicationAccounts(const Aws::String &value)
void SetReplicationAccounts(Aws::Vector< Aws::String > &&value)
ReplicationDetails & AddReplicationAccounts(Aws::String &&value)
AWS_MACIE2_API ReplicationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationDetails & WithReplicatedExternally(bool value)
ReplicationDetails & AddReplicationAccounts(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue