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

com.amazonaws.services.macie2.model.BatchGetCustomDataIdentifiersResult 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;

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

    /**
     * 

* An array of objects, one for each custom data identifier that matches the criteria specified in the request. *

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

* An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but * doesn't correlate to an existing custom data identifier. *

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

* An array of objects, one for each custom data identifier that matches the criteria specified in the request. *

* * @return An array of objects, one for each custom data identifier that matches the criteria specified in the * request. */ public java.util.List getCustomDataIdentifiers() { return customDataIdentifiers; } /** *

* An array of objects, one for each custom data identifier that matches the criteria specified in the request. *

* * @param customDataIdentifiers * An array of objects, one for each custom data identifier that matches the criteria specified in the * request. */ public void setCustomDataIdentifiers(java.util.Collection customDataIdentifiers) { if (customDataIdentifiers == null) { this.customDataIdentifiers = null; return; } this.customDataIdentifiers = new java.util.ArrayList(customDataIdentifiers); } /** *

* An array of objects, one for each custom data identifier that matches the criteria specified in the request. *

*

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

* * @param customDataIdentifiers * An array of objects, one for each custom data identifier that matches the criteria specified in the * request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetCustomDataIdentifiersResult withCustomDataIdentifiers(BatchGetCustomDataIdentifierSummary... customDataIdentifiers) { if (this.customDataIdentifiers == null) { setCustomDataIdentifiers(new java.util.ArrayList(customDataIdentifiers.length)); } for (BatchGetCustomDataIdentifierSummary ele : customDataIdentifiers) { this.customDataIdentifiers.add(ele); } return this; } /** *

* An array of objects, one for each custom data identifier that matches the criteria specified in the request. *

* * @param customDataIdentifiers * An array of objects, one for each custom data identifier that matches the criteria specified in the * request. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetCustomDataIdentifiersResult withCustomDataIdentifiers(java.util.Collection customDataIdentifiers) { setCustomDataIdentifiers(customDataIdentifiers); return this; } /** *

* An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but * doesn't correlate to an existing custom data identifier. *

* * @return An array of custom data identifier IDs, one for each custom data identifier that was specified in the * request but doesn't correlate to an existing custom data identifier. */ public java.util.List getNotFoundIdentifierIds() { return notFoundIdentifierIds; } /** *

* An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but * doesn't correlate to an existing custom data identifier. *

* * @param notFoundIdentifierIds * An array of custom data identifier IDs, one for each custom data identifier that was specified in the * request but doesn't correlate to an existing custom data identifier. */ public void setNotFoundIdentifierIds(java.util.Collection notFoundIdentifierIds) { if (notFoundIdentifierIds == null) { this.notFoundIdentifierIds = null; return; } this.notFoundIdentifierIds = new java.util.ArrayList(notFoundIdentifierIds); } /** *

* An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but * doesn't correlate to an existing custom data identifier. *

*

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

* * @param notFoundIdentifierIds * An array of custom data identifier IDs, one for each custom data identifier that was specified in the * request but doesn't correlate to an existing custom data identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetCustomDataIdentifiersResult withNotFoundIdentifierIds(String... notFoundIdentifierIds) { if (this.notFoundIdentifierIds == null) { setNotFoundIdentifierIds(new java.util.ArrayList(notFoundIdentifierIds.length)); } for (String ele : notFoundIdentifierIds) { this.notFoundIdentifierIds.add(ele); } return this; } /** *

* An array of custom data identifier IDs, one for each custom data identifier that was specified in the request but * doesn't correlate to an existing custom data identifier. *

* * @param notFoundIdentifierIds * An array of custom data identifier IDs, one for each custom data identifier that was specified in the * request but doesn't correlate to an existing custom data identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetCustomDataIdentifiersResult withNotFoundIdentifierIds(java.util.Collection notFoundIdentifierIds) { setNotFoundIdentifierIds(notFoundIdentifierIds); 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 (getCustomDataIdentifiers() != null) sb.append("CustomDataIdentifiers: ").append(getCustomDataIdentifiers()).append(","); if (getNotFoundIdentifierIds() != null) sb.append("NotFoundIdentifierIds: ").append(getNotFoundIdentifierIds()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchGetCustomDataIdentifiersResult == false) return false; BatchGetCustomDataIdentifiersResult other = (BatchGetCustomDataIdentifiersResult) obj; if (other.getCustomDataIdentifiers() == null ^ this.getCustomDataIdentifiers() == null) return false; if (other.getCustomDataIdentifiers() != null && other.getCustomDataIdentifiers().equals(this.getCustomDataIdentifiers()) == false) return false; if (other.getNotFoundIdentifierIds() == null ^ this.getNotFoundIdentifierIds() == null) return false; if (other.getNotFoundIdentifierIds() != null && other.getNotFoundIdentifierIds().equals(this.getNotFoundIdentifierIds()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomDataIdentifiers() == null) ? 0 : getCustomDataIdentifiers().hashCode()); hashCode = prime * hashCode + ((getNotFoundIdentifierIds() == null) ? 0 : getNotFoundIdentifierIds().hashCode()); return hashCode; } @Override public BatchGetCustomDataIdentifiersResult clone() { try { return (BatchGetCustomDataIdentifiersResult) 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