/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details for an individual security standard control. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StandardsControl implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the security standard control. *
*/ private String standardsControlArn; /** ** The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. *
*/ private String controlStatus; /** ** The reason provided for the most recent change in status for the control. *
*/ private String disabledReason; /** ** The date and time that the status of the security standard control was most recently updated. *
*/ private java.util.Date controlStatusUpdatedAt; /** ** The identifier of the security standard control. *
*/ private String controlId; /** ** The title of the security standard control. *
*/ private String title; /** ** The longer description of the security standard control. Provides information about what the control is checking * for. *
*/ private String description; /** ** A link to remediation information for the control in the Security Hub user documentation. *
*/ private String remediationUrl; /** ** The severity of findings generated from this security standard control. *
** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. *
*/ private String severityRating; /** ** The list of requirements that are related to this control. *
*/ private java.util.List* The ARN of the security standard control. *
* * @param standardsControlArn * The ARN of the security standard control. */ public void setStandardsControlArn(String standardsControlArn) { this.standardsControlArn = standardsControlArn; } /** ** The ARN of the security standard control. *
* * @return The ARN of the security standard control. */ public String getStandardsControlArn() { return this.standardsControlArn; } /** ** The ARN of the security standard control. *
* * @param standardsControlArn * The ARN of the security standard control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withStandardsControlArn(String standardsControlArn) { setStandardsControlArn(standardsControlArn); return this; } /** ** The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. *
* * @param controlStatus * The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. * @see ControlStatus */ public void setControlStatus(String controlStatus) { this.controlStatus = controlStatus; } /** ** The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. *
* * @return The current status of the security standard control. Indicates whether the control is enabled or * disabled. Security Hub does not check against disabled controls. * @see ControlStatus */ public String getControlStatus() { return this.controlStatus; } /** ** The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. *
* * @param controlStatus * The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. * @return Returns a reference to this object so that method calls can be chained together. * @see ControlStatus */ public StandardsControl withControlStatus(String controlStatus) { setControlStatus(controlStatus); return this; } /** ** The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. *
* * @param controlStatus * The current status of the security standard control. Indicates whether the control is enabled or disabled. * Security Hub does not check against disabled controls. * @return Returns a reference to this object so that method calls can be chained together. * @see ControlStatus */ public StandardsControl withControlStatus(ControlStatus controlStatus) { this.controlStatus = controlStatus.toString(); return this; } /** ** The reason provided for the most recent change in status for the control. *
* * @param disabledReason * The reason provided for the most recent change in status for the control. */ public void setDisabledReason(String disabledReason) { this.disabledReason = disabledReason; } /** ** The reason provided for the most recent change in status for the control. *
* * @return The reason provided for the most recent change in status for the control. */ public String getDisabledReason() { return this.disabledReason; } /** ** The reason provided for the most recent change in status for the control. *
* * @param disabledReason * The reason provided for the most recent change in status for the control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withDisabledReason(String disabledReason) { setDisabledReason(disabledReason); return this; } /** ** The date and time that the status of the security standard control was most recently updated. *
* * @param controlStatusUpdatedAt * The date and time that the status of the security standard control was most recently updated. */ public void setControlStatusUpdatedAt(java.util.Date controlStatusUpdatedAt) { this.controlStatusUpdatedAt = controlStatusUpdatedAt; } /** ** The date and time that the status of the security standard control was most recently updated. *
* * @return The date and time that the status of the security standard control was most recently updated. */ public java.util.Date getControlStatusUpdatedAt() { return this.controlStatusUpdatedAt; } /** ** The date and time that the status of the security standard control was most recently updated. *
* * @param controlStatusUpdatedAt * The date and time that the status of the security standard control was most recently updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withControlStatusUpdatedAt(java.util.Date controlStatusUpdatedAt) { setControlStatusUpdatedAt(controlStatusUpdatedAt); return this; } /** ** The identifier of the security standard control. *
* * @param controlId * The identifier of the security standard control. */ public void setControlId(String controlId) { this.controlId = controlId; } /** ** The identifier of the security standard control. *
* * @return The identifier of the security standard control. */ public String getControlId() { return this.controlId; } /** ** The identifier of the security standard control. *
* * @param controlId * The identifier of the security standard control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withControlId(String controlId) { setControlId(controlId); return this; } /** ** The title of the security standard control. *
* * @param title * The title of the security standard control. */ public void setTitle(String title) { this.title = title; } /** ** The title of the security standard control. *
* * @return The title of the security standard control. */ public String getTitle() { return this.title; } /** ** The title of the security standard control. *
* * @param title * The title of the security standard control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withTitle(String title) { setTitle(title); return this; } /** ** The longer description of the security standard control. Provides information about what the control is checking * for. *
* * @param description * The longer description of the security standard control. Provides information about what the control is * checking for. */ public void setDescription(String description) { this.description = description; } /** ** The longer description of the security standard control. Provides information about what the control is checking * for. *
* * @return The longer description of the security standard control. Provides information about what the control is * checking for. */ public String getDescription() { return this.description; } /** ** The longer description of the security standard control. Provides information about what the control is checking * for. *
* * @param description * The longer description of the security standard control. Provides information about what the control is * checking for. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withDescription(String description) { setDescription(description); return this; } /** ** A link to remediation information for the control in the Security Hub user documentation. *
* * @param remediationUrl * A link to remediation information for the control in the Security Hub user documentation. */ public void setRemediationUrl(String remediationUrl) { this.remediationUrl = remediationUrl; } /** ** A link to remediation information for the control in the Security Hub user documentation. *
* * @return A link to remediation information for the control in the Security Hub user documentation. */ public String getRemediationUrl() { return this.remediationUrl; } /** ** A link to remediation information for the control in the Security Hub user documentation. *
* * @param remediationUrl * A link to remediation information for the control in the Security Hub user documentation. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withRemediationUrl(String remediationUrl) { setRemediationUrl(remediationUrl); return this; } /** ** The severity of findings generated from this security standard control. *
** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. *
* * @param severityRating * The severity of findings generated from this security standard control. ** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. * @see SeverityRating */ public void setSeverityRating(String severityRating) { this.severityRating = severityRating; } /** *
* The severity of findings generated from this security standard control. *
** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. *
* * @return The severity of findings generated from this security standard control. ** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. * @see SeverityRating */ public String getSeverityRating() { return this.severityRating; } /** *
* The severity of findings generated from this security standard control. *
** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. *
* * @param severityRating * The severity of findings generated from this security standard control. ** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. * @return Returns a reference to this object so that method calls can be chained together. * @see SeverityRating */ public StandardsControl withSeverityRating(String severityRating) { setSeverityRating(severityRating); return this; } /** *
* The severity of findings generated from this security standard control. *
** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. *
* * @param severityRating * The severity of findings generated from this security standard control. ** The finding severity is based on an assessment of how easy it would be to compromise Amazon Web Services * resources if the issue is detected. * @return Returns a reference to this object so that method calls can be chained together. * @see SeverityRating */ public StandardsControl withSeverityRating(SeverityRating severityRating) { this.severityRating = severityRating.toString(); return this; } /** *
* The list of requirements that are related to this control. *
* * @return The list of requirements that are related to this control. */ public java.util.List* The list of requirements that are related to this control. *
* * @param relatedRequirements * The list of requirements that are related to this control. */ public void setRelatedRequirements(java.util.Collection* The list of requirements that are related to this control. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRelatedRequirements(java.util.Collection)} or {@link #withRelatedRequirements(java.util.Collection)} * if you want to override the existing values. *
* * @param relatedRequirements * The list of requirements that are related to this control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withRelatedRequirements(String... relatedRequirements) { if (this.relatedRequirements == null) { setRelatedRequirements(new java.util.ArrayList* The list of requirements that are related to this control. *
* * @param relatedRequirements * The list of requirements that are related to this control. * @return Returns a reference to this object so that method calls can be chained together. */ public StandardsControl withRelatedRequirements(java.util.Collection