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

com.amazonaws.services.dataexchange.model.SchemaChangeRequestDetails Maven / Gradle / Ivy

Go to download

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

The 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.dataexchange.model;

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

/**
 * 

* Extra details specific to this schema change type notification. *

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

* List of schema changes happening in the scope of this notification. This can have up to 100 entries. *

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

* A date in the future when the schema change is taking effect. *

*/ private java.util.Date schemaChangeAt; /** *

* List of schema changes happening in the scope of this notification. This can have up to 100 entries. *

* * @return List of schema changes happening in the scope of this notification. This can have up to 100 entries. */ public java.util.List getChanges() { return changes; } /** *

* List of schema changes happening in the scope of this notification. This can have up to 100 entries. *

* * @param changes * List of schema changes happening in the scope of this notification. This can have up to 100 entries. */ public void setChanges(java.util.Collection changes) { if (changes == null) { this.changes = null; return; } this.changes = new java.util.ArrayList(changes); } /** *

* List of schema changes happening in the scope of this notification. This can have up to 100 entries. *

*

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

* * @param changes * List of schema changes happening in the scope of this notification. This can have up to 100 entries. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaChangeRequestDetails withChanges(SchemaChangeDetails... changes) { if (this.changes == null) { setChanges(new java.util.ArrayList(changes.length)); } for (SchemaChangeDetails ele : changes) { this.changes.add(ele); } return this; } /** *

* List of schema changes happening in the scope of this notification. This can have up to 100 entries. *

* * @param changes * List of schema changes happening in the scope of this notification. This can have up to 100 entries. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaChangeRequestDetails withChanges(java.util.Collection changes) { setChanges(changes); return this; } /** *

* A date in the future when the schema change is taking effect. *

* * @param schemaChangeAt * A date in the future when the schema change is taking effect. */ public void setSchemaChangeAt(java.util.Date schemaChangeAt) { this.schemaChangeAt = schemaChangeAt; } /** *

* A date in the future when the schema change is taking effect. *

* * @return A date in the future when the schema change is taking effect. */ public java.util.Date getSchemaChangeAt() { return this.schemaChangeAt; } /** *

* A date in the future when the schema change is taking effect. *

* * @param schemaChangeAt * A date in the future when the schema change is taking effect. * @return Returns a reference to this object so that method calls can be chained together. */ public SchemaChangeRequestDetails withSchemaChangeAt(java.util.Date schemaChangeAt) { setSchemaChangeAt(schemaChangeAt); 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 (getChanges() != null) sb.append("Changes: ").append(getChanges()).append(","); if (getSchemaChangeAt() != null) sb.append("SchemaChangeAt: ").append(getSchemaChangeAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SchemaChangeRequestDetails == false) return false; SchemaChangeRequestDetails other = (SchemaChangeRequestDetails) obj; if (other.getChanges() == null ^ this.getChanges() == null) return false; if (other.getChanges() != null && other.getChanges().equals(this.getChanges()) == false) return false; if (other.getSchemaChangeAt() == null ^ this.getSchemaChangeAt() == null) return false; if (other.getSchemaChangeAt() != null && other.getSchemaChangeAt().equals(this.getSchemaChangeAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChanges() == null) ? 0 : getChanges().hashCode()); hashCode = prime * hashCode + ((getSchemaChangeAt() == null) ? 0 : getSchemaChangeAt().hashCode()); return hashCode; } @Override public SchemaChangeRequestDetails clone() { try { return (SchemaChangeRequestDetails) 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.dataexchange.model.transform.SchemaChangeRequestDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy