AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceIdentifier.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/LogicalResourceId.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ResilienceHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RESILIENCEHUB_API ResourceIdentifier();
37 AWS_RESILIENCEHUB_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API ResourceIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const LogicalResourceId& GetLogicalResourceId() const{ return m_logicalResourceId; }
47 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
48 inline void SetLogicalResourceId(const LogicalResourceId& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
49 inline void SetLogicalResourceId(LogicalResourceId&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
51 inline ResourceIdentifier& WithLogicalResourceId(LogicalResourceId&& value) { SetLogicalResourceId(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
61 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
62 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
63 inline ResourceIdentifier& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
64 inline ResourceIdentifier& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
65 inline ResourceIdentifier& WithResourceType(const char* value) { SetResourceType(value); return *this;}
67 private:
68
69 LogicalResourceId m_logicalResourceId;
70 bool m_logicalResourceIdHasBeenSet = false;
71
72 Aws::String m_resourceType;
73 bool m_resourceTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ResilienceHub
78} // namespace Aws
ResourceIdentifier & WithResourceType(Aws::String &&value)
ResourceIdentifier & WithLogicalResourceId(LogicalResourceId &&value)
ResourceIdentifier & WithLogicalResourceId(const LogicalResourceId &value)
const LogicalResourceId & GetLogicalResourceId() const
void SetResourceType(const Aws::String &value)
AWS_RESILIENCEHUB_API ResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLogicalResourceId(LogicalResourceId &&value)
ResourceIdentifier & WithResourceType(const char *value)
void SetLogicalResourceId(const LogicalResourceId &value)
AWS_RESILIENCEHUB_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
ResourceIdentifier & WithResourceType(const Aws::String &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue