AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceChange.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/servicecatalog/model/ChangeAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicecatalog/model/Replacement.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/servicecatalog/model/ResourceAttribute.h>
13#include <aws/servicecatalog/model/ResourceChangeDetail.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ServiceCatalog
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SERVICECATALOG_API ResourceChange() = default;
41 AWS_SERVICECATALOG_API ResourceChange(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICECATALOG_API ResourceChange& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline ChangeAction GetAction() const { return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 inline void SetAction(ChangeAction value) { m_actionHasBeenSet = true; m_action = value; }
53 inline ResourceChange& WithAction(ChangeAction value) { SetAction(value); return *this;}
55
57
60 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
61 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
62 template<typename LogicalResourceIdT = Aws::String>
63 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
64 template<typename LogicalResourceIdT = Aws::String>
65 ResourceChange& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
73 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
74 template<typename PhysicalResourceIdT = Aws::String>
75 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
76 template<typename PhysicalResourceIdT = Aws::String>
77 ResourceChange& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
79
81
84 inline const Aws::String& GetResourceType() const { return m_resourceType; }
85 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
86 template<typename ResourceTypeT = Aws::String>
87 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
88 template<typename ResourceTypeT = Aws::String>
89 ResourceChange& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
91
93
97 inline Replacement GetReplacement() const { return m_replacement; }
98 inline bool ReplacementHasBeenSet() const { return m_replacementHasBeenSet; }
99 inline void SetReplacement(Replacement value) { m_replacementHasBeenSet = true; m_replacement = value; }
100 inline ResourceChange& WithReplacement(Replacement value) { SetReplacement(value); return *this;}
102
104
107 inline const Aws::Vector<ResourceAttribute>& GetScope() const { return m_scope; }
108 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
109 template<typename ScopeT = Aws::Vector<ResourceAttribute>>
110 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
111 template<typename ScopeT = Aws::Vector<ResourceAttribute>>
112 ResourceChange& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
113 inline ResourceChange& AddScope(ResourceAttribute value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
115
117
120 inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const { return m_details; }
121 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
122 template<typename DetailsT = Aws::Vector<ResourceChangeDetail>>
123 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
124 template<typename DetailsT = Aws::Vector<ResourceChangeDetail>>
125 ResourceChange& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
126 template<typename DetailsT = ResourceChangeDetail>
127 ResourceChange& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
129 private:
130
132 bool m_actionHasBeenSet = false;
133
134 Aws::String m_logicalResourceId;
135 bool m_logicalResourceIdHasBeenSet = false;
136
137 Aws::String m_physicalResourceId;
138 bool m_physicalResourceIdHasBeenSet = false;
139
140 Aws::String m_resourceType;
141 bool m_resourceTypeHasBeenSet = false;
142
143 Replacement m_replacement{Replacement::NOT_SET};
144 bool m_replacementHasBeenSet = false;
145
147 bool m_scopeHasBeenSet = false;
148
150 bool m_detailsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace ServiceCatalog
155} // namespace Aws
ResourceChange & WithLogicalResourceId(LogicalResourceIdT &&value)
ResourceChange & WithPhysicalResourceId(PhysicalResourceIdT &&value)
const Aws::String & GetLogicalResourceId() const
AWS_SERVICECATALOG_API ResourceChange(Aws::Utils::Json::JsonView jsonValue)
ResourceChange & WithReplacement(Replacement value)
AWS_SERVICECATALOG_API ResourceChange()=default
void SetLogicalResourceId(LogicalResourceIdT &&value)
ResourceChange & WithAction(ChangeAction value)
ResourceChange & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetResourceType() const
const Aws::Vector< ResourceChangeDetail > & GetDetails() const
ResourceChange & AddScope(ResourceAttribute value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
const Aws::String & GetPhysicalResourceId() const
ResourceChange & WithScope(ScopeT &&value)
void SetResourceType(ResourceTypeT &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceChange & AddDetails(DetailsT &&value)
const Aws::Vector< ResourceAttribute > & GetScope() const
AWS_SERVICECATALOG_API ResourceChange & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceChange & WithDetails(DetailsT &&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