AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetVaultLockResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Glacier {
23namespace Model {
31 public:
32 AWS_GLACIER_API GetVaultLockResult() = default;
35
37
41 inline const Aws::String& GetPolicy() const { return m_policy; }
42 template <typename PolicyT = Aws::String>
43 void SetPolicy(PolicyT&& value) {
44 m_policyHasBeenSet = true;
45 m_policy = std::forward<PolicyT>(value);
46 }
47 template <typename PolicyT = Aws::String>
48 GetVaultLockResult& WithPolicy(PolicyT&& value) {
49 SetPolicy(std::forward<PolicyT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetState() const { return m_state; }
60 template <typename StateT = Aws::String>
61 void SetState(StateT&& value) {
62 m_stateHasBeenSet = true;
63 m_state = std::forward<StateT>(value);
64 }
65 template <typename StateT = Aws::String>
66 GetVaultLockResult& WithState(StateT&& value) {
67 SetState(std::forward<StateT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetExpirationDate() const { return m_expirationDate; }
78 template <typename ExpirationDateT = Aws::String>
79 void SetExpirationDate(ExpirationDateT&& value) {
80 m_expirationDateHasBeenSet = true;
81 m_expirationDate = std::forward<ExpirationDateT>(value);
82 }
83 template <typename ExpirationDateT = Aws::String>
84 GetVaultLockResult& WithExpirationDate(ExpirationDateT&& value) {
85 SetExpirationDate(std::forward<ExpirationDateT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
96 template <typename CreationDateT = Aws::String>
97 void SetCreationDate(CreationDateT&& value) {
98 m_creationDateHasBeenSet = true;
99 m_creationDate = std::forward<CreationDateT>(value);
100 }
101 template <typename CreationDateT = Aws::String>
102 GetVaultLockResult& WithCreationDate(CreationDateT&& value) {
103 SetCreationDate(std::forward<CreationDateT>(value));
104 return *this;
105 }
107
109
110 inline const Aws::String& GetRequestId() const { return m_requestId; }
111 template <typename RequestIdT = Aws::String>
112 void SetRequestId(RequestIdT&& value) {
113 m_requestIdHasBeenSet = true;
114 m_requestId = std::forward<RequestIdT>(value);
115 }
116 template <typename RequestIdT = Aws::String>
117 GetVaultLockResult& WithRequestId(RequestIdT&& value) {
118 SetRequestId(std::forward<RequestIdT>(value));
119 return *this;
120 }
122 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
123
124 private:
125 Aws::String m_policy;
126
127 Aws::String m_state;
128
129 Aws::String m_expirationDate;
130
131 Aws::String m_creationDate;
132
133 Aws::String m_requestId;
134 Aws::Http::HttpResponseCode m_HttpResponseCode;
135 bool m_policyHasBeenSet = false;
136 bool m_stateHasBeenSet = false;
137 bool m_expirationDateHasBeenSet = false;
138 bool m_creationDateHasBeenSet = false;
139 bool m_requestIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Glacier
144} // namespace Aws
GetVaultLockResult & WithState(StateT &&value)
GetVaultLockResult & WithPolicy(PolicyT &&value)
GetVaultLockResult & WithExpirationDate(ExpirationDateT &&value)
GetVaultLockResult & WithCreationDate(CreationDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetExpirationDate(ExpirationDateT &&value)
const Aws::String & GetCreationDate() const
GetVaultLockResult & WithRequestId(RequestIdT &&value)
AWS_GLACIER_API GetVaultLockResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GLACIER_API GetVaultLockResult()=default
const Aws::String & GetExpirationDate() const
void SetCreationDate(CreationDateT &&value)
AWS_GLACIER_API GetVaultLockResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue