/* * Copyright 2018-2023 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 CreateApplicationRequest 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 location in S3 of the application icon. *
*/ 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 platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
*/ private java.util.List* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. *
*/ private java.util.List* The app block ARN to which the application should be associated *
*/ private String appBlockArn; /** ** The tags assigned to the application. *
*/ private java.util.Map* 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 CreateApplicationRequest 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 CreateApplicationRequest 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 CreateApplicationRequest withDescription(String description) { setDescription(description); return this; } /** ** The location in S3 of the application icon. *
* * @param iconS3Location * The location in S3 of the application icon. */ public void setIconS3Location(S3Location iconS3Location) { this.iconS3Location = iconS3Location; } /** ** The location in S3 of the application icon. *
* * @return The location in S3 of the application icon. */ public S3Location getIconS3Location() { return this.iconS3Location; } /** ** The location in S3 of the application icon. *
* * @param iconS3Location * The location in S3 of the application icon. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest 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 CreateApplicationRequest 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 CreateApplicationRequest 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 CreateApplicationRequest withLaunchParameters(String launchParameters) { setLaunchParameters(launchParameters); return this; } /** ** The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @return The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic * fleets. * @see PlatformType */ public java.util.List* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platforms * The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic * fleets. * @see PlatformType */ public void setPlatforms(java.util.Collection* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPlatforms(java.util.Collection)} or {@link #withPlatforms(java.util.Collection)} if you want to * override the existing values. *
* * @param platforms * The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic * fleets. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public CreateApplicationRequest withPlatforms(String... platforms) { if (this.platforms == null) { setPlatforms(new java.util.ArrayList* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platforms * The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic * fleets. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public CreateApplicationRequest withPlatforms(java.util.Collection* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. *
* * @param platforms * The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic * fleets. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public CreateApplicationRequest withPlatforms(PlatformType... platforms) { java.util.ArrayList* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. *
* * @return The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. */ public java.util.List* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. *
* * @param instanceFamilies * The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. */ public void setInstanceFamilies(java.util.Collection* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInstanceFamilies(java.util.Collection)} or {@link #withInstanceFamilies(java.util.Collection)} if you * want to override the existing values. *
* * @param instanceFamilies * The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withInstanceFamilies(String... instanceFamilies) { if (this.instanceFamilies == null) { setInstanceFamilies(new java.util.ArrayList* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. *
* * @param instanceFamilies * The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withInstanceFamilies(java.util.Collection* The app block ARN to which the application should be associated *
* * @param appBlockArn * The app block ARN to which the application should be associated */ public void setAppBlockArn(String appBlockArn) { this.appBlockArn = appBlockArn; } /** ** The app block ARN to which the application should be associated *
* * @return The app block ARN to which the application should be associated */ public String getAppBlockArn() { return this.appBlockArn; } /** ** The app block ARN to which the application should be associated *
* * @param appBlockArn * The app block ARN to which the application should be associated * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withAppBlockArn(String appBlockArn) { setAppBlockArn(appBlockArn); return this; } /** ** The tags assigned to the application. *
* * @return The tags assigned to the application. */ public java.util.Map* The tags assigned to the application. *
* * @param tags * The tags assigned to the application. */ public void setTags(java.util.Map* The tags assigned to the application. *
* * @param tags * The tags assigned to the application. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateApplicationRequest withTags(java.util.Map