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

com.amazonaws.services.securityhub.model.BatchGetConfigurationPolicyAssociationsResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* Describes associations for the target accounts, OUs, or the root. *

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

* An array of configuration policy associations, one for each configuration policy association identifier, that was * specified in the request but couldn’t be processed due to an error. *

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

* Describes associations for the target accounts, OUs, or the root. *

* * @return Describes associations for the target accounts, OUs, or the root. */ public java.util.List getConfigurationPolicyAssociations() { return configurationPolicyAssociations; } /** *

* Describes associations for the target accounts, OUs, or the root. *

* * @param configurationPolicyAssociations * Describes associations for the target accounts, OUs, or the root. */ public void setConfigurationPolicyAssociations(java.util.Collection configurationPolicyAssociations) { if (configurationPolicyAssociations == null) { this.configurationPolicyAssociations = null; return; } this.configurationPolicyAssociations = new java.util.ArrayList(configurationPolicyAssociations); } /** *

* Describes associations for the target accounts, OUs, or the root. *

*

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

* * @param configurationPolicyAssociations * Describes associations for the target accounts, OUs, or the root. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetConfigurationPolicyAssociationsResult withConfigurationPolicyAssociations( ConfigurationPolicyAssociationSummary... configurationPolicyAssociations) { if (this.configurationPolicyAssociations == null) { setConfigurationPolicyAssociations(new java.util.ArrayList(configurationPolicyAssociations.length)); } for (ConfigurationPolicyAssociationSummary ele : configurationPolicyAssociations) { this.configurationPolicyAssociations.add(ele); } return this; } /** *

* Describes associations for the target accounts, OUs, or the root. *

* * @param configurationPolicyAssociations * Describes associations for the target accounts, OUs, or the root. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetConfigurationPolicyAssociationsResult withConfigurationPolicyAssociations( java.util.Collection configurationPolicyAssociations) { setConfigurationPolicyAssociations(configurationPolicyAssociations); return this; } /** *

* An array of configuration policy associations, one for each configuration policy association identifier, that was * specified in the request but couldn’t be processed due to an error. *

* * @return An array of configuration policy associations, one for each configuration policy association identifier, * that was specified in the request but couldn’t be processed due to an error. */ public java.util.List getUnprocessedConfigurationPolicyAssociations() { return unprocessedConfigurationPolicyAssociations; } /** *

* An array of configuration policy associations, one for each configuration policy association identifier, that was * specified in the request but couldn’t be processed due to an error. *

* * @param unprocessedConfigurationPolicyAssociations * An array of configuration policy associations, one for each configuration policy association identifier, * that was specified in the request but couldn’t be processed due to an error. */ public void setUnprocessedConfigurationPolicyAssociations( java.util.Collection unprocessedConfigurationPolicyAssociations) { if (unprocessedConfigurationPolicyAssociations == null) { this.unprocessedConfigurationPolicyAssociations = null; return; } this.unprocessedConfigurationPolicyAssociations = new java.util.ArrayList( unprocessedConfigurationPolicyAssociations); } /** *

* An array of configuration policy associations, one for each configuration policy association identifier, that was * specified in the request but couldn’t be processed due to an error. *

*

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

* * @param unprocessedConfigurationPolicyAssociations * An array of configuration policy associations, one for each configuration policy association identifier, * that was specified in the request but couldn’t be processed due to an error. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetConfigurationPolicyAssociationsResult withUnprocessedConfigurationPolicyAssociations( UnprocessedConfigurationPolicyAssociation... unprocessedConfigurationPolicyAssociations) { if (this.unprocessedConfigurationPolicyAssociations == null) { setUnprocessedConfigurationPolicyAssociations(new java.util.ArrayList( unprocessedConfigurationPolicyAssociations.length)); } for (UnprocessedConfigurationPolicyAssociation ele : unprocessedConfigurationPolicyAssociations) { this.unprocessedConfigurationPolicyAssociations.add(ele); } return this; } /** *

* An array of configuration policy associations, one for each configuration policy association identifier, that was * specified in the request but couldn’t be processed due to an error. *

* * @param unprocessedConfigurationPolicyAssociations * An array of configuration policy associations, one for each configuration policy association identifier, * that was specified in the request but couldn’t be processed due to an error. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetConfigurationPolicyAssociationsResult withUnprocessedConfigurationPolicyAssociations( java.util.Collection unprocessedConfigurationPolicyAssociations) { setUnprocessedConfigurationPolicyAssociations(unprocessedConfigurationPolicyAssociations); 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 (getConfigurationPolicyAssociations() != null) sb.append("ConfigurationPolicyAssociations: ").append(getConfigurationPolicyAssociations()).append(","); if (getUnprocessedConfigurationPolicyAssociations() != null) sb.append("UnprocessedConfigurationPolicyAssociations: ").append(getUnprocessedConfigurationPolicyAssociations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchGetConfigurationPolicyAssociationsResult == false) return false; BatchGetConfigurationPolicyAssociationsResult other = (BatchGetConfigurationPolicyAssociationsResult) obj; if (other.getConfigurationPolicyAssociations() == null ^ this.getConfigurationPolicyAssociations() == null) return false; if (other.getConfigurationPolicyAssociations() != null && other.getConfigurationPolicyAssociations().equals(this.getConfigurationPolicyAssociations()) == false) return false; if (other.getUnprocessedConfigurationPolicyAssociations() == null ^ this.getUnprocessedConfigurationPolicyAssociations() == null) return false; if (other.getUnprocessedConfigurationPolicyAssociations() != null && other.getUnprocessedConfigurationPolicyAssociations().equals(this.getUnprocessedConfigurationPolicyAssociations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationPolicyAssociations() == null) ? 0 : getConfigurationPolicyAssociations().hashCode()); hashCode = prime * hashCode + ((getUnprocessedConfigurationPolicyAssociations() == null) ? 0 : getUnprocessedConfigurationPolicyAssociations().hashCode()); return hashCode; } @Override public BatchGetConfigurationPolicyAssociationsResult clone() { try { return (BatchGetConfigurationPolicyAssociationsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy