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

com.amazonaws.services.kinesisanalytics.model.ApplicationUpdate Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2013-2018 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.kinesisanalytics.model;

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

/**
 * 

* Describes updates to apply to an existing Amazon Kinesis Analytics application. *

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

* Describes application input configuration updates. *

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

* Describes application code updates. *

*/ private String applicationCodeUpdate; /** *

* Describes application output configuration updates. *

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

* Describes application reference data source updates. *

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

* Describes application CloudWatch logging option updates. *

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

* Describes application input configuration updates. *

* * @return Describes application input configuration updates. */ public java.util.List getInputUpdates() { return inputUpdates; } /** *

* Describes application input configuration updates. *

* * @param inputUpdates * Describes application input configuration updates. */ public void setInputUpdates(java.util.Collection inputUpdates) { if (inputUpdates == null) { this.inputUpdates = null; return; } this.inputUpdates = new java.util.ArrayList(inputUpdates); } /** *

* Describes application input configuration updates. *

*

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

* * @param inputUpdates * Describes application input configuration updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withInputUpdates(InputUpdate... inputUpdates) { if (this.inputUpdates == null) { setInputUpdates(new java.util.ArrayList(inputUpdates.length)); } for (InputUpdate ele : inputUpdates) { this.inputUpdates.add(ele); } return this; } /** *

* Describes application input configuration updates. *

* * @param inputUpdates * Describes application input configuration updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withInputUpdates(java.util.Collection inputUpdates) { setInputUpdates(inputUpdates); return this; } /** *

* Describes application code updates. *

* * @param applicationCodeUpdate * Describes application code updates. */ public void setApplicationCodeUpdate(String applicationCodeUpdate) { this.applicationCodeUpdate = applicationCodeUpdate; } /** *

* Describes application code updates. *

* * @return Describes application code updates. */ public String getApplicationCodeUpdate() { return this.applicationCodeUpdate; } /** *

* Describes application code updates. *

* * @param applicationCodeUpdate * Describes application code updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withApplicationCodeUpdate(String applicationCodeUpdate) { setApplicationCodeUpdate(applicationCodeUpdate); return this; } /** *

* Describes application output configuration updates. *

* * @return Describes application output configuration updates. */ public java.util.List getOutputUpdates() { return outputUpdates; } /** *

* Describes application output configuration updates. *

* * @param outputUpdates * Describes application output configuration updates. */ public void setOutputUpdates(java.util.Collection outputUpdates) { if (outputUpdates == null) { this.outputUpdates = null; return; } this.outputUpdates = new java.util.ArrayList(outputUpdates); } /** *

* Describes application output configuration updates. *

*

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

* * @param outputUpdates * Describes application output configuration updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withOutputUpdates(OutputUpdate... outputUpdates) { if (this.outputUpdates == null) { setOutputUpdates(new java.util.ArrayList(outputUpdates.length)); } for (OutputUpdate ele : outputUpdates) { this.outputUpdates.add(ele); } return this; } /** *

* Describes application output configuration updates. *

* * @param outputUpdates * Describes application output configuration updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withOutputUpdates(java.util.Collection outputUpdates) { setOutputUpdates(outputUpdates); return this; } /** *

* Describes application reference data source updates. *

* * @return Describes application reference data source updates. */ public java.util.List getReferenceDataSourceUpdates() { return referenceDataSourceUpdates; } /** *

* Describes application reference data source updates. *

* * @param referenceDataSourceUpdates * Describes application reference data source updates. */ public void setReferenceDataSourceUpdates(java.util.Collection referenceDataSourceUpdates) { if (referenceDataSourceUpdates == null) { this.referenceDataSourceUpdates = null; return; } this.referenceDataSourceUpdates = new java.util.ArrayList(referenceDataSourceUpdates); } /** *

* Describes application reference data source updates. *

*

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

* * @param referenceDataSourceUpdates * Describes application reference data source updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withReferenceDataSourceUpdates(ReferenceDataSourceUpdate... referenceDataSourceUpdates) { if (this.referenceDataSourceUpdates == null) { setReferenceDataSourceUpdates(new java.util.ArrayList(referenceDataSourceUpdates.length)); } for (ReferenceDataSourceUpdate ele : referenceDataSourceUpdates) { this.referenceDataSourceUpdates.add(ele); } return this; } /** *

* Describes application reference data source updates. *

* * @param referenceDataSourceUpdates * Describes application reference data source updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withReferenceDataSourceUpdates(java.util.Collection referenceDataSourceUpdates) { setReferenceDataSourceUpdates(referenceDataSourceUpdates); return this; } /** *

* Describes application CloudWatch logging option updates. *

* * @return Describes application CloudWatch logging option updates. */ public java.util.List getCloudWatchLoggingOptionUpdates() { return cloudWatchLoggingOptionUpdates; } /** *

* Describes application CloudWatch logging option updates. *

* * @param cloudWatchLoggingOptionUpdates * Describes application CloudWatch logging option updates. */ public void setCloudWatchLoggingOptionUpdates(java.util.Collection cloudWatchLoggingOptionUpdates) { if (cloudWatchLoggingOptionUpdates == null) { this.cloudWatchLoggingOptionUpdates = null; return; } this.cloudWatchLoggingOptionUpdates = new java.util.ArrayList(cloudWatchLoggingOptionUpdates); } /** *

* Describes application CloudWatch logging option updates. *

*

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

* * @param cloudWatchLoggingOptionUpdates * Describes application CloudWatch logging option updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withCloudWatchLoggingOptionUpdates(CloudWatchLoggingOptionUpdate... cloudWatchLoggingOptionUpdates) { if (this.cloudWatchLoggingOptionUpdates == null) { setCloudWatchLoggingOptionUpdates(new java.util.ArrayList(cloudWatchLoggingOptionUpdates.length)); } for (CloudWatchLoggingOptionUpdate ele : cloudWatchLoggingOptionUpdates) { this.cloudWatchLoggingOptionUpdates.add(ele); } return this; } /** *

* Describes application CloudWatch logging option updates. *

* * @param cloudWatchLoggingOptionUpdates * Describes application CloudWatch logging option updates. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationUpdate withCloudWatchLoggingOptionUpdates(java.util.Collection cloudWatchLoggingOptionUpdates) { setCloudWatchLoggingOptionUpdates(cloudWatchLoggingOptionUpdates); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getInputUpdates() != null) sb.append("InputUpdates: ").append(getInputUpdates()).append(","); if (getApplicationCodeUpdate() != null) sb.append("ApplicationCodeUpdate: ").append(getApplicationCodeUpdate()).append(","); if (getOutputUpdates() != null) sb.append("OutputUpdates: ").append(getOutputUpdates()).append(","); if (getReferenceDataSourceUpdates() != null) sb.append("ReferenceDataSourceUpdates: ").append(getReferenceDataSourceUpdates()).append(","); if (getCloudWatchLoggingOptionUpdates() != null) sb.append("CloudWatchLoggingOptionUpdates: ").append(getCloudWatchLoggingOptionUpdates()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationUpdate == false) return false; ApplicationUpdate other = (ApplicationUpdate) obj; if (other.getInputUpdates() == null ^ this.getInputUpdates() == null) return false; if (other.getInputUpdates() != null && other.getInputUpdates().equals(this.getInputUpdates()) == false) return false; if (other.getApplicationCodeUpdate() == null ^ this.getApplicationCodeUpdate() == null) return false; if (other.getApplicationCodeUpdate() != null && other.getApplicationCodeUpdate().equals(this.getApplicationCodeUpdate()) == false) return false; if (other.getOutputUpdates() == null ^ this.getOutputUpdates() == null) return false; if (other.getOutputUpdates() != null && other.getOutputUpdates().equals(this.getOutputUpdates()) == false) return false; if (other.getReferenceDataSourceUpdates() == null ^ this.getReferenceDataSourceUpdates() == null) return false; if (other.getReferenceDataSourceUpdates() != null && other.getReferenceDataSourceUpdates().equals(this.getReferenceDataSourceUpdates()) == false) return false; if (other.getCloudWatchLoggingOptionUpdates() == null ^ this.getCloudWatchLoggingOptionUpdates() == null) return false; if (other.getCloudWatchLoggingOptionUpdates() != null && other.getCloudWatchLoggingOptionUpdates().equals(this.getCloudWatchLoggingOptionUpdates()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInputUpdates() == null) ? 0 : getInputUpdates().hashCode()); hashCode = prime * hashCode + ((getApplicationCodeUpdate() == null) ? 0 : getApplicationCodeUpdate().hashCode()); hashCode = prime * hashCode + ((getOutputUpdates() == null) ? 0 : getOutputUpdates().hashCode()); hashCode = prime * hashCode + ((getReferenceDataSourceUpdates() == null) ? 0 : getReferenceDataSourceUpdates().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptionUpdates() == null) ? 0 : getCloudWatchLoggingOptionUpdates().hashCode()); return hashCode; } @Override public ApplicationUpdate clone() { try { return (ApplicationUpdate) 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.kinesisanalytics.model.transform.ApplicationUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy