AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateApplianceResult.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace BackupExternal {
24namespace Model {
26 public:
27 AWS_BACKUPEXTERNAL_API CreateApplianceResult() = default;
30
32
35 inline const Aws::String& GetApplianceArn() const { return m_applianceArn; }
36 template <typename ApplianceArnT = Aws::String>
37 void SetApplianceArn(ApplianceArnT&& value) {
38 m_applianceArnHasBeenSet = true;
39 m_applianceArn = std::forward<ApplianceArnT>(value);
40 }
41 template <typename ApplianceArnT = Aws::String>
42 CreateApplianceResult& WithApplianceArn(ApplianceArnT&& value) {
43 SetApplianceArn(std::forward<ApplianceArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
53 template <typename CreatedAtT = Aws::Utils::DateTime>
54 void SetCreatedAt(CreatedAtT&& value) {
55 m_createdAtHasBeenSet = true;
56 m_createdAt = std::forward<CreatedAtT>(value);
57 }
58 template <typename CreatedAtT = Aws::Utils::DateTime>
59 CreateApplianceResult& WithCreatedAt(CreatedAtT&& value) {
60 SetCreatedAt(std::forward<CreatedAtT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetImage() const { return m_image; }
72 template <typename ImageT = Aws::String>
73 void SetImage(ImageT&& value) {
74 m_imageHasBeenSet = true;
75 m_image = std::forward<ImageT>(value);
76 }
77 template <typename ImageT = Aws::String>
79 SetImage(std::forward<ImageT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetAwsOvaImageRootCertificateDownloadUrl() const { return m_awsOvaImageRootCertificateDownloadUrl; }
90 template <typename AwsOvaImageRootCertificateDownloadUrlT = Aws::String>
91 void SetAwsOvaImageRootCertificateDownloadUrl(AwsOvaImageRootCertificateDownloadUrlT&& value) {
92 m_awsOvaImageRootCertificateDownloadUrlHasBeenSet = true;
93 m_awsOvaImageRootCertificateDownloadUrl = std::forward<AwsOvaImageRootCertificateDownloadUrlT>(value);
94 }
95 template <typename AwsOvaImageRootCertificateDownloadUrlT = Aws::String>
96 CreateApplianceResult& WithAwsOvaImageRootCertificateDownloadUrl(AwsOvaImageRootCertificateDownloadUrlT&& value) {
97 SetAwsOvaImageRootCertificateDownloadUrl(std::forward<AwsOvaImageRootCertificateDownloadUrlT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetActivationToken() const { return m_activationToken; }
107 template <typename ActivationTokenT = Aws::String>
108 void SetActivationToken(ActivationTokenT&& value) {
109 m_activationTokenHasBeenSet = true;
110 m_activationToken = std::forward<ActivationTokenT>(value);
111 }
112 template <typename ActivationTokenT = Aws::String>
113 CreateApplianceResult& WithActivationToken(ActivationTokenT&& value) {
114 SetActivationToken(std::forward<ActivationTokenT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetActivationTokenExpiresAt() const { return m_activationTokenExpiresAt; }
124 template <typename ActivationTokenExpiresAtT = Aws::Utils::DateTime>
125 void SetActivationTokenExpiresAt(ActivationTokenExpiresAtT&& value) {
126 m_activationTokenExpiresAtHasBeenSet = true;
127 m_activationTokenExpiresAt = std::forward<ActivationTokenExpiresAtT>(value);
128 }
129 template <typename ActivationTokenExpiresAtT = Aws::Utils::DateTime>
130 CreateApplianceResult& WithActivationTokenExpiresAt(ActivationTokenExpiresAtT&& value) {
131 SetActivationTokenExpiresAt(std::forward<ActivationTokenExpiresAtT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
151
152 private:
153 Aws::String m_applianceArn;
154
155 Aws::Utils::DateTime m_createdAt{};
156
157 Aws::String m_image;
158
159 Aws::String m_awsOvaImageRootCertificateDownloadUrl;
160
161 Aws::String m_activationToken;
162
163 Aws::Utils::DateTime m_activationTokenExpiresAt{};
164
165 Aws::String m_requestId;
166 Aws::Http::HttpResponseCode m_HttpResponseCode;
167 bool m_applianceArnHasBeenSet = false;
168 bool m_createdAtHasBeenSet = false;
169 bool m_imageHasBeenSet = false;
170 bool m_awsOvaImageRootCertificateDownloadUrlHasBeenSet = false;
171 bool m_activationTokenHasBeenSet = false;
172 bool m_activationTokenExpiresAtHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace BackupExternal
178} // namespace Aws
CreateApplianceResult & WithActivationTokenExpiresAt(ActivationTokenExpiresAtT &&value)
AWS_BACKUPEXTERNAL_API CreateApplianceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetActivationTokenExpiresAt(ActivationTokenExpiresAtT &&value)
const Aws::Utils::DateTime & GetActivationTokenExpiresAt() const
CreateApplianceResult & WithActivationToken(ActivationTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetAwsOvaImageRootCertificateDownloadUrl(AwsOvaImageRootCertificateDownloadUrlT &&value)
CreateApplianceResult & WithAwsOvaImageRootCertificateDownloadUrl(AwsOvaImageRootCertificateDownloadUrlT &&value)
AWS_BACKUPEXTERNAL_API CreateApplianceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApplianceResult & WithRequestId(RequestIdT &&value)
CreateApplianceResult & WithImage(ImageT &&value)
AWS_BACKUPEXTERNAL_API CreateApplianceResult()=default
const Aws::String & GetAwsOvaImageRootCertificateDownloadUrl() const
CreateApplianceResult & WithCreatedAt(CreatedAtT &&value)
CreateApplianceResult & WithApplianceArn(ApplianceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue