AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
SetupHistoryResource.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#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
32 public:
33 AWS_LIGHTSAIL_API SetupHistoryResource() = default;
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
79 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
80 template <typename CreatedAtT = Aws::Utils::DateTime>
81 void SetCreatedAt(CreatedAtT&& value) {
82 m_createdAtHasBeenSet = true;
83 m_createdAt = std::forward<CreatedAtT>(value);
84 }
85 template <typename CreatedAtT = Aws::Utils::DateTime>
86 SetupHistoryResource& WithCreatedAt(CreatedAtT&& value) {
87 SetCreatedAt(std::forward<CreatedAtT>(value));
88 return *this;
89 }
91
93
94 inline const ResourceLocation& GetLocation() const { return m_location; }
95 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
96 template <typename LocationT = ResourceLocation>
97 void SetLocation(LocationT&& value) {
98 m_locationHasBeenSet = true;
99 m_location = std::forward<LocationT>(value);
100 }
101 template <typename LocationT = ResourceLocation>
102 SetupHistoryResource& WithLocation(LocationT&& value) {
103 SetLocation(std::forward<LocationT>(value));
104 return *this;
105 }
107
109
112 inline ResourceType GetResourceType() const { return m_resourceType; }
113 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
114 inline void SetResourceType(ResourceType value) {
115 m_resourceTypeHasBeenSet = true;
116 m_resourceType = value;
117 }
119 SetResourceType(value);
120 return *this;
121 }
123 private:
124 Aws::String m_name;
125
126 Aws::String m_arn;
127
128 Aws::Utils::DateTime m_createdAt{};
129
130 ResourceLocation m_location;
131
132 ResourceType m_resourceType{ResourceType::NOT_SET};
133 bool m_nameHasBeenSet = false;
134 bool m_arnHasBeenSet = false;
135 bool m_createdAtHasBeenSet = false;
136 bool m_locationHasBeenSet = false;
137 bool m_resourceTypeHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Lightsail
142} // namespace Aws
SetupHistoryResource & WithLocation(LocationT &&value)
AWS_LIGHTSAIL_API SetupHistoryResource(Aws::Utils::Json::JsonView jsonValue)
const ResourceLocation & GetLocation() const
SetupHistoryResource & WithCreatedAt(CreatedAtT &&value)
SetupHistoryResource & WithName(NameT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API SetupHistoryResource()=default
SetupHistoryResource & WithArn(ArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SetupHistoryResource & WithResourceType(ResourceType value)
AWS_LIGHTSAIL_API SetupHistoryResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue