AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicateKeyResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/model/KeyMetadata.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/kms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace KMS
27{
28namespace Model
29{
31 {
32 public:
33 AWS_KMS_API ReplicateKeyResult();
36
37
39
48 inline const KeyMetadata& GetReplicaKeyMetadata() const{ return m_replicaKeyMetadata; }
49 inline void SetReplicaKeyMetadata(const KeyMetadata& value) { m_replicaKeyMetadata = value; }
50 inline void SetReplicaKeyMetadata(KeyMetadata&& value) { m_replicaKeyMetadata = std::move(value); }
51 inline ReplicateKeyResult& WithReplicaKeyMetadata(const KeyMetadata& value) { SetReplicaKeyMetadata(value); return *this;}
52 inline ReplicateKeyResult& WithReplicaKeyMetadata(KeyMetadata&& value) { SetReplicaKeyMetadata(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetReplicaPolicy() const{ return m_replicaPolicy; }
61 inline void SetReplicaPolicy(const Aws::String& value) { m_replicaPolicy = value; }
62 inline void SetReplicaPolicy(Aws::String&& value) { m_replicaPolicy = std::move(value); }
63 inline void SetReplicaPolicy(const char* value) { m_replicaPolicy.assign(value); }
64 inline ReplicateKeyResult& WithReplicaPolicy(const Aws::String& value) { SetReplicaPolicy(value); return *this;}
65 inline ReplicateKeyResult& WithReplicaPolicy(Aws::String&& value) { SetReplicaPolicy(std::move(value)); return *this;}
66 inline ReplicateKeyResult& WithReplicaPolicy(const char* value) { SetReplicaPolicy(value); return *this;}
68
70
74 inline const Aws::Vector<Tag>& GetReplicaTags() const{ return m_replicaTags; }
75 inline void SetReplicaTags(const Aws::Vector<Tag>& value) { m_replicaTags = value; }
76 inline void SetReplicaTags(Aws::Vector<Tag>&& value) { m_replicaTags = std::move(value); }
77 inline ReplicateKeyResult& WithReplicaTags(const Aws::Vector<Tag>& value) { SetReplicaTags(value); return *this;}
78 inline ReplicateKeyResult& WithReplicaTags(Aws::Vector<Tag>&& value) { SetReplicaTags(std::move(value)); return *this;}
79 inline ReplicateKeyResult& AddReplicaTags(const Tag& value) { m_replicaTags.push_back(value); return *this; }
80 inline ReplicateKeyResult& AddReplicaTags(Tag&& value) { m_replicaTags.push_back(std::move(value)); return *this; }
82
84
85 inline const Aws::String& GetRequestId() const{ return m_requestId; }
86 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
87 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
88 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
89 inline ReplicateKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
90 inline ReplicateKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
91 inline ReplicateKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
93 private:
94
95 KeyMetadata m_replicaKeyMetadata;
96
97 Aws::String m_replicaPolicy;
98
99 Aws::Vector<Tag> m_replicaTags;
100
101 Aws::String m_requestId;
102 };
103
104} // namespace Model
105} // namespace KMS
106} // namespace Aws
AWS_KMS_API ReplicateKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetReplicaTags(Aws::Vector< Tag > &&value)
const Aws::String & GetReplicaPolicy() const
ReplicateKeyResult & WithRequestId(const Aws::String &value)
ReplicateKeyResult & AddReplicaTags(Tag &&value)
ReplicateKeyResult & WithRequestId(const char *value)
ReplicateKeyResult & WithReplicaTags(Aws::Vector< Tag > &&value)
const KeyMetadata & GetReplicaKeyMetadata() const
void SetReplicaTags(const Aws::Vector< Tag > &value)
void SetRequestId(const Aws::String &value)
void SetReplicaKeyMetadata(KeyMetadata &&value)
ReplicateKeyResult & AddReplicaTags(const Tag &value)
void SetReplicaPolicy(const char *value)
ReplicateKeyResult & WithReplicaKeyMetadata(const KeyMetadata &value)
void SetRequestId(Aws::String &&value)
ReplicateKeyResult & WithReplicaTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetReplicaTags() const
ReplicateKeyResult & WithRequestId(Aws::String &&value)
AWS_KMS_API ReplicateKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ReplicateKeyResult & WithReplicaPolicy(Aws::String &&value)
ReplicateKeyResult & WithReplicaKeyMetadata(KeyMetadata &&value)
ReplicateKeyResult & WithReplicaPolicy(const Aws::String &value)
void SetReplicaKeyMetadata(const KeyMetadata &value)
void SetReplicaPolicy(Aws::String &&value)
ReplicateKeyResult & WithReplicaPolicy(const char *value)
const Aws::String & GetRequestId() const
void SetReplicaPolicy(const Aws::String &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