AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ChangeAction& GetAction() const{ return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
53 inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
54 inline ResourceChange& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
55 inline ResourceChange& WithAction(ChangeAction&& value) { SetAction(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
63 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
64 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
65 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
66 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
67 inline ResourceChange& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
68 inline ResourceChange& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
69 inline ResourceChange& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
71
73
76 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
77 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
78 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
79 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
80 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
81 inline ResourceChange& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
82 inline ResourceChange& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
83 inline ResourceChange& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
85
87
90 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
91 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
92 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
93 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
94 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
95 inline ResourceChange& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
96 inline ResourceChange& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
97 inline ResourceChange& WithResourceType(const char* value) { SetResourceType(value); return *this;}
99
101
105 inline const Replacement& GetReplacement() const{ return m_replacement; }
106 inline bool ReplacementHasBeenSet() const { return m_replacementHasBeenSet; }
107 inline void SetReplacement(const Replacement& value) { m_replacementHasBeenSet = true; m_replacement = value; }
108 inline void SetReplacement(Replacement&& value) { m_replacementHasBeenSet = true; m_replacement = std::move(value); }
109 inline ResourceChange& WithReplacement(const Replacement& value) { SetReplacement(value); return *this;}
110 inline ResourceChange& WithReplacement(Replacement&& value) { SetReplacement(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<ResourceAttribute>& GetScope() const{ return m_scope; }
118 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
119 inline void SetScope(const Aws::Vector<ResourceAttribute>& value) { m_scopeHasBeenSet = true; m_scope = value; }
120 inline void SetScope(Aws::Vector<ResourceAttribute>&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
121 inline ResourceChange& WithScope(const Aws::Vector<ResourceAttribute>& value) { SetScope(value); return *this;}
122 inline ResourceChange& WithScope(Aws::Vector<ResourceAttribute>&& value) { SetScope(std::move(value)); return *this;}
123 inline ResourceChange& AddScope(const ResourceAttribute& value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
124 inline ResourceChange& AddScope(ResourceAttribute&& value) { m_scopeHasBeenSet = true; m_scope.push_back(std::move(value)); return *this; }
126
128
131 inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const{ return m_details; }
132 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
133 inline void SetDetails(const Aws::Vector<ResourceChangeDetail>& value) { m_detailsHasBeenSet = true; m_details = value; }
134 inline void SetDetails(Aws::Vector<ResourceChangeDetail>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
135 inline ResourceChange& WithDetails(const Aws::Vector<ResourceChangeDetail>& value) { SetDetails(value); return *this;}
136 inline ResourceChange& WithDetails(Aws::Vector<ResourceChangeDetail>&& value) { SetDetails(std::move(value)); return *this;}
137 inline ResourceChange& AddDetails(const ResourceChangeDetail& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
138 inline ResourceChange& AddDetails(ResourceChangeDetail&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
140 private:
141
142 ChangeAction m_action;
143 bool m_actionHasBeenSet = false;
144
145 Aws::String m_logicalResourceId;
146 bool m_logicalResourceIdHasBeenSet = false;
147
148 Aws::String m_physicalResourceId;
149 bool m_physicalResourceIdHasBeenSet = false;
150
151 Aws::String m_resourceType;
152 bool m_resourceTypeHasBeenSet = false;
153
154 Replacement m_replacement;
155 bool m_replacementHasBeenSet = false;
156
158 bool m_scopeHasBeenSet = false;
159
161 bool m_detailsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ServiceCatalog
166} // namespace Aws
ResourceChange & WithLogicalResourceId(Aws::String &&value)
void SetDetails(Aws::Vector< ResourceChangeDetail > &&value)
ResourceChange & WithLogicalResourceId(const char *value)
void SetResourceType(const Aws::String &value)
void SetScope(Aws::Vector< ResourceAttribute > &&value)
ResourceChange & WithScope(const Aws::Vector< ResourceAttribute > &value)
void SetReplacement(const Replacement &value)
ResourceChange & WithPhysicalResourceId(const Aws::String &value)
AWS_SERVICECATALOG_API ResourceChange()
const Aws::String & GetLogicalResourceId() const
ResourceChange & WithReplacement(const Replacement &value)
void SetResourceType(Aws::String &&value)
AWS_SERVICECATALOG_API ResourceChange(Aws::Utils::Json::JsonView jsonValue)
ResourceChange & WithDetails(Aws::Vector< ResourceChangeDetail > &&value)
const ChangeAction & GetAction() const
void SetLogicalResourceId(Aws::String &&value)
void SetPhysicalResourceId(const Aws::String &value)
ResourceChange & WithResourceType(Aws::String &&value)
ResourceChange & WithScope(Aws::Vector< ResourceAttribute > &&value)
ResourceChange & WithResourceType(const Aws::String &value)
ResourceChange & WithDetails(const Aws::Vector< ResourceChangeDetail > &value)
const Aws::String & GetResourceType() const
ResourceChange & AddDetails(const ResourceChangeDetail &value)
const Aws::Vector< ResourceChangeDetail > & GetDetails() const
void SetPhysicalResourceId(Aws::String &&value)
ResourceChange & WithPhysicalResourceId(Aws::String &&value)
const Replacement & GetReplacement() const
ResourceChange & WithAction(const ChangeAction &value)
void SetDetails(const Aws::Vector< ResourceChangeDetail > &value)
const Aws::String & GetPhysicalResourceId() const
ResourceChange & WithPhysicalResourceId(const char *value)
void SetLogicalResourceId(const Aws::String &value)
ResourceChange & WithAction(ChangeAction &&value)
void SetPhysicalResourceId(const char *value)
ResourceChange & AddDetails(ResourceChangeDetail &&value)
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceChange & AddScope(const ResourceAttribute &value)
void SetAction(const ChangeAction &value)
ResourceChange & WithResourceType(const char *value)
ResourceChange & AddScope(ResourceAttribute &&value)
const Aws::Vector< ResourceAttribute > & GetScope() const
AWS_SERVICECATALOG_API ResourceChange & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceChange & WithReplacement(Replacement &&value)
ResourceChange & WithLogicalResourceId(const Aws::String &value)
void SetScope(const Aws::Vector< ResourceAttribute > &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