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

com.amazonaws.services.kinesisanalytics.model.ApplicationSummary 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.778
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.kinesisanalytics.model;

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

/**
 * 
 * 

* This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. * Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation. *

*
*

* Provides application summary information, including the application Amazon Resource Name (ARN), name, and status. *

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

* Name of the application. *

*/ private String applicationName; /** *

* ARN of the application. *

*/ private String applicationARN; /** *

* Status of the application. *

*/ private String applicationStatus; /** *

* Name of the application. *

* * @param applicationName * Name of the application. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* Name of the application. *

* * @return Name of the application. */ public String getApplicationName() { return this.applicationName; } /** *

* Name of the application. *

* * @param applicationName * Name of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationSummary withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* ARN of the application. *

* * @param applicationARN * ARN of the application. */ public void setApplicationARN(String applicationARN) { this.applicationARN = applicationARN; } /** *

* ARN of the application. *

* * @return ARN of the application. */ public String getApplicationARN() { return this.applicationARN; } /** *

* ARN of the application. *

* * @param applicationARN * ARN of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationSummary withApplicationARN(String applicationARN) { setApplicationARN(applicationARN); return this; } /** *

* Status of the application. *

* * @param applicationStatus * Status of the application. * @see ApplicationStatus */ public void setApplicationStatus(String applicationStatus) { this.applicationStatus = applicationStatus; } /** *

* Status of the application. *

* * @return Status of the application. * @see ApplicationStatus */ public String getApplicationStatus() { return this.applicationStatus; } /** *

* Status of the application. *

* * @param applicationStatus * Status of the application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationStatus */ public ApplicationSummary withApplicationStatus(String applicationStatus) { setApplicationStatus(applicationStatus); return this; } /** *

* Status of the application. *

* * @param applicationStatus * Status of the application. * @see ApplicationStatus */ public void setApplicationStatus(ApplicationStatus applicationStatus) { withApplicationStatus(applicationStatus); } /** *

* Status of the application. *

* * @param applicationStatus * Status of the application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationStatus */ public ApplicationSummary withApplicationStatus(ApplicationStatus applicationStatus) { this.applicationStatus = applicationStatus.toString(); 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 (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getApplicationARN() != null) sb.append("ApplicationARN: ").append(getApplicationARN()).append(","); if (getApplicationStatus() != null) sb.append("ApplicationStatus: ").append(getApplicationStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ApplicationSummary == false) return false; ApplicationSummary other = (ApplicationSummary) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getApplicationARN() == null ^ this.getApplicationARN() == null) return false; if (other.getApplicationARN() != null && other.getApplicationARN().equals(this.getApplicationARN()) == false) return false; if (other.getApplicationStatus() == null ^ this.getApplicationStatus() == null) return false; if (other.getApplicationStatus() != null && other.getApplicationStatus().equals(this.getApplicationStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getApplicationARN() == null) ? 0 : getApplicationARN().hashCode()); hashCode = prime * hashCode + ((getApplicationStatus() == null) ? 0 : getApplicationStatus().hashCode()); return hashCode; } @Override public ApplicationSummary clone() { try { return (ApplicationSummary) 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.ApplicationSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy