AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename LogicalResourceIdT = LogicalResourceId>
49 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
50 template<typename LogicalResourceIdT = LogicalResourceId>
51 ResourceIdentifier& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceType() const { return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
60 template<typename ResourceTypeT = Aws::String>
61 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
62 template<typename ResourceTypeT = Aws::String>
63 ResourceIdentifier& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
65 private:
66
67 LogicalResourceId m_logicalResourceId;
68 bool m_logicalResourceIdHasBeenSet = false;
69
70 Aws::String m_resourceType;
71 bool m_resourceTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ResilienceHub
76} // namespace Aws
const LogicalResourceId & GetLogicalResourceId() const
AWS_RESILIENCEHUB_API ResourceIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceIdentifier & WithResourceType(ResourceTypeT &&value)
AWS_RESILIENCEHUB_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue)
void SetLogicalResourceId(LogicalResourceIdT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceIdentifier & WithLogicalResourceId(LogicalResourceIdT &&value)
AWS_RESILIENCEHUB_API ResourceIdentifier()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue