/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the compliance as defined by the resource type. For
* example, for a patch resource type, Items includes information
* about the PatchSeverity, Classification, and so on.See Also:
* AWS
* API Reference
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string are all valid compliance
* types.
The type of resource. ManagedInstance is currently the only
* supported resource type.
An ID for the resource. For a managed node, this is the node ID.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } inline ComplianceItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} inline ComplianceItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} inline ComplianceItem& WithResourceId(const char* value) { SetResourceId(value); return *this;} ///@} ///@{ /** *An ID for the compliance item. For example, if the compliance item is a * Windows patch, the ID could be the number of the KB article; for example: * KB4010320.
*/ inline const Aws::String& GetId() const{ return m_id; } inline bool IdHasBeenSet() const { return m_idHasBeenSet; } inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } inline ComplianceItem& WithId(const Aws::String& value) { SetId(value); return *this;} inline ComplianceItem& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} inline ComplianceItem& WithId(const char* value) { SetId(value); return *this;} ///@} ///@{ /** *A title for the compliance item. For example, if the compliance item is a * Windows patch, the title could be the title of the KB article for the patch; for * example: Security Update for Active Directory Federation Services.
*/ inline const Aws::String& GetTitle() const{ return m_title; } inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } inline ComplianceItem& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} inline ComplianceItem& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} inline ComplianceItem& WithTitle(const char* value) { SetTitle(value); return *this;} ///@} ///@{ /** *The status of the compliance item. An item is either COMPLIANT, * NON_COMPLIANT, or an empty string (for Windows patches that aren't * applicable).
*/ inline const ComplianceStatus& GetStatus() const{ return m_status; } inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; } inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } inline ComplianceItem& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;} inline ComplianceItem& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;} ///@} ///@{ /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ inline const ComplianceSeverity& GetSeverity() const{ return m_severity; } inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } inline ComplianceItem& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;} inline ComplianceItem& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;} ///@} ///@{ /** *A summary for the compliance item. The summary includes an execution ID, the * execution type (for example, command), and the execution time.
*/ inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; } inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; } inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; } inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); } inline ComplianceItem& WithExecutionSummary(const ComplianceExecutionSummary& value) { SetExecutionSummary(value); return *this;} inline ComplianceItem& WithExecutionSummary(ComplianceExecutionSummary&& value) { SetExecutionSummary(std::move(value)); return *this;} ///@} ///@{ /** *A "Key": "Value" tag combination for the compliance item.
*/ inline const Aws::Map