/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

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

*/ class ComplianceItem { public: AWS_SSM_API ComplianceItem(); AWS_SSM_API ComplianceItem(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API ComplianceItem& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline const Aws::String& GetComplianceType() const{ return m_complianceType; } /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; } /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; } /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); } /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); } /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline ComplianceItem& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;} /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline ComplianceItem& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;} /** *

The compliance type. For example, Association (for a State Manager * association), Patch, or Custom:string are all valid compliance * types.

*/ inline ComplianceItem& WithComplianceType(const char* value) { SetComplianceType(value); return *this;} /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline ComplianceItem& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline ComplianceItem& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The type of resource. ManagedInstance is currently the only * supported resource type.

*/ inline ComplianceItem& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

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::Map& GetDetails() const{ return m_details; } /** *

A "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::Map& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

A "Key": "Value" tag combination for the compliance item.

*/ inline void SetDetails(Aws::Map&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

A "Key": "Value" tag combination for the compliance item.

*/ inline ComplianceItem& WithDetails(const Aws::Map& value) { SetDetails(value); return *this;} /** *

A "Key": "Value" tag combination for the compliance item.

*/ inline ComplianceItem& WithDetails(Aws::Map&& value) { SetDetails(std::move(value)); return *this;} /** *

A "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 m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws