All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.macie2.model.SecurityHubConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Macie 2 module holds the client classes that are used for communicating with Amazon Macie 2 Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.macie2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies configuration settings that determine which findings are published to Security Hub automatically. For * information about how Macie publishes findings to Security Hub, see Amazon Macie integration with * Security Hub in the Amazon Macie User Guide. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SecurityHubConfiguration implements Serializable, Cloneable, StructuredPojo { /** *

* Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default * value is false. *

*/ private Boolean publishClassificationFindings; /** *

* Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The * default value is true. *

*/ private Boolean publishPolicyFindings; /** *

* Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default * value is false. *

* * @param publishClassificationFindings * Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, * Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings * filter. The default value is false. */ public void setPublishClassificationFindings(Boolean publishClassificationFindings) { this.publishClassificationFindings = publishClassificationFindings; } /** *

* Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default * value is false. *

* * @return Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, * Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings * filter. The default value is false. */ public Boolean getPublishClassificationFindings() { return this.publishClassificationFindings; } /** *

* Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default * value is false. *

* * @param publishClassificationFindings * Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, * Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings * filter. The default value is false. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityHubConfiguration withPublishClassificationFindings(Boolean publishClassificationFindings) { setPublishClassificationFindings(publishClassificationFindings); return this; } /** *

* Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all sensitive data findings that weren't suppressed by a findings filter. The default * value is false. *

* * @return Specifies whether to publish sensitive data findings to Security Hub. If you set this value to true, * Amazon Macie automatically publishes all sensitive data findings that weren't suppressed by a findings * filter. The default value is false. */ public Boolean isPublishClassificationFindings() { return this.publishClassificationFindings; } /** *

* Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The * default value is true. *

* * @param publishPolicyFindings * Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. * The default value is true. */ public void setPublishPolicyFindings(Boolean publishPolicyFindings) { this.publishPolicyFindings = publishPolicyFindings; } /** *

* Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The * default value is true. *

* * @return Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. * The default value is true. */ public Boolean getPublishPolicyFindings() { return this.publishPolicyFindings; } /** *

* Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The * default value is true. *

* * @param publishPolicyFindings * Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. * The default value is true. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityHubConfiguration withPublishPolicyFindings(Boolean publishPolicyFindings) { setPublishPolicyFindings(publishPolicyFindings); return this; } /** *

* Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. The * default value is true. *

* * @return Specifies whether to publish policy findings to Security Hub. If you set this value to true, Amazon Macie * automatically publishes all new and updated policy findings that weren't suppressed by a findings filter. * The default value is true. */ public Boolean isPublishPolicyFindings() { return this.publishPolicyFindings; } /** * 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 (getPublishClassificationFindings() != null) sb.append("PublishClassificationFindings: ").append(getPublishClassificationFindings()).append(","); if (getPublishPolicyFindings() != null) sb.append("PublishPolicyFindings: ").append(getPublishPolicyFindings()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SecurityHubConfiguration == false) return false; SecurityHubConfiguration other = (SecurityHubConfiguration) obj; if (other.getPublishClassificationFindings() == null ^ this.getPublishClassificationFindings() == null) return false; if (other.getPublishClassificationFindings() != null && other.getPublishClassificationFindings().equals(this.getPublishClassificationFindings()) == false) return false; if (other.getPublishPolicyFindings() == null ^ this.getPublishPolicyFindings() == null) return false; if (other.getPublishPolicyFindings() != null && other.getPublishPolicyFindings().equals(this.getPublishPolicyFindings()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPublishClassificationFindings() == null) ? 0 : getPublishClassificationFindings().hashCode()); hashCode = prime * hashCode + ((getPublishPolicyFindings() == null) ? 0 : getPublishPolicyFindings().hashCode()); return hashCode; } @Override public SecurityHubConfiguration clone() { try { return (SecurityHubConfiguration) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.macie2.model.transform.SecurityHubConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy