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

com.amazonaws.services.appstream.model.UpdateApplicationRequest 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 2017-2022 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the application. This name is visible to users when display name is not specified. *

*/ private String name; /** *

* The display name of the application. This name is visible to users in the application catalog. *

*/ private String displayName; /** *

* The description of the application. *

*/ private String description; /** *

* The icon S3 location of the application. *

*/ private S3Location iconS3Location; /** *

* The launch path of the application. *

*/ private String launchPath; /** *

* The working directory of the application. *

*/ private String workingDirectory; /** *

* The launch parameters of the application. *

*/ private String launchParameters; /** *

* The ARN of the app block. *

*/ private String appBlockArn; /** *

* The attributes to delete for an application. *

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

* The name of the application. This name is visible to users when display name is not specified. *

* * @param name * The name of the application. This name is visible to users when display name is not specified. */ public void setName(String name) { this.name = name; } /** *

* The name of the application. This name is visible to users when display name is not specified. *

* * @return The name of the application. This name is visible to users when display name is not specified. */ public String getName() { return this.name; } /** *

* The name of the application. This name is visible to users when display name is not specified. *

* * @param name * The name of the application. This name is visible to users when display name is not specified. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withName(String name) { setName(name); return this; } /** *

* The display name of the application. This name is visible to users in the application catalog. *

* * @param displayName * The display name of the application. This name is visible to users in the application catalog. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the application. This name is visible to users in the application catalog. *

* * @return The display name of the application. This name is visible to users in the application catalog. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the application. This name is visible to users in the application catalog. *

* * @param displayName * The display name of the application. This name is visible to users in the application catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The description of the application. *

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

* The description of the application. *

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

* The description of the application. *

* * @param description * The description of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withDescription(String description) { setDescription(description); return this; } /** *

* The icon S3 location of the application. *

* * @param iconS3Location * The icon S3 location of the application. */ public void setIconS3Location(S3Location iconS3Location) { this.iconS3Location = iconS3Location; } /** *

* The icon S3 location of the application. *

* * @return The icon S3 location of the application. */ public S3Location getIconS3Location() { return this.iconS3Location; } /** *

* The icon S3 location of the application. *

* * @param iconS3Location * The icon S3 location of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withIconS3Location(S3Location iconS3Location) { setIconS3Location(iconS3Location); return this; } /** *

* The launch path of the application. *

* * @param launchPath * The launch path of the application. */ public void setLaunchPath(String launchPath) { this.launchPath = launchPath; } /** *

* The launch path of the application. *

* * @return The launch path of the application. */ public String getLaunchPath() { return this.launchPath; } /** *

* The launch path of the application. *

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

* The working directory of the application. *

* * @param workingDirectory * The working directory of the application. */ public void setWorkingDirectory(String workingDirectory) { this.workingDirectory = workingDirectory; } /** *

* The working directory of the application. *

* * @return The working directory of the application. */ public String getWorkingDirectory() { return this.workingDirectory; } /** *

* The working directory of the application. *

* * @param workingDirectory * The working directory of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withWorkingDirectory(String workingDirectory) { setWorkingDirectory(workingDirectory); return this; } /** *

* The launch parameters of the application. *

* * @param launchParameters * The launch parameters of the application. */ public void setLaunchParameters(String launchParameters) { this.launchParameters = launchParameters; } /** *

* The launch parameters of the application. *

* * @return The launch parameters of the application. */ public String getLaunchParameters() { return this.launchParameters; } /** *

* The launch parameters of the application. *

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

* The ARN of the app block. *

* * @param appBlockArn * The ARN of the app block. */ public void setAppBlockArn(String appBlockArn) { this.appBlockArn = appBlockArn; } /** *

* The ARN of the app block. *

* * @return The ARN of the app block. */ public String getAppBlockArn() { return this.appBlockArn; } /** *

* The ARN of the app block. *

* * @param appBlockArn * The ARN of the app block. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateApplicationRequest withAppBlockArn(String appBlockArn) { setAppBlockArn(appBlockArn); return this; } /** *

* The attributes to delete for an application. *

* * @return The attributes to delete for an application. * @see ApplicationAttribute */ public java.util.List getAttributesToDelete() { return attributesToDelete; } /** *

* The attributes to delete for an application. *

* * @param attributesToDelete * The attributes to delete for an application. * @see ApplicationAttribute */ public void setAttributesToDelete(java.util.Collection attributesToDelete) { if (attributesToDelete == null) { this.attributesToDelete = null; return; } this.attributesToDelete = new java.util.ArrayList(attributesToDelete); } /** *

* The attributes to delete for an application. *

*

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

* * @param attributesToDelete * The attributes to delete for an application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationAttribute */ public UpdateApplicationRequest withAttributesToDelete(String... attributesToDelete) { if (this.attributesToDelete == null) { setAttributesToDelete(new java.util.ArrayList(attributesToDelete.length)); } for (String ele : attributesToDelete) { this.attributesToDelete.add(ele); } return this; } /** *

* The attributes to delete for an application. *

* * @param attributesToDelete * The attributes to delete for an application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationAttribute */ public UpdateApplicationRequest withAttributesToDelete(java.util.Collection attributesToDelete) { setAttributesToDelete(attributesToDelete); return this; } /** *

* The attributes to delete for an application. *

* * @param attributesToDelete * The attributes to delete for an application. * @return Returns a reference to this object so that method calls can be chained together. * @see ApplicationAttribute */ public UpdateApplicationRequest withAttributesToDelete(ApplicationAttribute... attributesToDelete) { java.util.ArrayList attributesToDeleteCopy = new java.util.ArrayList(attributesToDelete.length); for (ApplicationAttribute value : attributesToDelete) { attributesToDeleteCopy.add(value.toString()); } if (getAttributesToDelete() == null) { setAttributesToDelete(attributesToDeleteCopy); } else { getAttributesToDelete().addAll(attributesToDeleteCopy); } 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getIconS3Location() != null) sb.append("IconS3Location: ").append(getIconS3Location()).append(","); if (getLaunchPath() != null) sb.append("LaunchPath: ").append(getLaunchPath()).append(","); if (getWorkingDirectory() != null) sb.append("WorkingDirectory: ").append(getWorkingDirectory()).append(","); if (getLaunchParameters() != null) sb.append("LaunchParameters: ").append(getLaunchParameters()).append(","); if (getAppBlockArn() != null) sb.append("AppBlockArn: ").append(getAppBlockArn()).append(","); if (getAttributesToDelete() != null) sb.append("AttributesToDelete: ").append(getAttributesToDelete()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateApplicationRequest == false) return false; UpdateApplicationRequest other = (UpdateApplicationRequest) 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getIconS3Location() == null ^ this.getIconS3Location() == null) return false; if (other.getIconS3Location() != null && other.getIconS3Location().equals(this.getIconS3Location()) == 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.getWorkingDirectory() == null ^ this.getWorkingDirectory() == null) return false; if (other.getWorkingDirectory() != null && other.getWorkingDirectory().equals(this.getWorkingDirectory()) == 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.getAppBlockArn() == null ^ this.getAppBlockArn() == null) return false; if (other.getAppBlockArn() != null && other.getAppBlockArn().equals(this.getAppBlockArn()) == false) return false; if (other.getAttributesToDelete() == null ^ this.getAttributesToDelete() == null) return false; if (other.getAttributesToDelete() != null && other.getAttributesToDelete().equals(this.getAttributesToDelete()) == 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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getIconS3Location() == null) ? 0 : getIconS3Location().hashCode()); hashCode = prime * hashCode + ((getLaunchPath() == null) ? 0 : getLaunchPath().hashCode()); hashCode = prime * hashCode + ((getWorkingDirectory() == null) ? 0 : getWorkingDirectory().hashCode()); hashCode = prime * hashCode + ((getLaunchParameters() == null) ? 0 : getLaunchParameters().hashCode()); hashCode = prime * hashCode + ((getAppBlockArn() == null) ? 0 : getAppBlockArn().hashCode()); hashCode = prime * hashCode + ((getAttributesToDelete() == null) ? 0 : getAttributesToDelete().hashCode()); return hashCode; } @Override public UpdateApplicationRequest clone() { return (UpdateApplicationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy