AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupingResource.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/LogicalResourceId.h>
9#include <aws/resiliencehub/model/PhysicalResourceId.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_RESILIENCEHUB_API GroupingResource();
39 AWS_RESILIENCEHUB_API GroupingResource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_RESILIENCEHUB_API GroupingResource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const LogicalResourceId& GetLogicalResourceId() const{ return m_logicalResourceId; }
49 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
50 inline void SetLogicalResourceId(const LogicalResourceId& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
51 inline void SetLogicalResourceId(LogicalResourceId&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
53 inline GroupingResource& WithLogicalResourceId(LogicalResourceId&& value) { SetLogicalResourceId(std::move(value)); return *this;}
55
57
60 inline const PhysicalResourceId& GetPhysicalResourceId() const{ return m_physicalResourceId; }
61 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
62 inline void SetPhysicalResourceId(const PhysicalResourceId& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
63 inline void SetPhysicalResourceId(PhysicalResourceId&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
65 inline GroupingResource& WithPhysicalResourceId(PhysicalResourceId&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
73 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
74 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
75 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
76 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
77 inline GroupingResource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
78 inline GroupingResource& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
79 inline GroupingResource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
81
83
86 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
87 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
88 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
89 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
90 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
91 inline GroupingResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
92 inline GroupingResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
93 inline GroupingResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
95
97
101 inline const Aws::Vector<Aws::String>& GetSourceAppComponentIds() const{ return m_sourceAppComponentIds; }
102 inline bool SourceAppComponentIdsHasBeenSet() const { return m_sourceAppComponentIdsHasBeenSet; }
103 inline void SetSourceAppComponentIds(const Aws::Vector<Aws::String>& value) { m_sourceAppComponentIdsHasBeenSet = true; m_sourceAppComponentIds = value; }
104 inline void SetSourceAppComponentIds(Aws::Vector<Aws::String>&& value) { m_sourceAppComponentIdsHasBeenSet = true; m_sourceAppComponentIds = std::move(value); }
107 inline GroupingResource& AddSourceAppComponentIds(const Aws::String& value) { m_sourceAppComponentIdsHasBeenSet = true; m_sourceAppComponentIds.push_back(value); return *this; }
108 inline GroupingResource& AddSourceAppComponentIds(Aws::String&& value) { m_sourceAppComponentIdsHasBeenSet = true; m_sourceAppComponentIds.push_back(std::move(value)); return *this; }
109 inline GroupingResource& AddSourceAppComponentIds(const char* value) { m_sourceAppComponentIdsHasBeenSet = true; m_sourceAppComponentIds.push_back(value); return *this; }
111 private:
112
113 LogicalResourceId m_logicalResourceId;
114 bool m_logicalResourceIdHasBeenSet = false;
115
116 PhysicalResourceId m_physicalResourceId;
117 bool m_physicalResourceIdHasBeenSet = false;
118
119 Aws::String m_resourceName;
120 bool m_resourceNameHasBeenSet = false;
121
122 Aws::String m_resourceType;
123 bool m_resourceTypeHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_sourceAppComponentIds;
126 bool m_sourceAppComponentIdsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ResilienceHub
131} // namespace Aws
GroupingResource & WithResourceName(const Aws::String &value)
const Aws::String & GetResourceType() const
void SetResourceType(const Aws::String &value)
GroupingResource & WithResourceType(const Aws::String &value)
const LogicalResourceId & GetLogicalResourceId() const
GroupingResource & WithLogicalResourceId(LogicalResourceId &&value)
GroupingResource & WithPhysicalResourceId(PhysicalResourceId &&value)
AWS_RESILIENCEHUB_API GroupingResource & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupingResource & WithResourceName(const char *value)
void SetLogicalResourceId(LogicalResourceId &&value)
GroupingResource & WithResourceType(Aws::String &&value)
GroupingResource & AddSourceAppComponentIds(Aws::String &&value)
void SetPhysicalResourceId(const PhysicalResourceId &value)
GroupingResource & WithResourceName(Aws::String &&value)
GroupingResource & AddSourceAppComponentIds(const Aws::String &value)
void SetSourceAppComponentIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSourceAppComponentIds() const
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogicalResourceId(const LogicalResourceId &value)
void SetSourceAppComponentIds(const Aws::Vector< Aws::String > &value)
const Aws::String & GetResourceName() const
GroupingResource & WithSourceAppComponentIds(const Aws::Vector< Aws::String > &value)
GroupingResource & AddSourceAppComponentIds(const char *value)
const PhysicalResourceId & GetPhysicalResourceId() const
GroupingResource & WithPhysicalResourceId(const PhysicalResourceId &value)
GroupingResource & WithResourceType(const char *value)
void SetResourceName(const Aws::String &value)
GroupingResource & WithLogicalResourceId(const LogicalResourceId &value)
AWS_RESILIENCEHUB_API GroupingResource(Aws::Utils::Json::JsonView jsonValue)
GroupingResource & WithSourceAppComponentIds(Aws::Vector< Aws::String > &&value)
void SetPhysicalResourceId(PhysicalResourceId &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue