com.amazonaws.services.securityhub.model.UpdateSecurityHubConfigurationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* 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.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateSecurityHubConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
*
* By default, this is set to true
, and new controls are enabled automatically. To not automatically
* enable new controls, set this to false
.
*
*/
private Boolean autoEnableControls;
/**
*
* Updates whether the calling account has consolidated control findings turned on. If the value for this field is
* set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the
* check applies to multiple enabled standards.
*
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for
* a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator account.
*
*/
private String controlFindingGenerator;
/**
*
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
*
* By default, this is set to true
, and new controls are enabled automatically. To not automatically
* enable new controls, set this to false
.
*
*
* @param autoEnableControls
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
* By default, this is set to true
, and new controls are enabled automatically. To not
* automatically enable new controls, set this to false
.
*/
public void setAutoEnableControls(Boolean autoEnableControls) {
this.autoEnableControls = autoEnableControls;
}
/**
*
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
*
* By default, this is set to true
, and new controls are enabled automatically. To not automatically
* enable new controls, set this to false
.
*
*
* @return Whether to automatically enable new controls when they are added to standards that are enabled.
*
* By default, this is set to true
, and new controls are enabled automatically. To not
* automatically enable new controls, set this to false
.
*/
public Boolean getAutoEnableControls() {
return this.autoEnableControls;
}
/**
*
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
*
* By default, this is set to true
, and new controls are enabled automatically. To not automatically
* enable new controls, set this to false
.
*
*
* @param autoEnableControls
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
* By default, this is set to true
, and new controls are enabled automatically. To not
* automatically enable new controls, set this to false
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityHubConfigurationRequest withAutoEnableControls(Boolean autoEnableControls) {
setAutoEnableControls(autoEnableControls);
return this;
}
/**
*
* Whether to automatically enable new controls when they are added to standards that are enabled.
*
*
* By default, this is set to true
, and new controls are enabled automatically. To not automatically
* enable new controls, set this to false
.
*
*
* @return Whether to automatically enable new controls when they are added to standards that are enabled.
*
* By default, this is set to true
, and new controls are enabled automatically. To not
* automatically enable new controls, set this to false
.
*/
public Boolean isAutoEnableControls() {
return this.autoEnableControls;
}
/**
*
* Updates whether the calling account has consolidated control findings turned on. If the value for this field is
* set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the
* check applies to multiple enabled standards.
*
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for
* a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator account.
*
*
* @param controlFindingGenerator
* Updates whether the calling account has consolidated control findings turned on. If the value for this
* field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check
* even when the check applies to multiple enabled standards.
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate
* findings for a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator
* account.
* @see ControlFindingGenerator
*/
public void setControlFindingGenerator(String controlFindingGenerator) {
this.controlFindingGenerator = controlFindingGenerator;
}
/**
*
* Updates whether the calling account has consolidated control findings turned on. If the value for this field is
* set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the
* check applies to multiple enabled standards.
*
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for
* a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator account.
*
*
* @return Updates whether the calling account has consolidated control findings turned on. If the value for this
* field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control
* check even when the check applies to multiple enabled standards.
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate
* findings for a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator
* account.
* @see ControlFindingGenerator
*/
public String getControlFindingGenerator() {
return this.controlFindingGenerator;
}
/**
*
* Updates whether the calling account has consolidated control findings turned on. If the value for this field is
* set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the
* check applies to multiple enabled standards.
*
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for
* a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator account.
*
*
* @param controlFindingGenerator
* Updates whether the calling account has consolidated control findings turned on. If the value for this
* field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check
* even when the check applies to multiple enabled standards.
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate
* findings for a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator
* account.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ControlFindingGenerator
*/
public UpdateSecurityHubConfigurationRequest withControlFindingGenerator(String controlFindingGenerator) {
setControlFindingGenerator(controlFindingGenerator);
return this;
}
/**
*
* Updates whether the calling account has consolidated control findings turned on. If the value for this field is
* set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the
* check applies to multiple enabled standards.
*
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for
* a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator account.
*
*
* @param controlFindingGenerator
* Updates whether the calling account has consolidated control findings turned on. If the value for this
* field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check
* even when the check applies to multiple enabled standards.
*
* If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate
* findings for a control check when the check applies to multiple enabled standards.
*
*
* For accounts that are part of an organization, this value can only be updated in the administrator
* account.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ControlFindingGenerator
*/
public UpdateSecurityHubConfigurationRequest withControlFindingGenerator(ControlFindingGenerator controlFindingGenerator) {
this.controlFindingGenerator = controlFindingGenerator.toString();
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAutoEnableControls() != null)
sb.append("AutoEnableControls: ").append(getAutoEnableControls()).append(",");
if (getControlFindingGenerator() != null)
sb.append("ControlFindingGenerator: ").append(getControlFindingGenerator());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateSecurityHubConfigurationRequest == false)
return false;
UpdateSecurityHubConfigurationRequest other = (UpdateSecurityHubConfigurationRequest) obj;
if (other.getAutoEnableControls() == null ^ this.getAutoEnableControls() == null)
return false;
if (other.getAutoEnableControls() != null && other.getAutoEnableControls().equals(this.getAutoEnableControls()) == false)
return false;
if (other.getControlFindingGenerator() == null ^ this.getControlFindingGenerator() == null)
return false;
if (other.getControlFindingGenerator() != null && other.getControlFindingGenerator().equals(this.getControlFindingGenerator()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAutoEnableControls() == null) ? 0 : getAutoEnableControls().hashCode());
hashCode = prime * hashCode + ((getControlFindingGenerator() == null) ? 0 : getControlFindingGenerator().hashCode());
return hashCode;
}
@Override
public UpdateSecurityHubConfigurationRequest clone() {
return (UpdateSecurityHubConfigurationRequest) super.clone();
}
}