AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
LightsailDistributionSubdomain.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/LightsailDistributionSubdomainStateEnum.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
31 public:
32 AWS_LIGHTSAIL_API LightsailDistributionSubdomain() = default;
35 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
66 inline LightsailDistributionSubdomainStateEnum GetState() const { return m_state; }
67 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
69 m_stateHasBeenSet = true;
70 m_state = value;
71 }
77
79
83 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
84 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
85 template <typename ErrorCodeT = Aws::String>
86 void SetErrorCode(ErrorCodeT&& value) {
87 m_errorCodeHasBeenSet = true;
88 m_errorCode = std::forward<ErrorCodeT>(value);
89 }
90 template <typename ErrorCodeT = Aws::String>
92 SetErrorCode(std::forward<ErrorCodeT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
103 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
104 template <typename ErrorDetailsT = Aws::String>
105 void SetErrorDetails(ErrorDetailsT&& value) {
106 m_errorDetailsHasBeenSet = true;
107 m_errorDetails = std::forward<ErrorDetailsT>(value);
108 }
109 template <typename ErrorDetailsT = Aws::String>
111 SetErrorDetails(std::forward<ErrorDetailsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_name;
117
119
120 Aws::String m_errorCode;
121
122 Aws::String m_errorDetails;
123 bool m_nameHasBeenSet = false;
124 bool m_stateHasBeenSet = false;
125 bool m_errorCodeHasBeenSet = false;
126 bool m_errorDetailsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Lightsail
131} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
LightsailDistributionSubdomain & WithName(NameT &&value)
AWS_LIGHTSAIL_API LightsailDistributionSubdomain(Aws::Utils::Json::JsonView jsonValue)
LightsailDistributionSubdomain & WithErrorCode(ErrorCodeT &&value)
LightsailDistributionSubdomain & WithState(LightsailDistributionSubdomainStateEnum value)
void SetState(LightsailDistributionSubdomainStateEnum value)
LightsailDistributionSubdomain & WithErrorDetails(ErrorDetailsT &&value)
AWS_LIGHTSAIL_API LightsailDistributionSubdomain()=default
AWS_LIGHTSAIL_API LightsailDistributionSubdomain & operator=(Aws::Utils::Json::JsonView jsonValue)
LightsailDistributionSubdomainStateEnum GetState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue