AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ResourceIdentifier.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/LogicalResourceId.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUB_API ResourceIdentifier() = default;
32 AWS_RESILIENCEHUB_API ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API ResourceIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const LogicalResourceId& GetLogicalResourceId() const { return m_logicalResourceId; }
41 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
42 template <typename LogicalResourceIdT = LogicalResourceId>
43 void SetLogicalResourceId(LogicalResourceIdT&& value) {
44 m_logicalResourceIdHasBeenSet = true;
45 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
46 }
47 template <typename LogicalResourceIdT = LogicalResourceId>
48 ResourceIdentifier& WithLogicalResourceId(LogicalResourceIdT&& value) {
49 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
50 return *this;
51 }
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) {
62 m_resourceTypeHasBeenSet = true;
63 m_resourceType = std::forward<ResourceTypeT>(value);
64 }
65 template <typename ResourceTypeT = Aws::String>
66 ResourceIdentifier& WithResourceType(ResourceTypeT&& value) {
67 SetResourceType(std::forward<ResourceTypeT>(value));
68 return *this;
69 }
71 private:
72 LogicalResourceId m_logicalResourceId;
73
74 Aws::String m_resourceType;
75 bool m_logicalResourceIdHasBeenSet = false;
76 bool m_resourceTypeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ResilienceHub
81} // 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