AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateSubdomainResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/Operation.h>
11#include <aws/lightsail/model/Subdomain.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
27 public:
28 AWS_LIGHTSAIL_API CreateSubdomainResult() = default;
31
33
36 inline const Subdomain& GetSubdomain() const { return m_subdomain; }
37 template <typename SubdomainT = Subdomain>
38 void SetSubdomain(SubdomainT&& value) {
39 m_subdomainHasBeenSet = true;
40 m_subdomain = std::forward<SubdomainT>(value);
41 }
42 template <typename SubdomainT = Subdomain>
43 CreateSubdomainResult& WithSubdomain(SubdomainT&& value) {
44 SetSubdomain(std::forward<SubdomainT>(value));
45 return *this;
46 }
48
50
55 inline const Operation& GetOperation() const { return m_operation; }
56 template <typename OperationT = Operation>
57 void SetOperation(OperationT&& value) {
58 m_operationHasBeenSet = true;
59 m_operation = std::forward<OperationT>(value);
60 }
61 template <typename OperationT = Operation>
62 CreateSubdomainResult& WithOperation(OperationT&& value) {
63 SetOperation(std::forward<OperationT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 CreateSubdomainResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 Subdomain m_subdomain;
86
87 Operation m_operation;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_subdomainHasBeenSet = false;
92 bool m_operationHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Lightsail
98} // namespace Aws
CreateSubdomainResult & WithRequestId(RequestIdT &&value)
CreateSubdomainResult & WithSubdomain(SubdomainT &&value)
AWS_LIGHTSAIL_API CreateSubdomainResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_LIGHTSAIL_API CreateSubdomainResult()=default
CreateSubdomainResult & WithOperation(OperationT &&value)
AWS_LIGHTSAIL_API CreateSubdomainResult(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