AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
MonitoredResourceInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/ResourceType.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
32 public:
33 AWS_LIGHTSAIL_API MonitoredResourceInfo() = default;
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
80 inline ResourceType GetResourceType() const { return m_resourceType; }
81 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
82 inline void SetResourceType(ResourceType value) {
83 m_resourceTypeHasBeenSet = true;
84 m_resourceType = value;
85 }
87 SetResourceType(value);
88 return *this;
89 }
91 private:
92 Aws::String m_arn;
93 bool m_arnHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 ResourceType m_resourceType{ResourceType::NOT_SET};
99 bool m_resourceTypeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Lightsail
104} // namespace Aws
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
MonitoredResourceInfo & WithResourceType(ResourceType value)
AWS_LIGHTSAIL_API MonitoredResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
MonitoredResourceInfo & WithName(NameT &&value)
MonitoredResourceInfo & WithArn(ArnT &&value)
AWS_LIGHTSAIL_API MonitoredResourceInfo()=default
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