/**
* 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 compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
The compliance type. For example, Association (for a State Manager
* association), Patch, or Custom:string
are all valid compliance
* types.
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.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
The type of resource. ManagedInstance
is currently the only
* supported resource type.
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; } /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline ComplianceItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *An ID for the resource. For a managed node, this is the node ID.
*/ inline ComplianceItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *An ID for the resource. For a managed node, this is the node ID.
*/ 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; } /** *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 bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *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 void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *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 void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *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 void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *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 ComplianceItem& WithId(const Aws::String& value) { SetId(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 ComplianceItem& WithId(Aws::String&& value) { SetId(std::move(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 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; } /** *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 bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *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 void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *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 void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *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 void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *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 ComplianceItem& WithTitle(const Aws::String& value) { SetTitle(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 ComplianceItem& WithTitle(Aws::String&& value) { SetTitle(std::move(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 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; } /** *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 bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *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 void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *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 void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *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 ComplianceItem& WithStatus(const ComplianceStatus& value) { SetStatus(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 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; } /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; } /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ inline ComplianceItem& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;} /** *The severity of the compliance status. Severity can be one of the following: * Critical, High, Medium, Low, Informational, Unspecified.
*/ 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; } /** *A summary for the compliance item. The summary includes an execution ID, the * execution type (for example, command), and the execution time.
*/ inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; } /** *A summary for the compliance item. The summary includes an execution ID, the * execution type (for example, command), and the execution time.
*/ inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; } /** *A summary for the compliance item. The summary includes an execution ID, the * execution type (for example, command), and the execution time.
*/ inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); } /** *A summary for the compliance item. The summary includes an execution ID, the * execution type (for example, command), and the execution time.
*/ inline ComplianceItem& WithExecutionSummary(const ComplianceExecutionSummary& value) { SetExecutionSummary(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 ComplianceItem& WithExecutionSummary(ComplianceExecutionSummary&& value) { SetExecutionSummary(std::move(value)); return *this;} /** *A "Key": "Value" tag combination for the compliance item.
*/ inline const Aws::MapA "Key": "Value" tag combination for the compliance item.
*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline void SetDetails(const Aws::MapA "Key": "Value" tag combination for the compliance item.
*/ inline void SetDetails(Aws::MapA "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& WithDetails(const Aws::MapA "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& WithDetails(Aws::MapA "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; } /** *A "Key": "Value" tag combination for the compliance item.
*/ inline ComplianceItem& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; } private: Aws::String m_complianceType; bool m_complianceTypeHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; ComplianceStatus m_status; bool m_statusHasBeenSet = false; ComplianceSeverity m_severity; bool m_severityHasBeenSet = false; ComplianceExecutionSummary m_executionSummary; bool m_executionSummaryHasBeenSet = false; Aws::Map