AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
ServiceFunctionUpdatedMetadata.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
29 public:
30 AWS_RESILIENCEHUBV2_API ServiceFunctionUpdatedMetadata() = default;
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetServiceFunctionId() const { return m_serviceFunctionId; }
40 inline bool ServiceFunctionIdHasBeenSet() const { return m_serviceFunctionIdHasBeenSet; }
41 template <typename ServiceFunctionIdT = Aws::String>
42 void SetServiceFunctionId(ServiceFunctionIdT&& value) {
43 m_serviceFunctionIdHasBeenSet = true;
44 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
45 }
46 template <typename ServiceFunctionIdT = Aws::String>
48 SetServiceFunctionId(std::forward<ServiceFunctionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetServiceFunctionName() const { return m_serviceFunctionName; }
58 inline bool ServiceFunctionNameHasBeenSet() const { return m_serviceFunctionNameHasBeenSet; }
59 template <typename ServiceFunctionNameT = Aws::String>
60 void SetServiceFunctionName(ServiceFunctionNameT&& value) {
61 m_serviceFunctionNameHasBeenSet = true;
62 m_serviceFunctionName = std::forward<ServiceFunctionNameT>(value);
63 }
64 template <typename ServiceFunctionNameT = Aws::String>
66 SetServiceFunctionName(std::forward<ServiceFunctionNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetResourcesAdded() const { return m_resourcesAdded; }
76 inline bool ResourcesAddedHasBeenSet() const { return m_resourcesAddedHasBeenSet; }
77 template <typename ResourcesAddedT = Aws::Vector<Aws::String>>
78 void SetResourcesAdded(ResourcesAddedT&& value) {
79 m_resourcesAddedHasBeenSet = true;
80 m_resourcesAdded = std::forward<ResourcesAddedT>(value);
81 }
82 template <typename ResourcesAddedT = Aws::Vector<Aws::String>>
84 SetResourcesAdded(std::forward<ResourcesAddedT>(value));
85 return *this;
86 }
87 template <typename ResourcesAddedT = Aws::String>
89 m_resourcesAddedHasBeenSet = true;
90 m_resourcesAdded.emplace_back(std::forward<ResourcesAddedT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetResourcesRemoved() const { return m_resourcesRemoved; }
100 inline bool ResourcesRemovedHasBeenSet() const { return m_resourcesRemovedHasBeenSet; }
101 template <typename ResourcesRemovedT = Aws::Vector<Aws::String>>
102 void SetResourcesRemoved(ResourcesRemovedT&& value) {
103 m_resourcesRemovedHasBeenSet = true;
104 m_resourcesRemoved = std::forward<ResourcesRemovedT>(value);
105 }
106 template <typename ResourcesRemovedT = Aws::Vector<Aws::String>>
108 SetResourcesRemoved(std::forward<ResourcesRemovedT>(value));
109 return *this;
110 }
111 template <typename ResourcesRemovedT = Aws::String>
113 m_resourcesRemovedHasBeenSet = true;
114 m_resourcesRemoved.emplace_back(std::forward<ResourcesRemovedT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_serviceFunctionId;
120
121 Aws::String m_serviceFunctionName;
122
123 Aws::Vector<Aws::String> m_resourcesAdded;
124
125 Aws::Vector<Aws::String> m_resourcesRemoved;
126 bool m_serviceFunctionIdHasBeenSet = false;
127 bool m_serviceFunctionNameHasBeenSet = false;
128 bool m_resourcesAddedHasBeenSet = false;
129 bool m_resourcesRemovedHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace resiliencehubv2
134} // namespace Aws
ServiceFunctionUpdatedMetadata & WithServiceFunctionId(ServiceFunctionIdT &&value)
ServiceFunctionUpdatedMetadata & WithResourcesRemoved(ResourcesRemovedT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunctionUpdatedMetadata()=default
ServiceFunctionUpdatedMetadata & AddResourcesRemoved(ResourcesRemovedT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunctionUpdatedMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceFunctionUpdatedMetadata & AddResourcesAdded(ResourcesAddedT &&value)
AWS_RESILIENCEHUBV2_API ServiceFunctionUpdatedMetadata(Aws::Utils::Json::JsonView jsonValue)
ServiceFunctionUpdatedMetadata & WithResourcesAdded(ResourcesAddedT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceFunctionUpdatedMetadata & WithServiceFunctionName(ServiceFunctionNameT &&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