AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SetupHistoryResource.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LIGHTSAIL_API SetupHistoryResource() = default;
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 SetupHistoryResource& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 SetupHistoryResource& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
73 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
74 template<typename CreatedAtT = Aws::Utils::DateTime>
75 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
76 template<typename CreatedAtT = Aws::Utils::DateTime>
77 SetupHistoryResource& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
79
81
82 inline const ResourceLocation& GetLocation() const { return m_location; }
83 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
84 template<typename LocationT = ResourceLocation>
85 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
86 template<typename LocationT = ResourceLocation>
87 SetupHistoryResource& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
89
91
94 inline ResourceType GetResourceType() const { return m_resourceType; }
95 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
96 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
97 inline SetupHistoryResource& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
99 private:
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_arn;
105 bool m_arnHasBeenSet = false;
106
107 Aws::Utils::DateTime m_createdAt{};
108 bool m_createdAtHasBeenSet = false;
109
110 ResourceLocation m_location;
111 bool m_locationHasBeenSet = false;
112
113 ResourceType m_resourceType{ResourceType::NOT_SET};
114 bool m_resourceTypeHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Lightsail
119} // 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