AWS SDK for C++  1.9.104
AWS SDK for C++
MonitoredResourceInfo.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetArn() const{ return m_arn; }
48 
52  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 
57  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
58 
62  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 
67  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 
72  inline MonitoredResourceInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 
77  inline MonitoredResourceInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 
82  inline MonitoredResourceInfo& WithArn(const char* value) { SetArn(value); return *this;}
83 
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 
98  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 
108  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 
113  inline MonitoredResourceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
114 
118  inline MonitoredResourceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
119 
123  inline MonitoredResourceInfo& WithName(const char* value) { SetName(value); return *this;}
124 
125 
131  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
132 
138  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
139 
145  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
146 
152  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
153 
159  inline MonitoredResourceInfo& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
160 
166  inline MonitoredResourceInfo& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
167 
168  private:
169 
170  Aws::String m_arn;
171  bool m_arnHasBeenSet;
172 
173  Aws::String m_name;
174  bool m_nameHasBeenSet;
175 
176  ResourceType m_resourceType;
177  bool m_resourceTypeHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace Lightsail
182 } // namespace Aws
Aws::Lightsail::Model::MonitoredResourceInfo::WithResourceType
MonitoredResourceInfo & WithResourceType(ResourceType &&value)
Definition: MonitoredResourceInfo.h:166
Aws::Lightsail::Model::MonitoredResourceInfo::SetResourceType
void SetResourceType(ResourceType &&value)
Definition: MonitoredResourceInfo.h:152
Aws::Lightsail::Model::MonitoredResourceInfo::GetResourceType
const ResourceType & GetResourceType() const
Definition: MonitoredResourceInfo.h:131
Aws::Lightsail::Model::MonitoredResourceInfo::GetName
const Aws::String & GetName() const
Definition: MonitoredResourceInfo.h:88
Aws::Lightsail::Model::MonitoredResourceInfo::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: MonitoredResourceInfo.h:52
Aws::Lightsail::Model::MonitoredResourceInfo
Definition: MonitoredResourceInfo.h:36
ResourceType.h
Aws::Lightsail::Model::MonitoredResourceInfo::SetArn
void SetArn(const char *value)
Definition: MonitoredResourceInfo.h:67
Aws::Lightsail::Model::MonitoredResourceInfo::WithName
MonitoredResourceInfo & WithName(const char *value)
Definition: MonitoredResourceInfo.h:123
Aws::Lightsail::Model::MonitoredResourceInfo::WithName
MonitoredResourceInfo & WithName(const Aws::String &value)
Definition: MonitoredResourceInfo.h:113
Aws::Lightsail::Model::MonitoredResourceInfo::WithArn
MonitoredResourceInfo & WithArn(Aws::String &&value)
Definition: MonitoredResourceInfo.h:77
Aws::Lightsail::Model::MonitoredResourceInfo::WithName
MonitoredResourceInfo & WithName(Aws::String &&value)
Definition: MonitoredResourceInfo.h:118
Aws::Lightsail::Model::MonitoredResourceInfo::MonitoredResourceInfo
MonitoredResourceInfo()
Aws::Lightsail::Model::MonitoredResourceInfo::SetName
void SetName(const Aws::String &value)
Definition: MonitoredResourceInfo.h:98
Aws::Lightsail::Model::MonitoredResourceInfo::GetArn
const Aws::String & GetArn() const
Definition: MonitoredResourceInfo.h:47
Aws::Lightsail::Model::MonitoredResourceInfo::MonitoredResourceInfo
MonitoredResourceInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::MonitoredResourceInfo::SetName
void SetName(Aws::String &&value)
Definition: MonitoredResourceInfo.h:103
Aws::Lightsail::Model::MonitoredResourceInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::MonitoredResourceInfo::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: MonitoredResourceInfo.h:138
Aws::Lightsail::Model::MonitoredResourceInfo::WithResourceType
MonitoredResourceInfo & WithResourceType(const ResourceType &value)
Definition: MonitoredResourceInfo.h:159
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::MonitoredResourceInfo::SetName
void SetName(const char *value)
Definition: MonitoredResourceInfo.h:108
Aws::Lightsail::Model::MonitoredResourceInfo::WithArn
MonitoredResourceInfo & WithArn(const Aws::String &value)
Definition: MonitoredResourceInfo.h:72
Lightsail_EXPORTS.h
Aws::Lightsail::Model::MonitoredResourceInfo::SetArn
void SetArn(Aws::String &&value)
Definition: MonitoredResourceInfo.h:62
Aws::Lightsail::Model::MonitoredResourceInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: MonitoredResourceInfo.h:93
Aws::Lightsail::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::MonitoredResourceInfo::WithArn
MonitoredResourceInfo & WithArn(const char *value)
Definition: MonitoredResourceInfo.h:82
Aws::Lightsail::Model::MonitoredResourceInfo::SetArn
void SetArn(const Aws::String &value)
Definition: MonitoredResourceInfo.h:57
Aws::Lightsail::Model::MonitoredResourceInfo::SetResourceType
void SetResourceType(const ResourceType &value)
Definition: MonitoredResourceInfo.h:145
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::MonitoredResourceInfo::operator=
MonitoredResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)