AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
KeyspaceSummary.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/keyspaces/model/Rs.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 Keyspaces
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_KEYSPACES_API KeyspaceSummary() = default;
37 AWS_KEYSPACES_API KeyspaceSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetKeyspaceName() const { return m_keyspaceName; }
47 inline bool KeyspaceNameHasBeenSet() const { return m_keyspaceNameHasBeenSet; }
48 template<typename KeyspaceNameT = Aws::String>
49 void SetKeyspaceName(KeyspaceNameT&& value) { m_keyspaceNameHasBeenSet = true; m_keyspaceName = std::forward<KeyspaceNameT>(value); }
50 template<typename KeyspaceNameT = Aws::String>
51 KeyspaceSummary& WithKeyspaceName(KeyspaceNameT&& value) { SetKeyspaceName(std::forward<KeyspaceNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
60 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
61 template<typename ResourceArnT = Aws::String>
62 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
63 template<typename ResourceArnT = Aws::String>
64 KeyspaceSummary& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
66
68
73 inline Rs GetReplicationStrategy() const { return m_replicationStrategy; }
74 inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; }
75 inline void SetReplicationStrategy(Rs value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = value; }
76 inline KeyspaceSummary& WithReplicationStrategy(Rs value) { SetReplicationStrategy(value); return *this;}
78
80
84 inline const Aws::Vector<Aws::String>& GetReplicationRegions() const { return m_replicationRegions; }
85 inline bool ReplicationRegionsHasBeenSet() const { return m_replicationRegionsHasBeenSet; }
86 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
87 void SetReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions = std::forward<ReplicationRegionsT>(value); }
88 template<typename ReplicationRegionsT = Aws::Vector<Aws::String>>
89 KeyspaceSummary& WithReplicationRegions(ReplicationRegionsT&& value) { SetReplicationRegions(std::forward<ReplicationRegionsT>(value)); return *this;}
90 template<typename ReplicationRegionsT = Aws::String>
91 KeyspaceSummary& AddReplicationRegions(ReplicationRegionsT&& value) { m_replicationRegionsHasBeenSet = true; m_replicationRegions.emplace_back(std::forward<ReplicationRegionsT>(value)); return *this; }
93 private:
94
95 Aws::String m_keyspaceName;
96 bool m_keyspaceNameHasBeenSet = false;
97
98 Aws::String m_resourceArn;
99 bool m_resourceArnHasBeenSet = false;
100
101 Rs m_replicationStrategy{Rs::NOT_SET};
102 bool m_replicationStrategyHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_replicationRegions;
105 bool m_replicationRegionsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Keyspaces
110} // namespace Aws
KeyspaceSummary & WithKeyspaceName(KeyspaceNameT &&value)
AWS_KEYSPACES_API KeyspaceSummary()=default
KeyspaceSummary & WithResourceArn(ResourceArnT &&value)
KeyspaceSummary & WithReplicationStrategy(Rs value)
KeyspaceSummary & AddReplicationRegions(ReplicationRegionsT &&value)
const Aws::String & GetResourceArn() const
AWS_KEYSPACES_API KeyspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetReplicationRegions() const
void SetResourceArn(ResourceArnT &&value)
const Aws::String & GetKeyspaceName() const
void SetKeyspaceName(KeyspaceNameT &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API KeyspaceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetReplicationRegions(ReplicationRegionsT &&value)
KeyspaceSummary & WithReplicationRegions(ReplicationRegionsT &&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