|
|
@@ -25,6 +25,17 @@ CreatePatchBaselineRequest::CreatePatchBaselineRequest()
|
|
|
|
|
|
CreatePatchBaselineRequest::~CreatePatchBaselineRequest() {}
|
|
|
|
|
|
+std::vector<CreatePatchBaselineRequest::std::string> CreatePatchBaselineRequest::getSources() const {
|
|
|
+ return sources_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setSources(const std::vector<CreatePatchBaselineRequest::std::string> &sources) {
|
|
|
+ sources_ = sources;
|
|
|
+ for(int dep1 = 0; dep1 != sources.size(); dep1++) {
|
|
|
+ setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1), sources[dep1]);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
std::string CreatePatchBaselineRequest::getClientToken() const {
|
|
|
return clientToken_;
|
|
|
}
|
|
|
@@ -52,6 +63,45 @@ void CreatePatchBaselineRequest::setDescription(const std::string &description)
|
|
|
setParameter(std::string("Description"), description);
|
|
|
}
|
|
|
|
|
|
+std::string CreatePatchBaselineRequest::getRegionId() const {
|
|
|
+ return regionId_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
|
|
+ regionId_ = regionId;
|
|
|
+ setParameter(std::string("RegionId"), regionId);
|
|
|
+}
|
|
|
+
|
|
|
+std::string CreatePatchBaselineRequest::getRejectedPatchesAction() const {
|
|
|
+ return rejectedPatchesAction_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rejectedPatchesAction) {
|
|
|
+ rejectedPatchesAction_ = rejectedPatchesAction;
|
|
|
+ setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
|
|
+}
|
|
|
+
|
|
|
+bool CreatePatchBaselineRequest::getApprovedPatchesEnableNonSecurity() const {
|
|
|
+ return approvedPatchesEnableNonSecurity_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setApprovedPatchesEnableNonSecurity(bool approvedPatchesEnableNonSecurity) {
|
|
|
+ approvedPatchesEnableNonSecurity_ = approvedPatchesEnableNonSecurity;
|
|
|
+ setParameter(std::string("ApprovedPatchesEnableNonSecurity"), approvedPatchesEnableNonSecurity ? "true" : "false");
|
|
|
+}
|
|
|
+
|
|
|
+std::vector<CreatePatchBaselineRequest::Tags> CreatePatchBaselineRequest::getTags() const {
|
|
|
+ return tags_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setTags(const std::vector<CreatePatchBaselineRequest::Tags> &tags) {
|
|
|
+ tags_ = tags;
|
|
|
+ for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
|
|
+ setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Value", tags[dep1].value);
|
|
|
+ setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".Key", tags[dep1].key);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
std::string CreatePatchBaselineRequest::getOperationSystem() const {
|
|
|
return operationSystem_;
|
|
|
}
|
|
|
@@ -72,24 +122,6 @@ void CreatePatchBaselineRequest::setRejectedPatches(const std::vector<CreatePatc
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-std::string CreatePatchBaselineRequest::getRegionId() const {
|
|
|
- return regionId_;
|
|
|
-}
|
|
|
-
|
|
|
-void CreatePatchBaselineRequest::setRegionId(const std::string ®ionId) {
|
|
|
- regionId_ = regionId;
|
|
|
- setParameter(std::string("RegionId"), regionId);
|
|
|
-}
|
|
|
-
|
|
|
-std::string CreatePatchBaselineRequest::getRejectedPatchesAction() const {
|
|
|
- return rejectedPatchesAction_;
|
|
|
-}
|
|
|
-
|
|
|
-void CreatePatchBaselineRequest::setRejectedPatchesAction(const std::string &rejectedPatchesAction) {
|
|
|
- rejectedPatchesAction_ = rejectedPatchesAction;
|
|
|
- setParameter(std::string("RejectedPatchesAction"), rejectedPatchesAction);
|
|
|
-}
|
|
|
-
|
|
|
std::string CreatePatchBaselineRequest::getName() const {
|
|
|
return name_;
|
|
|
}
|
|
|
@@ -99,3 +131,14 @@ void CreatePatchBaselineRequest::setName(const std::string &name) {
|
|
|
setParameter(std::string("Name"), name);
|
|
|
}
|
|
|
|
|
|
+std::vector<CreatePatchBaselineRequest::std::string> CreatePatchBaselineRequest::getApprovedPatches() const {
|
|
|
+ return approvedPatches_;
|
|
|
+}
|
|
|
+
|
|
|
+void CreatePatchBaselineRequest::setApprovedPatches(const std::vector<CreatePatchBaselineRequest::std::string> &approvedPatches) {
|
|
|
+ approvedPatches_ = approvedPatches;
|
|
|
+ for(int dep1 = 0; dep1 != approvedPatches.size(); dep1++) {
|
|
|
+ setParameter(std::string("ApprovedPatches") + "." + std::to_string(dep1 + 1), approvedPatches[dep1]);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|