AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
ServiceResourcesDisassociatedMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace resiliencehubv2 {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUBV2_API ServiceResourcesDisassociatedMetadata() = default;
34 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetResourceCount() const { return m_resourceCount; }
41 inline bool ResourceCountHasBeenSet() const { return m_resourceCountHasBeenSet; }
42 inline void SetResourceCount(int value) {
43 m_resourceCountHasBeenSet = true;
44 m_resourceCount = value;
45 }
47 SetResourceCount(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
57 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
58 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
59 void SetResourceTypes(ResourceTypesT&& value) {
60 m_resourceTypesHasBeenSet = true;
61 m_resourceTypes = std::forward<ResourceTypesT>(value);
62 }
63 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
65 SetResourceTypes(std::forward<ResourceTypesT>(value));
66 return *this;
67 }
68 template <typename ResourceTypesT = Aws::String>
70 m_resourceTypesHasBeenSet = true;
71 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
72 return *this;
73 }
75 private:
76 int m_resourceCount{0};
77
78 Aws::Vector<Aws::String> m_resourceTypes;
79 bool m_resourceCountHasBeenSet = false;
80 bool m_resourceTypesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace resiliencehubv2
85} // namespace Aws
AWS_RESILIENCEHUBV2_API ServiceResourcesDisassociatedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API ServiceResourcesDisassociatedMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API ServiceResourcesDisassociatedMetadata()=default
ServiceResourcesDisassociatedMetadata & WithResourceTypes(ResourceTypesT &&value)
ServiceResourcesDisassociatedMetadata & AddResourceTypes(ResourceTypesT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue