/* * 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.nimblestudio.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A launch profile initialization contains information required for a workstation or server to connect to a launch * profile. *
** This includes scripts, endpoints, security groups, subnets, and other configuration. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LaunchProfileInitialization implements Serializable, Cloneable, StructuredPojo { /** *
* A LaunchProfileInitializationActiveDirectory
resource.
*
* The EC2 security groups that control access to the studio component. *
*/ private java.util.List* The ID of the launch profile used to control access from the streaming session. *
*/ private String launchProfileId; /** ** The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". *
*/ private String launchProfileProtocolVersion; /** ** The launch purpose. *
*/ private String launchPurpose; /** ** The name for the launch profile. *
*/ private String name; /** ** The platform of the launch platform, either Windows or Linux. *
*/ private String platform; /** ** The system initializtion scripts. *
*/ private java.util.List* The user initializtion scripts. *
*/ private java.util.List
* A LaunchProfileInitializationActiveDirectory
resource.
*
LaunchProfileInitializationActiveDirectory
resource.
*/
public void setActiveDirectory(LaunchProfileInitializationActiveDirectory activeDirectory) {
this.activeDirectory = activeDirectory;
}
/**
*
* A LaunchProfileInitializationActiveDirectory
resource.
*
LaunchProfileInitializationActiveDirectory
resource.
*/
public LaunchProfileInitializationActiveDirectory getActiveDirectory() {
return this.activeDirectory;
}
/**
*
* A LaunchProfileInitializationActiveDirectory
resource.
*
LaunchProfileInitializationActiveDirectory
resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LaunchProfileInitialization withActiveDirectory(LaunchProfileInitializationActiveDirectory activeDirectory) {
setActiveDirectory(activeDirectory);
return this;
}
/**
* * The EC2 security groups that control access to the studio component. *
* * @return The EC2 security groups that control access to the studio component. */ public java.util.List* The EC2 security groups that control access to the studio component. *
* * @param ec2SecurityGroupIds * The EC2 security groups that control access to the studio component. */ public void setEc2SecurityGroupIds(java.util.Collection* The EC2 security groups that control access to the studio component. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEc2SecurityGroupIds(java.util.Collection)} or {@link #withEc2SecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param ec2SecurityGroupIds * The EC2 security groups that control access to the studio component. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withEc2SecurityGroupIds(String... ec2SecurityGroupIds) { if (this.ec2SecurityGroupIds == null) { setEc2SecurityGroupIds(new java.util.ArrayList* The EC2 security groups that control access to the studio component. *
* * @param ec2SecurityGroupIds * The EC2 security groups that control access to the studio component. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withEc2SecurityGroupIds(java.util.Collection* The ID of the launch profile used to control access from the streaming session. *
* * @param launchProfileId * The ID of the launch profile used to control access from the streaming session. */ public void setLaunchProfileId(String launchProfileId) { this.launchProfileId = launchProfileId; } /** ** The ID of the launch profile used to control access from the streaming session. *
* * @return The ID of the launch profile used to control access from the streaming session. */ public String getLaunchProfileId() { return this.launchProfileId; } /** ** The ID of the launch profile used to control access from the streaming session. *
* * @param launchProfileId * The ID of the launch profile used to control access from the streaming session. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withLaunchProfileId(String launchProfileId) { setLaunchProfileId(launchProfileId); return this; } /** ** The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". *
* * @param launchProfileProtocolVersion * The version number of the protocol that is used by the launch profile. The only valid version is * "2021-03-31". */ public void setLaunchProfileProtocolVersion(String launchProfileProtocolVersion) { this.launchProfileProtocolVersion = launchProfileProtocolVersion; } /** ** The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". *
* * @return The version number of the protocol that is used by the launch profile. The only valid version is * "2021-03-31". */ public String getLaunchProfileProtocolVersion() { return this.launchProfileProtocolVersion; } /** ** The version number of the protocol that is used by the launch profile. The only valid version is "2021-03-31". *
* * @param launchProfileProtocolVersion * The version number of the protocol that is used by the launch profile. The only valid version is * "2021-03-31". * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withLaunchProfileProtocolVersion(String launchProfileProtocolVersion) { setLaunchProfileProtocolVersion(launchProfileProtocolVersion); return this; } /** ** The launch purpose. *
* * @param launchPurpose * The launch purpose. */ public void setLaunchPurpose(String launchPurpose) { this.launchPurpose = launchPurpose; } /** ** The launch purpose. *
* * @return The launch purpose. */ public String getLaunchPurpose() { return this.launchPurpose; } /** ** The launch purpose. *
* * @param launchPurpose * The launch purpose. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withLaunchPurpose(String launchPurpose) { setLaunchPurpose(launchPurpose); return this; } /** ** The name for the launch profile. *
* * @param name * The name for the launch profile. */ public void setName(String name) { this.name = name; } /** ** The name for the launch profile. *
* * @return The name for the launch profile. */ public String getName() { return this.name; } /** ** The name for the launch profile. *
* * @param name * The name for the launch profile. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withName(String name) { setName(name); return this; } /** ** The platform of the launch platform, either Windows or Linux. *
* * @param platform * The platform of the launch platform, either Windows or Linux. * @see LaunchProfilePlatform */ public void setPlatform(String platform) { this.platform = platform; } /** ** The platform of the launch platform, either Windows or Linux. *
* * @return The platform of the launch platform, either Windows or Linux. * @see LaunchProfilePlatform */ public String getPlatform() { return this.platform; } /** ** The platform of the launch platform, either Windows or Linux. *
* * @param platform * The platform of the launch platform, either Windows or Linux. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchProfilePlatform */ public LaunchProfileInitialization withPlatform(String platform) { setPlatform(platform); return this; } /** ** The platform of the launch platform, either Windows or Linux. *
* * @param platform * The platform of the launch platform, either Windows or Linux. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchProfilePlatform */ public LaunchProfileInitialization withPlatform(LaunchProfilePlatform platform) { this.platform = platform.toString(); return this; } /** ** The system initializtion scripts. *
* * @return The system initializtion scripts. */ public java.util.List* The system initializtion scripts. *
* * @param systemInitializationScripts * The system initializtion scripts. */ public void setSystemInitializationScripts(java.util.Collection* The system initializtion scripts. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSystemInitializationScripts(java.util.Collection)} or * {@link #withSystemInitializationScripts(java.util.Collection)} if you want to override the existing values. *
* * @param systemInitializationScripts * The system initializtion scripts. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withSystemInitializationScripts(LaunchProfileInitializationScript... systemInitializationScripts) { if (this.systemInitializationScripts == null) { setSystemInitializationScripts(new java.util.ArrayList* The system initializtion scripts. *
* * @param systemInitializationScripts * The system initializtion scripts. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withSystemInitializationScripts(java.util.Collection* The user initializtion scripts. *
* * @return The user initializtion scripts. */ public java.util.List* The user initializtion scripts. *
* * @param userInitializationScripts * The user initializtion scripts. */ public void setUserInitializationScripts(java.util.Collection* The user initializtion scripts. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserInitializationScripts(java.util.Collection)} or * {@link #withUserInitializationScripts(java.util.Collection)} if you want to override the existing values. *
* * @param userInitializationScripts * The user initializtion scripts. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withUserInitializationScripts(LaunchProfileInitializationScript... userInitializationScripts) { if (this.userInitializationScripts == null) { setUserInitializationScripts(new java.util.ArrayList* The user initializtion scripts. *
* * @param userInitializationScripts * The user initializtion scripts. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchProfileInitialization withUserInitializationScripts(java.util.Collection