AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline SetupHistoryResource& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline SetupHistoryResource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline SetupHistoryResource& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline SetupHistoryResource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline SetupHistoryResource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline SetupHistoryResource& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
79 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
80 inline SetupHistoryResource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
81 inline SetupHistoryResource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
83
85
86 inline const ResourceLocation& GetLocation() const{ return m_location; }
87 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
88 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
89 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
90 inline SetupHistoryResource& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
91 inline SetupHistoryResource& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
93
95
98 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
99 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
100 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
101 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
102 inline SetupHistoryResource& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
103 inline SetupHistoryResource& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_arn;
111 bool m_arnHasBeenSet = false;
112
113 Aws::Utils::DateTime m_createdAt;
114 bool m_createdAtHasBeenSet = false;
115
116 ResourceLocation m_location;
117 bool m_locationHasBeenSet = false;
118
119 ResourceType m_resourceType;
120 bool m_resourceTypeHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Lightsail
125} // namespace Aws
void SetResourceType(const ResourceType &value)
SetupHistoryResource & WithLocation(const ResourceLocation &value)
SetupHistoryResource & WithName(const Aws::String &value)
AWS_LIGHTSAIL_API SetupHistoryResource(Aws::Utils::Json::JsonView jsonValue)
const ResourceLocation & GetLocation() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
SetupHistoryResource & WithArn(const char *value)
SetupHistoryResource & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
SetupHistoryResource & WithResourceType(const ResourceType &value)
SetupHistoryResource & WithLocation(ResourceLocation &&value)
SetupHistoryResource & WithArn(const Aws::String &value)
SetupHistoryResource & WithName(Aws::String &&value)
SetupHistoryResource & WithArn(Aws::String &&value)
void SetLocation(const ResourceLocation &value)
const Aws::Utils::DateTime & GetCreatedAt() const
SetupHistoryResource & WithCreatedAt(const Aws::Utils::DateTime &value)
SetupHistoryResource & WithName(const char *value)
SetupHistoryResource & WithResourceType(ResourceType &&value)
void SetCreatedAt(const Aws::Utils::DateTime &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