AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CheckSubdomainAvailabilityResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/Lightsail_EXPORTS.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 Lightsail {
24namespace Model {
26 public:
27 AWS_LIGHTSAIL_API CheckSubdomainAvailabilityResult() = default;
30
32
36 inline bool GetAvailable() const { return m_available; }
37 inline void SetAvailable(bool value) {
38 m_availableHasBeenSet = true;
39 m_available = value;
40 }
42 SetAvailable(value);
43 return *this;
44 }
46
48
53 inline const Aws::Utils::DateTime& GetReservationExpiresAt() const { return m_reservationExpiresAt; }
54 template <typename ReservationExpiresAtT = Aws::Utils::DateTime>
55 void SetReservationExpiresAt(ReservationExpiresAtT&& value) {
56 m_reservationExpiresAtHasBeenSet = true;
57 m_reservationExpiresAt = std::forward<ReservationExpiresAtT>(value);
58 }
59 template <typename ReservationExpiresAtT = Aws::Utils::DateTime>
61 SetReservationExpiresAt(std::forward<ReservationExpiresAtT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetSubdomainName() const { return m_subdomainName; }
71 template <typename SubdomainNameT = Aws::String>
72 void SetSubdomainName(SubdomainNameT&& value) {
73 m_subdomainNameHasBeenSet = true;
74 m_subdomainName = std::forward<SubdomainNameT>(value);
75 }
76 template <typename SubdomainNameT = Aws::String>
78 SetSubdomainName(std::forward<SubdomainNameT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 bool m_available{false};
101
102 Aws::Utils::DateTime m_reservationExpiresAt{};
103
104 Aws::String m_subdomainName;
105
106 Aws::String m_requestId;
107 Aws::Http::HttpResponseCode m_HttpResponseCode;
108 bool m_availableHasBeenSet = false;
109 bool m_reservationExpiresAtHasBeenSet = false;
110 bool m_subdomainNameHasBeenSet = false;
111 bool m_requestIdHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Lightsail
116} // namespace Aws
AWS_LIGHTSAIL_API CheckSubdomainAvailabilityResult()=default
CheckSubdomainAvailabilityResult & WithReservationExpiresAt(ReservationExpiresAtT &&value)
CheckSubdomainAvailabilityResult & WithRequestId(RequestIdT &&value)
CheckSubdomainAvailabilityResult & WithSubdomainName(SubdomainNameT &&value)
AWS_LIGHTSAIL_API CheckSubdomainAvailabilityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API CheckSubdomainAvailabilityResult(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