AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLedgerResult.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qldb/model/LedgerState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/qldb/model/PermissionsMode.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 QLDB
27{
28namespace Model
29{
31 {
32 public:
33 AWS_QLDB_API CreateLedgerResult();
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline void SetName(const Aws::String& value) { m_name = value; }
44 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
45 inline void SetName(const char* value) { m_name.assign(value); }
46 inline CreateLedgerResult& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline CreateLedgerResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline CreateLedgerResult& WithName(const char* value) { SetName(value); return *this;}
50
52
55 inline const Aws::String& GetArn() const{ return m_arn; }
56 inline void SetArn(const Aws::String& value) { m_arn = value; }
57 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
58 inline void SetArn(const char* value) { m_arn.assign(value); }
59 inline CreateLedgerResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
60 inline CreateLedgerResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
61 inline CreateLedgerResult& WithArn(const char* value) { SetArn(value); return *this;}
63
65
68 inline const LedgerState& GetState() const{ return m_state; }
69 inline void SetState(const LedgerState& value) { m_state = value; }
70 inline void SetState(LedgerState&& value) { m_state = std::move(value); }
71 inline CreateLedgerResult& WithState(const LedgerState& value) { SetState(value); return *this;}
72 inline CreateLedgerResult& WithState(LedgerState&& value) { SetState(std::move(value)); return *this;}
74
76
81 inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
82 inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTime = value; }
83 inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTime = std::move(value); }
85 inline CreateLedgerResult& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
87
89
92 inline const PermissionsMode& GetPermissionsMode() const{ return m_permissionsMode; }
93 inline void SetPermissionsMode(const PermissionsMode& value) { m_permissionsMode = value; }
94 inline void SetPermissionsMode(PermissionsMode&& value) { m_permissionsMode = std::move(value); }
95 inline CreateLedgerResult& WithPermissionsMode(const PermissionsMode& value) { SetPermissionsMode(value); return *this;}
96 inline CreateLedgerResult& WithPermissionsMode(PermissionsMode&& value) { SetPermissionsMode(std::move(value)); return *this;}
98
100
108 inline bool GetDeletionProtection() const{ return m_deletionProtection; }
109 inline void SetDeletionProtection(bool value) { m_deletionProtection = value; }
110 inline CreateLedgerResult& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;}
112
114
119 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
120 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArn = value; }
121 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArn = std::move(value); }
122 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); }
123 inline CreateLedgerResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
124 inline CreateLedgerResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
125 inline CreateLedgerResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const{ return m_requestId; }
131 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
132 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
133 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
134 inline CreateLedgerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
135 inline CreateLedgerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
136 inline CreateLedgerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
138 private:
139
140 Aws::String m_name;
141
142 Aws::String m_arn;
143
144 LedgerState m_state;
145
146 Aws::Utils::DateTime m_creationDateTime;
147
148 PermissionsMode m_permissionsMode;
149
150 bool m_deletionProtection;
151
152 Aws::String m_kmsKeyArn;
153
154 Aws::String m_requestId;
155 };
156
157} // namespace Model
158} // namespace QLDB
159} // namespace Aws
AWS_QLDB_API CreateLedgerResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const PermissionsMode & GetPermissionsMode() const
void SetPermissionsMode(PermissionsMode &&value)
const LedgerState & GetState() const
CreateLedgerResult & WithRequestId(const char *value)
void SetArn(const Aws::String &value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetArn() const
CreateLedgerResult & WithName(Aws::String &&value)
CreateLedgerResult & WithRequestId(const Aws::String &value)
CreateLedgerResult & WithName(const Aws::String &value)
CreateLedgerResult & WithArn(const Aws::String &value)
CreateLedgerResult & WithPermissionsMode(PermissionsMode &&value)
CreateLedgerResult & WithCreationDateTime(const Aws::Utils::DateTime &value)
CreateLedgerResult & WithArn(const char *value)
CreateLedgerResult & WithState(LedgerState &&value)
CreateLedgerResult & WithPermissionsMode(const PermissionsMode &value)
CreateLedgerResult & WithCreationDateTime(Aws::Utils::DateTime &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetKmsKeyArn() const
void SetPermissionsMode(const PermissionsMode &value)
AWS_QLDB_API CreateLedgerResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLedgerResult & WithKmsKeyArn(const Aws::String &value)
void SetCreationDateTime(Aws::Utils::DateTime &&value)
void SetName(const Aws::String &value)
void SetCreationDateTime(const Aws::Utils::DateTime &value)
CreateLedgerResult & WithName(const char *value)
CreateLedgerResult & WithRequestId(Aws::String &&value)
CreateLedgerResult & WithState(const LedgerState &value)
void SetState(const LedgerState &value)
CreateLedgerResult & WithKmsKeyArn(const char *value)
void SetKmsKeyArn(const Aws::String &value)
CreateLedgerResult & WithKmsKeyArn(Aws::String &&value)
CreateLedgerResult & WithDeletionProtection(bool value)
CreateLedgerResult & WithArn(Aws::String &&value)
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreationDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue