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

com.amazonaws.services.auditmanager.model.Settings Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Audit Manager module holds the client classes that are used for communicating with AWS Audit Manager Service

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

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

/**
 * 

* The settings object that holds all supported Audit Manager settings. *

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

* Specifies whether Organizations is enabled. *

*/ private Boolean isAwsOrgEnabled; /** *

* The designated Amazon Simple Notification Service (Amazon SNS) topic. *

*/ private String snsTopic; /** *

* The default S3 destination bucket for storing assessment reports. *

*/ private AssessmentReportsDestination defaultAssessmentReportsDestination; /** *

* The designated default audit owners. *

*/ private java.util.List defaultProcessOwners; /** *

* The KMS key details. *

*/ private String kmsKey; /** *

* The current evidence finder status and event data store details. *

*/ private EvidenceFinderEnablement evidenceFinderEnablement; /** *

* The deregistration policy for your Audit Manager data. You can use this attribute to determine how your data is * handled when you deregister Audit Manager. *

*/ private DeregistrationPolicy deregistrationPolicy; /** *

* The default S3 destination bucket for storing evidence finder exports. *

*/ private DefaultExportDestination defaultExportDestination; /** *

* Specifies whether Organizations is enabled. *

* * @param isAwsOrgEnabled * Specifies whether Organizations is enabled. */ public void setIsAwsOrgEnabled(Boolean isAwsOrgEnabled) { this.isAwsOrgEnabled = isAwsOrgEnabled; } /** *

* Specifies whether Organizations is enabled. *

* * @return Specifies whether Organizations is enabled. */ public Boolean getIsAwsOrgEnabled() { return this.isAwsOrgEnabled; } /** *

* Specifies whether Organizations is enabled. *

* * @param isAwsOrgEnabled * Specifies whether Organizations is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withIsAwsOrgEnabled(Boolean isAwsOrgEnabled) { setIsAwsOrgEnabled(isAwsOrgEnabled); return this; } /** *

* Specifies whether Organizations is enabled. *

* * @return Specifies whether Organizations is enabled. */ public Boolean isAwsOrgEnabled() { return this.isAwsOrgEnabled; } /** *

* The designated Amazon Simple Notification Service (Amazon SNS) topic. *

* * @param snsTopic * The designated Amazon Simple Notification Service (Amazon SNS) topic. */ public void setSnsTopic(String snsTopic) { this.snsTopic = snsTopic; } /** *

* The designated Amazon Simple Notification Service (Amazon SNS) topic. *

* * @return The designated Amazon Simple Notification Service (Amazon SNS) topic. */ public String getSnsTopic() { return this.snsTopic; } /** *

* The designated Amazon Simple Notification Service (Amazon SNS) topic. *

* * @param snsTopic * The designated Amazon Simple Notification Service (Amazon SNS) topic. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withSnsTopic(String snsTopic) { setSnsTopic(snsTopic); return this; } /** *

* The default S3 destination bucket for storing assessment reports. *

* * @param defaultAssessmentReportsDestination * The default S3 destination bucket for storing assessment reports. */ public void setDefaultAssessmentReportsDestination(AssessmentReportsDestination defaultAssessmentReportsDestination) { this.defaultAssessmentReportsDestination = defaultAssessmentReportsDestination; } /** *

* The default S3 destination bucket for storing assessment reports. *

* * @return The default S3 destination bucket for storing assessment reports. */ public AssessmentReportsDestination getDefaultAssessmentReportsDestination() { return this.defaultAssessmentReportsDestination; } /** *

* The default S3 destination bucket for storing assessment reports. *

* * @param defaultAssessmentReportsDestination * The default S3 destination bucket for storing assessment reports. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withDefaultAssessmentReportsDestination(AssessmentReportsDestination defaultAssessmentReportsDestination) { setDefaultAssessmentReportsDestination(defaultAssessmentReportsDestination); return this; } /** *

* The designated default audit owners. *

* * @return The designated default audit owners. */ public java.util.List getDefaultProcessOwners() { return defaultProcessOwners; } /** *

* The designated default audit owners. *

* * @param defaultProcessOwners * The designated default audit owners. */ public void setDefaultProcessOwners(java.util.Collection defaultProcessOwners) { if (defaultProcessOwners == null) { this.defaultProcessOwners = null; return; } this.defaultProcessOwners = new java.util.ArrayList(defaultProcessOwners); } /** *

* The designated default audit owners. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDefaultProcessOwners(java.util.Collection)} or {@link #withDefaultProcessOwners(java.util.Collection)} * if you want to override the existing values. *

* * @param defaultProcessOwners * The designated default audit owners. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withDefaultProcessOwners(Role... defaultProcessOwners) { if (this.defaultProcessOwners == null) { setDefaultProcessOwners(new java.util.ArrayList(defaultProcessOwners.length)); } for (Role ele : defaultProcessOwners) { this.defaultProcessOwners.add(ele); } return this; } /** *

* The designated default audit owners. *

* * @param defaultProcessOwners * The designated default audit owners. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withDefaultProcessOwners(java.util.Collection defaultProcessOwners) { setDefaultProcessOwners(defaultProcessOwners); return this; } /** *

* The KMS key details. *

* * @param kmsKey * The KMS key details. */ public void setKmsKey(String kmsKey) { this.kmsKey = kmsKey; } /** *

* The KMS key details. *

* * @return The KMS key details. */ public String getKmsKey() { return this.kmsKey; } /** *

* The KMS key details. *

* * @param kmsKey * The KMS key details. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withKmsKey(String kmsKey) { setKmsKey(kmsKey); return this; } /** *

* The current evidence finder status and event data store details. *

* * @param evidenceFinderEnablement * The current evidence finder status and event data store details. */ public void setEvidenceFinderEnablement(EvidenceFinderEnablement evidenceFinderEnablement) { this.evidenceFinderEnablement = evidenceFinderEnablement; } /** *

* The current evidence finder status and event data store details. *

* * @return The current evidence finder status and event data store details. */ public EvidenceFinderEnablement getEvidenceFinderEnablement() { return this.evidenceFinderEnablement; } /** *

* The current evidence finder status and event data store details. *

* * @param evidenceFinderEnablement * The current evidence finder status and event data store details. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withEvidenceFinderEnablement(EvidenceFinderEnablement evidenceFinderEnablement) { setEvidenceFinderEnablement(evidenceFinderEnablement); return this; } /** *

* The deregistration policy for your Audit Manager data. You can use this attribute to determine how your data is * handled when you deregister Audit Manager. *

* * @param deregistrationPolicy * The deregistration policy for your Audit Manager data. You can use this attribute to determine how your * data is handled when you deregister Audit Manager. */ public void setDeregistrationPolicy(DeregistrationPolicy deregistrationPolicy) { this.deregistrationPolicy = deregistrationPolicy; } /** *

* The deregistration policy for your Audit Manager data. You can use this attribute to determine how your data is * handled when you deregister Audit Manager. *

* * @return The deregistration policy for your Audit Manager data. You can use this attribute to determine how your * data is handled when you deregister Audit Manager. */ public DeregistrationPolicy getDeregistrationPolicy() { return this.deregistrationPolicy; } /** *

* The deregistration policy for your Audit Manager data. You can use this attribute to determine how your data is * handled when you deregister Audit Manager. *

* * @param deregistrationPolicy * The deregistration policy for your Audit Manager data. You can use this attribute to determine how your * data is handled when you deregister Audit Manager. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withDeregistrationPolicy(DeregistrationPolicy deregistrationPolicy) { setDeregistrationPolicy(deregistrationPolicy); return this; } /** *

* The default S3 destination bucket for storing evidence finder exports. *

* * @param defaultExportDestination * The default S3 destination bucket for storing evidence finder exports. */ public void setDefaultExportDestination(DefaultExportDestination defaultExportDestination) { this.defaultExportDestination = defaultExportDestination; } /** *

* The default S3 destination bucket for storing evidence finder exports. *

* * @return The default S3 destination bucket for storing evidence finder exports. */ public DefaultExportDestination getDefaultExportDestination() { return this.defaultExportDestination; } /** *

* The default S3 destination bucket for storing evidence finder exports. *

* * @param defaultExportDestination * The default S3 destination bucket for storing evidence finder exports. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withDefaultExportDestination(DefaultExportDestination defaultExportDestination) { setDefaultExportDestination(defaultExportDestination); 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 (getIsAwsOrgEnabled() != null) sb.append("IsAwsOrgEnabled: ").append(getIsAwsOrgEnabled()).append(","); if (getSnsTopic() != null) sb.append("SnsTopic: ").append("***Sensitive Data Redacted***").append(","); if (getDefaultAssessmentReportsDestination() != null) sb.append("DefaultAssessmentReportsDestination: ").append("***Sensitive Data Redacted***").append(","); if (getDefaultProcessOwners() != null) sb.append("DefaultProcessOwners: ").append("***Sensitive Data Redacted***").append(","); if (getKmsKey() != null) sb.append("KmsKey: ").append(getKmsKey()).append(","); if (getEvidenceFinderEnablement() != null) sb.append("EvidenceFinderEnablement: ").append(getEvidenceFinderEnablement()).append(","); if (getDeregistrationPolicy() != null) sb.append("DeregistrationPolicy: ").append(getDeregistrationPolicy()).append(","); if (getDefaultExportDestination() != null) sb.append("DefaultExportDestination: ").append(getDefaultExportDestination()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Settings == false) return false; Settings other = (Settings) obj; if (other.getIsAwsOrgEnabled() == null ^ this.getIsAwsOrgEnabled() == null) return false; if (other.getIsAwsOrgEnabled() != null && other.getIsAwsOrgEnabled().equals(this.getIsAwsOrgEnabled()) == false) return false; if (other.getSnsTopic() == null ^ this.getSnsTopic() == null) return false; if (other.getSnsTopic() != null && other.getSnsTopic().equals(this.getSnsTopic()) == false) return false; if (other.getDefaultAssessmentReportsDestination() == null ^ this.getDefaultAssessmentReportsDestination() == null) return false; if (other.getDefaultAssessmentReportsDestination() != null && other.getDefaultAssessmentReportsDestination().equals(this.getDefaultAssessmentReportsDestination()) == false) return false; if (other.getDefaultProcessOwners() == null ^ this.getDefaultProcessOwners() == null) return false; if (other.getDefaultProcessOwners() != null && other.getDefaultProcessOwners().equals(this.getDefaultProcessOwners()) == false) return false; if (other.getKmsKey() == null ^ this.getKmsKey() == null) return false; if (other.getKmsKey() != null && other.getKmsKey().equals(this.getKmsKey()) == false) return false; if (other.getEvidenceFinderEnablement() == null ^ this.getEvidenceFinderEnablement() == null) return false; if (other.getEvidenceFinderEnablement() != null && other.getEvidenceFinderEnablement().equals(this.getEvidenceFinderEnablement()) == false) return false; if (other.getDeregistrationPolicy() == null ^ this.getDeregistrationPolicy() == null) return false; if (other.getDeregistrationPolicy() != null && other.getDeregistrationPolicy().equals(this.getDeregistrationPolicy()) == false) return false; if (other.getDefaultExportDestination() == null ^ this.getDefaultExportDestination() == null) return false; if (other.getDefaultExportDestination() != null && other.getDefaultExportDestination().equals(this.getDefaultExportDestination()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIsAwsOrgEnabled() == null) ? 0 : getIsAwsOrgEnabled().hashCode()); hashCode = prime * hashCode + ((getSnsTopic() == null) ? 0 : getSnsTopic().hashCode()); hashCode = prime * hashCode + ((getDefaultAssessmentReportsDestination() == null) ? 0 : getDefaultAssessmentReportsDestination().hashCode()); hashCode = prime * hashCode + ((getDefaultProcessOwners() == null) ? 0 : getDefaultProcessOwners().hashCode()); hashCode = prime * hashCode + ((getKmsKey() == null) ? 0 : getKmsKey().hashCode()); hashCode = prime * hashCode + ((getEvidenceFinderEnablement() == null) ? 0 : getEvidenceFinderEnablement().hashCode()); hashCode = prime * hashCode + ((getDeregistrationPolicy() == null) ? 0 : getDeregistrationPolicy().hashCode()); hashCode = prime * hashCode + ((getDefaultExportDestination() == null) ? 0 : getDefaultExportDestination().hashCode()); return hashCode; } @Override public Settings clone() { try { return (Settings) 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.auditmanager.model.transform.SettingsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy