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

com.amazonaws.services.appstream.model.Application Maven / Gradle / Ivy

Go to download

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

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

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

/**
 * 

* Describes an application in the application catalog. *

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

* The name of the application. *

*/ private String name; /** *

* The application name for display. *

*/ private String displayName; /** *

* The URL for the application icon. This URL might be time-limited. *

*/ private String iconURL; /** *

* The path to the application executable in the instance. *

*/ private String launchPath; /** *

* The arguments that are passed to the application at launch. *

*/ private String launchParameters; /** *

* If there is a problem, the application can be disabled after image creation. *

*/ private Boolean enabled; /** *

* Additional attributes that describe the application. *

*/ private java.util.Map metadata; /** *

* The name of the application. *

* * @param name * The name of the application. */ public void setName(String name) { this.name = name; } /** *

* The name of the application. *

* * @return The name of the application. */ public String getName() { return this.name; } /** *

* The name of the application. *

* * @param name * The name of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withName(String name) { setName(name); return this; } /** *

* The application name for display. *

* * @param displayName * The application name for display. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The application name for display. *

* * @return The application name for display. */ public String getDisplayName() { return this.displayName; } /** *

* The application name for display. *

* * @param displayName * The application name for display. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The URL for the application icon. This URL might be time-limited. *

* * @param iconURL * The URL for the application icon. This URL might be time-limited. */ public void setIconURL(String iconURL) { this.iconURL = iconURL; } /** *

* The URL for the application icon. This URL might be time-limited. *

* * @return The URL for the application icon. This URL might be time-limited. */ public String getIconURL() { return this.iconURL; } /** *

* The URL for the application icon. This URL might be time-limited. *

* * @param iconURL * The URL for the application icon. This URL might be time-limited. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withIconURL(String iconURL) { setIconURL(iconURL); return this; } /** *

* The path to the application executable in the instance. *

* * @param launchPath * The path to the application executable in the instance. */ public void setLaunchPath(String launchPath) { this.launchPath = launchPath; } /** *

* The path to the application executable in the instance. *

* * @return The path to the application executable in the instance. */ public String getLaunchPath() { return this.launchPath; } /** *

* The path to the application executable in the instance. *

* * @param launchPath * The path to the application executable in the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withLaunchPath(String launchPath) { setLaunchPath(launchPath); return this; } /** *

* The arguments that are passed to the application at launch. *

* * @param launchParameters * The arguments that are passed to the application at launch. */ public void setLaunchParameters(String launchParameters) { this.launchParameters = launchParameters; } /** *

* The arguments that are passed to the application at launch. *

* * @return The arguments that are passed to the application at launch. */ public String getLaunchParameters() { return this.launchParameters; } /** *

* The arguments that are passed to the application at launch. *

* * @param launchParameters * The arguments that are passed to the application at launch. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withLaunchParameters(String launchParameters) { setLaunchParameters(launchParameters); return this; } /** *

* If there is a problem, the application can be disabled after image creation. *

* * @param enabled * If there is a problem, the application can be disabled after image creation. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* If there is a problem, the application can be disabled after image creation. *

* * @return If there is a problem, the application can be disabled after image creation. */ public Boolean getEnabled() { return this.enabled; } /** *

* If there is a problem, the application can be disabled after image creation. *

* * @param enabled * If there is a problem, the application can be disabled after image creation. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* If there is a problem, the application can be disabled after image creation. *

* * @return If there is a problem, the application can be disabled after image creation. */ public Boolean isEnabled() { return this.enabled; } /** *

* Additional attributes that describe the application. *

* * @return Additional attributes that describe the application. */ public java.util.Map getMetadata() { return metadata; } /** *

* Additional attributes that describe the application. *

* * @param metadata * Additional attributes that describe the application. */ public void setMetadata(java.util.Map metadata) { this.metadata = metadata; } /** *

* Additional attributes that describe the application. *

* * @param metadata * Additional attributes that describe the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Application withMetadata(java.util.Map metadata) { setMetadata(metadata); return this; } public Application addMetadataEntry(String key, String value) { if (null == this.metadata) { this.metadata = new java.util.HashMap(); } if (this.metadata.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.metadata.put(key, value); return this; } /** * Removes all the entries added into Metadata. * * @return Returns a reference to this object so that method calls can be chained together. */ public Application clearMetadataEntries() { this.metadata = null; 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getIconURL() != null) sb.append("IconURL: ").append(getIconURL()).append(","); if (getLaunchPath() != null) sb.append("LaunchPath: ").append(getLaunchPath()).append(","); if (getLaunchParameters() != null) sb.append("LaunchParameters: ").append(getLaunchParameters()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Application == false) return false; Application other = (Application) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getIconURL() == null ^ this.getIconURL() == null) return false; if (other.getIconURL() != null && other.getIconURL().equals(this.getIconURL()) == false) return false; if (other.getLaunchPath() == null ^ this.getLaunchPath() == null) return false; if (other.getLaunchPath() != null && other.getLaunchPath().equals(this.getLaunchPath()) == false) return false; if (other.getLaunchParameters() == null ^ this.getLaunchParameters() == null) return false; if (other.getLaunchParameters() != null && other.getLaunchParameters().equals(this.getLaunchParameters()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getIconURL() == null) ? 0 : getIconURL().hashCode()); hashCode = prime * hashCode + ((getLaunchPath() == null) ? 0 : getLaunchPath().hashCode()); hashCode = prime * hashCode + ((getLaunchParameters() == null) ? 0 : getLaunchParameters().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); return hashCode; } @Override public Application clone() { try { return (Application) 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.appstream.model.transform.ApplicationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy