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

com.amazonaws.services.panorama.model.ApplicationInstance Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
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.panorama.model;

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

/**
 * 

* An application instance on a device. *

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

* The application instance's ID. *

*/ private String applicationInstanceId; /** *

* 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 name. *

*/ private String defaultRuntimeContextDeviceName; /** *

* The application instance's description. *

*/ private String description; /** *

* The application instance's health status. *

*/ private String healthStatus; /** *

* The application instance's name. *

*/ private String name; /** *

* The application's state. *

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

* 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 ApplicationInstance withApplicationInstanceId(String applicationInstanceId) { setApplicationInstanceId(applicationInstanceId); 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 ApplicationInstance 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 ApplicationInstance 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 ApplicationInstance withDefaultRuntimeContextDevice(String defaultRuntimeContextDevice) { setDefaultRuntimeContextDevice(defaultRuntimeContextDevice); return this; } /** *

* The device's name. *

* * @param defaultRuntimeContextDeviceName * The device's name. */ public void setDefaultRuntimeContextDeviceName(String defaultRuntimeContextDeviceName) { this.defaultRuntimeContextDeviceName = defaultRuntimeContextDeviceName; } /** *

* The device's name. *

* * @return The device's name. */ public String getDefaultRuntimeContextDeviceName() { return this.defaultRuntimeContextDeviceName; } /** *

* The device's name. *

* * @param defaultRuntimeContextDeviceName * The device's name. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInstance 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 ApplicationInstance 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 ApplicationInstance 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 ApplicationInstance withHealthStatus(ApplicationInstanceHealthStatus healthStatus) { this.healthStatus = healthStatus.toString(); 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 ApplicationInstance withName(String name) { setName(name); return this; } /** *

* The application's state. *

* * @return The application's state. */ public java.util.List getRuntimeContextStates() { return runtimeContextStates; } /** *

* The application's state. *

* * @param runtimeContextStates * The application'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'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's state. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInstance 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's state. *

* * @param runtimeContextStates * The application's state. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplicationInstance withRuntimeContextStates(java.util.Collection runtimeContextStates) { setRuntimeContextStates(runtimeContextStates); 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 ApplicationInstance 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 ApplicationInstance 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 ApplicationInstance 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 ApplicationInstance withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see ApplicationInstance#withTags * @returns a reference to this object so that method calls can be chained together. */ public ApplicationInstance 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 ApplicationInstance 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 (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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRuntimeContextStates() != null) sb.append("RuntimeContextStates: ").append(getRuntimeContextStates()).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 ApplicationInstance == false) return false; ApplicationInstance other = (ApplicationInstance) obj; if (other.getApplicationInstanceId() == null ^ this.getApplicationInstanceId() == null) return false; if (other.getApplicationInstanceId() != null && other.getApplicationInstanceId().equals(this.getApplicationInstanceId()) == 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.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.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 + ((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 + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRuntimeContextStates() == null) ? 0 : getRuntimeContextStates().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 ApplicationInstance clone() { try { return (ApplicationInstance) 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.panorama.model.transform.ApplicationInstanceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy