AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
SubdomainAttachableResource.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.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
30 public:
31 AWS_LIGHTSAIL_API SubdomainAttachableResource() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetAttachedAt() const { return m_attachedAt; }
77 inline bool AttachedAtHasBeenSet() const { return m_attachedAtHasBeenSet; }
78 template <typename AttachedAtT = Aws::Utils::DateTime>
79 void SetAttachedAt(AttachedAtT&& value) {
80 m_attachedAtHasBeenSet = true;
81 m_attachedAt = std::forward<AttachedAtT>(value);
82 }
83 template <typename AttachedAtT = Aws::Utils::DateTime>
85 SetAttachedAt(std::forward<AttachedAtT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_arn;
91
92 Aws::String m_name;
93
94 Aws::Utils::DateTime m_attachedAt{};
95 bool m_arnHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97 bool m_attachedAtHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Lightsail
102} // namespace Aws
AWS_LIGHTSAIL_API SubdomainAttachableResource & operator=(Aws::Utils::Json::JsonView jsonValue)
SubdomainAttachableResource & WithName(NameT &&value)
AWS_LIGHTSAIL_API SubdomainAttachableResource()=default
AWS_LIGHTSAIL_API SubdomainAttachableResource(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
SubdomainAttachableResource & WithAttachedAt(AttachedAtT &&value)
SubdomainAttachableResource & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue