535 lines
20 KiB
C++
535 lines
20 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ssm/model/OperatingSystem.h>
|
|
#include <aws/ssm/model/PatchFilterGroup.h>
|
|
#include <aws/ssm/model/PatchRuleGroup.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/ssm/model/PatchComplianceLevel.h>
|
|
#include <aws/ssm/model/PatchAction.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <aws/ssm/model/PatchSource.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SSM
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_SSM_API UpdatePatchBaselineResult
|
|
{
|
|
public:
|
|
UpdatePatchBaselineResult();
|
|
UpdatePatchBaselineResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
UpdatePatchBaselineResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline const Aws::String& GetBaselineId() const{ return m_baselineId; }
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline void SetBaselineId(const Aws::String& value) { m_baselineId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline void SetBaselineId(Aws::String&& value) { m_baselineId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline void SetBaselineId(const char* value) { m_baselineId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithBaselineId(const Aws::String& value) { SetBaselineId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithBaselineId(Aws::String&& value) { SetBaselineId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the deleted patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithBaselineId(const char* value) { SetBaselineId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The operating system rule used by the updated patch baseline.</p>
|
|
*/
|
|
inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
|
|
|
|
/**
|
|
* <p>The operating system rule used by the updated patch baseline.</p>
|
|
*/
|
|
inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystem = value; }
|
|
|
|
/**
|
|
* <p>The operating system rule used by the updated patch baseline.</p>
|
|
*/
|
|
inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystem = std::move(value); }
|
|
|
|
/**
|
|
* <p>The operating system rule used by the updated patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
|
|
|
|
/**
|
|
* <p>The operating system rule used by the updated patch baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A set of global filters used to exclude patches from the baseline.</p>
|
|
*/
|
|
inline const PatchFilterGroup& GetGlobalFilters() const{ return m_globalFilters; }
|
|
|
|
/**
|
|
* <p>A set of global filters used to exclude patches from the baseline.</p>
|
|
*/
|
|
inline void SetGlobalFilters(const PatchFilterGroup& value) { m_globalFilters = value; }
|
|
|
|
/**
|
|
* <p>A set of global filters used to exclude patches from the baseline.</p>
|
|
*/
|
|
inline void SetGlobalFilters(PatchFilterGroup&& value) { m_globalFilters = std::move(value); }
|
|
|
|
/**
|
|
* <p>A set of global filters used to exclude patches from the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithGlobalFilters(const PatchFilterGroup& value) { SetGlobalFilters(value); return *this;}
|
|
|
|
/**
|
|
* <p>A set of global filters used to exclude patches from the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithGlobalFilters(PatchFilterGroup&& value) { SetGlobalFilters(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A set of rules used to include patches in the baseline.</p>
|
|
*/
|
|
inline const PatchRuleGroup& GetApprovalRules() const{ return m_approvalRules; }
|
|
|
|
/**
|
|
* <p>A set of rules used to include patches in the baseline.</p>
|
|
*/
|
|
inline void SetApprovalRules(const PatchRuleGroup& value) { m_approvalRules = value; }
|
|
|
|
/**
|
|
* <p>A set of rules used to include patches in the baseline.</p>
|
|
*/
|
|
inline void SetApprovalRules(PatchRuleGroup&& value) { m_approvalRules = std::move(value); }
|
|
|
|
/**
|
|
* <p>A set of rules used to include patches in the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovalRules(const PatchRuleGroup& value) { SetApprovalRules(value); return *this;}
|
|
|
|
/**
|
|
* <p>A set of rules used to include patches in the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovalRules(PatchRuleGroup&& value) { SetApprovalRules(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetApprovedPatches() const{ return m_approvedPatches; }
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline void SetApprovedPatches(const Aws::Vector<Aws::String>& value) { m_approvedPatches = value; }
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline void SetApprovedPatches(Aws::Vector<Aws::String>&& value) { m_approvedPatches = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovedPatches(const Aws::Vector<Aws::String>& value) { SetApprovedPatches(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovedPatches(Aws::Vector<Aws::String>&& value) { SetApprovedPatches(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddApprovedPatches(const Aws::String& value) { m_approvedPatches.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddApprovedPatches(Aws::String&& value) { m_approvedPatches.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of explicitly approved patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddApprovedPatches(const char* value) { m_approvedPatches.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The compliance severity level assigned to the patch baseline after the update
|
|
* completed.</p>
|
|
*/
|
|
inline const PatchComplianceLevel& GetApprovedPatchesComplianceLevel() const{ return m_approvedPatchesComplianceLevel; }
|
|
|
|
/**
|
|
* <p>The compliance severity level assigned to the patch baseline after the update
|
|
* completed.</p>
|
|
*/
|
|
inline void SetApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { m_approvedPatchesComplianceLevel = value; }
|
|
|
|
/**
|
|
* <p>The compliance severity level assigned to the patch baseline after the update
|
|
* completed.</p>
|
|
*/
|
|
inline void SetApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { m_approvedPatchesComplianceLevel = std::move(value); }
|
|
|
|
/**
|
|
* <p>The compliance severity level assigned to the patch baseline after the update
|
|
* completed.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovedPatchesComplianceLevel(const PatchComplianceLevel& value) { SetApprovedPatchesComplianceLevel(value); return *this;}
|
|
|
|
/**
|
|
* <p>The compliance severity level assigned to the patch baseline after the update
|
|
* completed.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovedPatchesComplianceLevel(PatchComplianceLevel&& value) { SetApprovedPatchesComplianceLevel(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether the list of approved patches includes non-security updates
|
|
* that should be applied to the instances. The default value is 'false'. Applies
|
|
* to Linux instances only.</p>
|
|
*/
|
|
inline bool GetApprovedPatchesEnableNonSecurity() const{ return m_approvedPatchesEnableNonSecurity; }
|
|
|
|
/**
|
|
* <p>Indicates whether the list of approved patches includes non-security updates
|
|
* that should be applied to the instances. The default value is 'false'. Applies
|
|
* to Linux instances only.</p>
|
|
*/
|
|
inline void SetApprovedPatchesEnableNonSecurity(bool value) { m_approvedPatchesEnableNonSecurity = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether the list of approved patches includes non-security updates
|
|
* that should be applied to the instances. The default value is 'false'. Applies
|
|
* to Linux instances only.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithApprovedPatchesEnableNonSecurity(bool value) { SetApprovedPatchesEnableNonSecurity(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetRejectedPatches() const{ return m_rejectedPatches; }
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline void SetRejectedPatches(const Aws::Vector<Aws::String>& value) { m_rejectedPatches = value; }
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline void SetRejectedPatches(Aws::Vector<Aws::String>&& value) { m_rejectedPatches = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithRejectedPatches(const Aws::Vector<Aws::String>& value) { SetRejectedPatches(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithRejectedPatches(Aws::Vector<Aws::String>&& value) { SetRejectedPatches(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddRejectedPatches(const Aws::String& value) { m_rejectedPatches.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddRejectedPatches(Aws::String&& value) { m_rejectedPatches.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of explicitly rejected patches for the baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddRejectedPatches(const char* value) { m_rejectedPatches.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The action specified to take on patches included in the RejectedPatches list.
|
|
* A patch can be allowed only if it is a dependency of another package, or blocked
|
|
* entirely along with packages that include it as a dependency.</p>
|
|
*/
|
|
inline const PatchAction& GetRejectedPatchesAction() const{ return m_rejectedPatchesAction; }
|
|
|
|
/**
|
|
* <p>The action specified to take on patches included in the RejectedPatches list.
|
|
* A patch can be allowed only if it is a dependency of another package, or blocked
|
|
* entirely along with packages that include it as a dependency.</p>
|
|
*/
|
|
inline void SetRejectedPatchesAction(const PatchAction& value) { m_rejectedPatchesAction = value; }
|
|
|
|
/**
|
|
* <p>The action specified to take on patches included in the RejectedPatches list.
|
|
* A patch can be allowed only if it is a dependency of another package, or blocked
|
|
* entirely along with packages that include it as a dependency.</p>
|
|
*/
|
|
inline void SetRejectedPatchesAction(PatchAction&& value) { m_rejectedPatchesAction = std::move(value); }
|
|
|
|
/**
|
|
* <p>The action specified to take on patches included in the RejectedPatches list.
|
|
* A patch can be allowed only if it is a dependency of another package, or blocked
|
|
* entirely along with packages that include it as a dependency.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithRejectedPatchesAction(const PatchAction& value) { SetRejectedPatchesAction(value); return *this;}
|
|
|
|
/**
|
|
* <p>The action specified to take on patches included in the RejectedPatches list.
|
|
* A patch can be allowed only if it is a dependency of another package, or blocked
|
|
* entirely along with packages that include it as a dependency.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithRejectedPatchesAction(PatchAction&& value) { SetRejectedPatchesAction(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was created.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was created.</p>
|
|
*/
|
|
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was created.</p>
|
|
*/
|
|
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was created.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was created.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was last modified.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetModifiedDate() const{ return m_modifiedDate; }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was last modified.</p>
|
|
*/
|
|
inline void SetModifiedDate(const Aws::Utils::DateTime& value) { m_modifiedDate = value; }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was last modified.</p>
|
|
*/
|
|
inline void SetModifiedDate(Aws::Utils::DateTime&& value) { m_modifiedDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was last modified.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithModifiedDate(const Aws::Utils::DateTime& value) { SetModifiedDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date when the patch baseline was last modified.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithModifiedDate(Aws::Utils::DateTime&& value) { SetModifiedDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A description of the Patch Baseline.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline const Aws::Vector<PatchSource>& GetSources() const{ return m_sources; }
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline void SetSources(const Aws::Vector<PatchSource>& value) { m_sources = value; }
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline void SetSources(Aws::Vector<PatchSource>&& value) { m_sources = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithSources(const Aws::Vector<PatchSource>& value) { SetSources(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& WithSources(Aws::Vector<PatchSource>&& value) { SetSources(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddSources(const PatchSource& value) { m_sources.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Information about the patches to use to update the instances, including
|
|
* target operating systems and source repositories. Applies to Linux instances
|
|
* only.</p>
|
|
*/
|
|
inline UpdatePatchBaselineResult& AddSources(PatchSource&& value) { m_sources.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_baselineId;
|
|
|
|
Aws::String m_name;
|
|
|
|
OperatingSystem m_operatingSystem;
|
|
|
|
PatchFilterGroup m_globalFilters;
|
|
|
|
PatchRuleGroup m_approvalRules;
|
|
|
|
Aws::Vector<Aws::String> m_approvedPatches;
|
|
|
|
PatchComplianceLevel m_approvedPatchesComplianceLevel;
|
|
|
|
bool m_approvedPatchesEnableNonSecurity;
|
|
|
|
Aws::Vector<Aws::String> m_rejectedPatches;
|
|
|
|
PatchAction m_rejectedPatchesAction;
|
|
|
|
Aws::Utils::DateTime m_createdDate;
|
|
|
|
Aws::Utils::DateTime m_modifiedDate;
|
|
|
|
Aws::String m_description;
|
|
|
|
Aws::Vector<PatchSource> m_sources;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SSM
|
|
} // namespace Aws
|