com.amazonaws.services.panorama.model.DescribeApplicationInstanceResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-panorama Show documentation
/*
* 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.panorama.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeApplicationInstanceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The application instance's ID.
*
*/
private String applicationInstanceId;
/**
*
* The ID of the application instance that this instance replaced.
*
*/
private String applicationInstanceIdToReplace;
/**
*
* The application instance's ARN.
*
*/
private String arn;
/**
*
* When the application instance was created.
*
*/
private java.util.Date createdTime;
/**
*
* The device's ID.
*
*/
private String defaultRuntimeContextDevice;
/**
*
* The device's bane.
*
*/
private String defaultRuntimeContextDeviceName;
/**
*
* The application instance's description.
*
*/
private String description;
/**
*
* The application instance's health status.
*
*/
private String healthStatus;
/**
*
* The application instance was updated.
*
*/
private java.util.Date lastUpdatedTime;
/**
*
* The application instance's name.
*
*/
private String name;
/**
*
* The application instance's state.
*
*/
private java.util.List runtimeContextStates;
/**
*
* The application instance's runtime role ARN.
*
*/
private String runtimeRoleArn;
/**
*
* The application instance's status.
*
*/
private String status;
/**
*
* The application instance's status description.
*
*/
private String statusDescription;
/**
*
* The application instance's tags.
*
*/
private java.util.Map tags;
/**
*
* The application instance's ID.
*
*
* @param applicationInstanceId
* The application instance's ID.
*/
public void setApplicationInstanceId(String applicationInstanceId) {
this.applicationInstanceId = applicationInstanceId;
}
/**
*
* The application instance's ID.
*
*
* @return The application instance's ID.
*/
public String getApplicationInstanceId() {
return this.applicationInstanceId;
}
/**
*
* The application instance's ID.
*
*
* @param applicationInstanceId
* The application instance's ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withApplicationInstanceId(String applicationInstanceId) {
setApplicationInstanceId(applicationInstanceId);
return this;
}
/**
*
* The ID of the application instance that this instance replaced.
*
*
* @param applicationInstanceIdToReplace
* The ID of the application instance that this instance replaced.
*/
public void setApplicationInstanceIdToReplace(String applicationInstanceIdToReplace) {
this.applicationInstanceIdToReplace = applicationInstanceIdToReplace;
}
/**
*
* The ID of the application instance that this instance replaced.
*
*
* @return The ID of the application instance that this instance replaced.
*/
public String getApplicationInstanceIdToReplace() {
return this.applicationInstanceIdToReplace;
}
/**
*
* The ID of the application instance that this instance replaced.
*
*
* @param applicationInstanceIdToReplace
* The ID of the application instance that this instance replaced.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withApplicationInstanceIdToReplace(String applicationInstanceIdToReplace) {
setApplicationInstanceIdToReplace(applicationInstanceIdToReplace);
return this;
}
/**
*
* The application instance's ARN.
*
*
* @param arn
* The application instance's ARN.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The application instance's ARN.
*
*
* @return The application instance's ARN.
*/
public String getArn() {
return this.arn;
}
/**
*
* The application instance's ARN.
*
*
* @param arn
* The application instance's ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* When the application instance was created.
*
*
* @param createdTime
* When the application instance was created.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* When the application instance was created.
*
*
* @return When the application instance was created.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* When the application instance was created.
*
*
* @param createdTime
* When the application instance was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The device's ID.
*
*
* @param defaultRuntimeContextDevice
* The device's ID.
*/
public void setDefaultRuntimeContextDevice(String defaultRuntimeContextDevice) {
this.defaultRuntimeContextDevice = defaultRuntimeContextDevice;
}
/**
*
* The device's ID.
*
*
* @return The device's ID.
*/
public String getDefaultRuntimeContextDevice() {
return this.defaultRuntimeContextDevice;
}
/**
*
* The device's ID.
*
*
* @param defaultRuntimeContextDevice
* The device's ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withDefaultRuntimeContextDevice(String defaultRuntimeContextDevice) {
setDefaultRuntimeContextDevice(defaultRuntimeContextDevice);
return this;
}
/**
*
* The device's bane.
*
*
* @param defaultRuntimeContextDeviceName
* The device's bane.
*/
public void setDefaultRuntimeContextDeviceName(String defaultRuntimeContextDeviceName) {
this.defaultRuntimeContextDeviceName = defaultRuntimeContextDeviceName;
}
/**
*
* The device's bane.
*
*
* @return The device's bane.
*/
public String getDefaultRuntimeContextDeviceName() {
return this.defaultRuntimeContextDeviceName;
}
/**
*
* The device's bane.
*
*
* @param defaultRuntimeContextDeviceName
* The device's bane.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withDefaultRuntimeContextDeviceName(String defaultRuntimeContextDeviceName) {
setDefaultRuntimeContextDeviceName(defaultRuntimeContextDeviceName);
return this;
}
/**
*
* The application instance's description.
*
*
* @param description
* The application instance's description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The application instance's description.
*
*
* @return The application instance's description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The application instance's description.
*
*
* @param description
* The application instance's description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The application instance's health status.
*
*
* @param healthStatus
* The application instance's health status.
* @see ApplicationInstanceHealthStatus
*/
public void setHealthStatus(String healthStatus) {
this.healthStatus = healthStatus;
}
/**
*
* The application instance's health status.
*
*
* @return The application instance's health status.
* @see ApplicationInstanceHealthStatus
*/
public String getHealthStatus() {
return this.healthStatus;
}
/**
*
* The application instance's health status.
*
*
* @param healthStatus
* The application instance's health status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationInstanceHealthStatus
*/
public DescribeApplicationInstanceResult withHealthStatus(String healthStatus) {
setHealthStatus(healthStatus);
return this;
}
/**
*
* The application instance's health status.
*
*
* @param healthStatus
* The application instance's health status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationInstanceHealthStatus
*/
public DescribeApplicationInstanceResult withHealthStatus(ApplicationInstanceHealthStatus healthStatus) {
this.healthStatus = healthStatus.toString();
return this;
}
/**
*
* The application instance was updated.
*
*
* @param lastUpdatedTime
* The application instance was updated.
*/
public void setLastUpdatedTime(java.util.Date lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
}
/**
*
* The application instance was updated.
*
*
* @return The application instance was updated.
*/
public java.util.Date getLastUpdatedTime() {
return this.lastUpdatedTime;
}
/**
*
* The application instance was updated.
*
*
* @param lastUpdatedTime
* The application instance was updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withLastUpdatedTime(java.util.Date lastUpdatedTime) {
setLastUpdatedTime(lastUpdatedTime);
return this;
}
/**
*
* The application instance's name.
*
*
* @param name
* The application instance's name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The application instance's name.
*
*
* @return The application instance's name.
*/
public String getName() {
return this.name;
}
/**
*
* The application instance's name.
*
*
* @param name
* The application instance's name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withName(String name) {
setName(name);
return this;
}
/**
*
* The application instance's state.
*
*
* @return The application instance's state.
*/
public java.util.List getRuntimeContextStates() {
return runtimeContextStates;
}
/**
*
* The application instance's state.
*
*
* @param runtimeContextStates
* The application instance's state.
*/
public void setRuntimeContextStates(java.util.Collection runtimeContextStates) {
if (runtimeContextStates == null) {
this.runtimeContextStates = null;
return;
}
this.runtimeContextStates = new java.util.ArrayList(runtimeContextStates);
}
/**
*
* The application instance's state.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRuntimeContextStates(java.util.Collection)} or {@link #withRuntimeContextStates(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param runtimeContextStates
* The application instance's state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withRuntimeContextStates(ReportedRuntimeContextState... runtimeContextStates) {
if (this.runtimeContextStates == null) {
setRuntimeContextStates(new java.util.ArrayList(runtimeContextStates.length));
}
for (ReportedRuntimeContextState ele : runtimeContextStates) {
this.runtimeContextStates.add(ele);
}
return this;
}
/**
*
* The application instance's state.
*
*
* @param runtimeContextStates
* The application instance's state.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withRuntimeContextStates(java.util.Collection runtimeContextStates) {
setRuntimeContextStates(runtimeContextStates);
return this;
}
/**
*
* The application instance's runtime role ARN.
*
*
* @param runtimeRoleArn
* The application instance's runtime role ARN.
*/
public void setRuntimeRoleArn(String runtimeRoleArn) {
this.runtimeRoleArn = runtimeRoleArn;
}
/**
*
* The application instance's runtime role ARN.
*
*
* @return The application instance's runtime role ARN.
*/
public String getRuntimeRoleArn() {
return this.runtimeRoleArn;
}
/**
*
* The application instance's runtime role ARN.
*
*
* @param runtimeRoleArn
* The application instance's runtime role ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withRuntimeRoleArn(String runtimeRoleArn) {
setRuntimeRoleArn(runtimeRoleArn);
return this;
}
/**
*
* The application instance's status.
*
*
* @param status
* The application instance's status.
* @see ApplicationInstanceStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The application instance's status.
*
*
* @return The application instance's status.
* @see ApplicationInstanceStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The application instance's status.
*
*
* @param status
* The application instance's status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationInstanceStatus
*/
public DescribeApplicationInstanceResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The application instance's status.
*
*
* @param status
* The application instance's status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationInstanceStatus
*/
public DescribeApplicationInstanceResult withStatus(ApplicationInstanceStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The application instance's status description.
*
*
* @param statusDescription
* The application instance's status description.
*/
public void setStatusDescription(String statusDescription) {
this.statusDescription = statusDescription;
}
/**
*
* The application instance's status description.
*
*
* @return The application instance's status description.
*/
public String getStatusDescription() {
return this.statusDescription;
}
/**
*
* The application instance's status description.
*
*
* @param statusDescription
* The application instance's status description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withStatusDescription(String statusDescription) {
setStatusDescription(statusDescription);
return this;
}
/**
*
* The application instance's tags.
*
*
* @return The application instance's tags.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The application instance's tags.
*
*
* @param tags
* The application instance's tags.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The application instance's tags.
*
*
* @param tags
* The application instance's tags.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see DescribeApplicationInstanceResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeApplicationInstanceResult clearTagsEntries() {
this.tags = null;
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 (getApplicationInstanceId() != null)
sb.append("ApplicationInstanceId: ").append(getApplicationInstanceId()).append(",");
if (getApplicationInstanceIdToReplace() != null)
sb.append("ApplicationInstanceIdToReplace: ").append(getApplicationInstanceIdToReplace()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getDefaultRuntimeContextDevice() != null)
sb.append("DefaultRuntimeContextDevice: ").append(getDefaultRuntimeContextDevice()).append(",");
if (getDefaultRuntimeContextDeviceName() != null)
sb.append("DefaultRuntimeContextDeviceName: ").append(getDefaultRuntimeContextDeviceName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getHealthStatus() != null)
sb.append("HealthStatus: ").append(getHealthStatus()).append(",");
if (getLastUpdatedTime() != null)
sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getRuntimeContextStates() != null)
sb.append("RuntimeContextStates: ").append(getRuntimeContextStates()).append(",");
if (getRuntimeRoleArn() != null)
sb.append("RuntimeRoleArn: ").append(getRuntimeRoleArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusDescription() != null)
sb.append("StatusDescription: ").append(getStatusDescription()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeApplicationInstanceResult == false)
return false;
DescribeApplicationInstanceResult other = (DescribeApplicationInstanceResult) obj;
if (other.getApplicationInstanceId() == null ^ this.getApplicationInstanceId() == null)
return false;
if (other.getApplicationInstanceId() != null && other.getApplicationInstanceId().equals(this.getApplicationInstanceId()) == false)
return false;
if (other.getApplicationInstanceIdToReplace() == null ^ this.getApplicationInstanceIdToReplace() == null)
return false;
if (other.getApplicationInstanceIdToReplace() != null
&& other.getApplicationInstanceIdToReplace().equals(this.getApplicationInstanceIdToReplace()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getDefaultRuntimeContextDevice() == null ^ this.getDefaultRuntimeContextDevice() == null)
return false;
if (other.getDefaultRuntimeContextDevice() != null && other.getDefaultRuntimeContextDevice().equals(this.getDefaultRuntimeContextDevice()) == false)
return false;
if (other.getDefaultRuntimeContextDeviceName() == null ^ this.getDefaultRuntimeContextDeviceName() == null)
return false;
if (other.getDefaultRuntimeContextDeviceName() != null
&& other.getDefaultRuntimeContextDeviceName().equals(this.getDefaultRuntimeContextDeviceName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getHealthStatus() == null ^ this.getHealthStatus() == null)
return false;
if (other.getHealthStatus() != null && other.getHealthStatus().equals(this.getHealthStatus()) == false)
return false;
if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null)
return false;
if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getRuntimeContextStates() == null ^ this.getRuntimeContextStates() == null)
return false;
if (other.getRuntimeContextStates() != null && other.getRuntimeContextStates().equals(this.getRuntimeContextStates()) == false)
return false;
if (other.getRuntimeRoleArn() == null ^ this.getRuntimeRoleArn() == null)
return false;
if (other.getRuntimeRoleArn() != null && other.getRuntimeRoleArn().equals(this.getRuntimeRoleArn()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getStatusDescription() == null ^ this.getStatusDescription() == null)
return false;
if (other.getStatusDescription() != null && other.getStatusDescription().equals(this.getStatusDescription()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getApplicationInstanceId() == null) ? 0 : getApplicationInstanceId().hashCode());
hashCode = prime * hashCode + ((getApplicationInstanceIdToReplace() == null) ? 0 : getApplicationInstanceIdToReplace().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getDefaultRuntimeContextDevice() == null) ? 0 : getDefaultRuntimeContextDevice().hashCode());
hashCode = prime * hashCode + ((getDefaultRuntimeContextDeviceName() == null) ? 0 : getDefaultRuntimeContextDeviceName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getHealthStatus() == null) ? 0 : getHealthStatus().hashCode());
hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getRuntimeContextStates() == null) ? 0 : getRuntimeContextStates().hashCode());
hashCode = prime * hashCode + ((getRuntimeRoleArn() == null) ? 0 : getRuntimeRoleArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusDescription() == null) ? 0 : getStatusDescription().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public DescribeApplicationInstanceResult clone() {
try {
return (DescribeApplicationInstanceResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}