/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a compliance item. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComplianceItemEntry implements Serializable, Cloneable, StructuredPojo { /** ** The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number of the * KB article. *
*/ private String id; /** ** The title of 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. *
*/ private String title; /** ** The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. *
*/ private String severity; /** ** The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. *
*/ private String status; /** ** A "Key": "Value" tag combination for the compliance item. *
*/ private java.util.Map* The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number of the * KB article. *
* * @param id * The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number * of the KB article. */ public void setId(String id) { this.id = id; } /** ** The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number of the * KB article. *
* * @return The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the * number of the KB article. */ public String getId() { return this.id; } /** ** The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number of the * KB article. *
* * @param id * The compliance item ID. For example, if the compliance item is a Windows patch, the ID could be the number * of the KB article. * @return Returns a reference to this object so that method calls can be chained together. */ public ComplianceItemEntry withId(String id) { setId(id); return this; } /** ** The title of 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. *
* * @param title * The title of 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. */ public void setTitle(String title) { this.title = title; } /** ** The title of 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. *
* * @return The title of 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. */ public String getTitle() { return this.title; } /** ** The title of 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. *
* * @param title * The title of 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ComplianceItemEntry withTitle(String title) { setTitle(title); return this; } /** ** The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. *
* * @param severity * The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. * @see ComplianceSeverity */ public void setSeverity(String severity) { this.severity = severity; } /** ** The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. *
* * @return The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. * @see ComplianceSeverity */ public String getSeverity() { return this.severity; } /** ** The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. *
* * @param severity * The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. * @return Returns a reference to this object so that method calls can be chained together. * @see ComplianceSeverity */ public ComplianceItemEntry withSeverity(String severity) { setSeverity(severity); return this; } /** ** The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. *
* * @param severity * The severity of the compliance status. Severity can be one of the following: Critical, High, Medium, Low, * Informational, Unspecified. * @return Returns a reference to this object so that method calls can be chained together. * @see ComplianceSeverity */ public ComplianceItemEntry withSeverity(ComplianceSeverity severity) { this.severity = severity.toString(); return this; } /** ** The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. *
* * @param status * The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. * @see ComplianceStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. *
* * @return The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. * @see ComplianceStatus */ public String getStatus() { return this.status; } /** ** The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. *
* * @param status * The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. * @return Returns a reference to this object so that method calls can be chained together. * @see ComplianceStatus */ public ComplianceItemEntry withStatus(String status) { setStatus(status); return this; } /** ** The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. *
* * @param status * The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT. * @return Returns a reference to this object so that method calls can be chained together. * @see ComplianceStatus */ public ComplianceItemEntry withStatus(ComplianceStatus status) { this.status = status.toString(); return this; } /** ** A "Key": "Value" tag combination for the compliance item. *
* * @return A "Key": "Value" tag combination for the compliance item. */ public java.util.Map* A "Key": "Value" tag combination for the compliance item. *
* * @param details * A "Key": "Value" tag combination for the compliance item. */ public void setDetails(java.util.Map* A "Key": "Value" tag combination for the compliance item. *
* * @param details * A "Key": "Value" tag combination for the compliance item. * @return Returns a reference to this object so that method calls can be chained together. */ public ComplianceItemEntry withDetails(java.util.Map