AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MonitoredResourceInfo.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/ResourceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_LIGHTSAIL_API MonitoredResourceInfo();
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline MonitoredResourceInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline MonitoredResourceInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline MonitoredResourceInfo& WithArn(const char* value) { SetArn(value); return *this;}
57
59
62 inline const Aws::String& GetName() const{ return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
66 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 inline MonitoredResourceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline MonitoredResourceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline MonitoredResourceInfo& WithName(const char* value) { SetName(value); return *this;}
71
73
78 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
80 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
82 inline MonitoredResourceInfo& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
83 inline MonitoredResourceInfo& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
85 private:
86
87 Aws::String m_arn;
88 bool m_arnHasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92
93 ResourceType m_resourceType;
94 bool m_resourceTypeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Lightsail
99} // namespace Aws
MonitoredResourceInfo & WithName(Aws::String &&value)
void SetResourceType(const ResourceType &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MonitoredResourceInfo & WithResourceType(const ResourceType &value)
MonitoredResourceInfo & WithResourceType(ResourceType &&value)
MonitoredResourceInfo & WithName(const Aws::String &value)
MonitoredResourceInfo & WithArn(const Aws::String &value)
MonitoredResourceInfo & WithName(const char *value)
AWS_LIGHTSAIL_API MonitoredResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
MonitoredResourceInfo & WithArn(const char *value)
MonitoredResourceInfo & WithArn(Aws::String &&value)
AWS_LIGHTSAIL_API MonitoredResourceInfo(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue