/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateStreamingSessionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify * a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to * ensure idempotency. *
*/ private String clientToken; /** ** The EC2 Instance type used for the streaming session. *
*/ private String ec2InstanceType; /** ** The ID of the launch profile used to control access from the streaming session. *
*/ private String launchProfileId; /** ** The user ID of the user that owns the streaming session. The user that owns the session will be logging into the * session and interacting with the virtual workstation. *
*/ private String ownedBy; /** ** The ID of the streaming image. *
*/ private String streamingImageId; /** ** The studio ID. *
*/ private String studioId; /** ** A collection of labels, in the form of key-value pairs, that apply to this resource. *
*/ private java.util.Map* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify * a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to * ensure idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t * specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for * the request to ensure idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify * a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to * ensure idempotency. *
* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t * specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it * for the request to ensure idempotency. */ public String getClientToken() { return this.clientToken; } /** ** Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t specify * a client token, the Amazon Web Services SDK automatically generates a client token and uses it for the request to * ensure idempotency. *
* * @param clientToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don’t * specify a client token, the Amazon Web Services SDK automatically generates a client token and uses it for * the request to ensure idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamingSessionRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The EC2 Instance type used for the streaming session. *
* * @param ec2InstanceType * The EC2 Instance type used for the streaming session. * @see StreamingInstanceType */ public void setEc2InstanceType(String ec2InstanceType) { this.ec2InstanceType = ec2InstanceType; } /** ** The EC2 Instance type used for the streaming session. *
* * @return The EC2 Instance type used for the streaming session. * @see StreamingInstanceType */ public String getEc2InstanceType() { return this.ec2InstanceType; } /** ** The EC2 Instance type used for the streaming session. *
* * @param ec2InstanceType * The EC2 Instance type used for the streaming session. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingInstanceType */ public CreateStreamingSessionRequest withEc2InstanceType(String ec2InstanceType) { setEc2InstanceType(ec2InstanceType); return this; } /** ** The EC2 Instance type used for the streaming session. *
* * @param ec2InstanceType * The EC2 Instance type used for the streaming session. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamingInstanceType */ public CreateStreamingSessionRequest withEc2InstanceType(StreamingInstanceType ec2InstanceType) { this.ec2InstanceType = ec2InstanceType.toString(); return this; } /** ** 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 CreateStreamingSessionRequest withLaunchProfileId(String launchProfileId) { setLaunchProfileId(launchProfileId); return this; } /** ** The user ID of the user that owns the streaming session. The user that owns the session will be logging into the * session and interacting with the virtual workstation. *
* * @param ownedBy * The user ID of the user that owns the streaming session. The user that owns the session will be logging * into the session and interacting with the virtual workstation. */ public void setOwnedBy(String ownedBy) { this.ownedBy = ownedBy; } /** ** The user ID of the user that owns the streaming session. The user that owns the session will be logging into the * session and interacting with the virtual workstation. *
* * @return The user ID of the user that owns the streaming session. The user that owns the session will be logging * into the session and interacting with the virtual workstation. */ public String getOwnedBy() { return this.ownedBy; } /** ** The user ID of the user that owns the streaming session. The user that owns the session will be logging into the * session and interacting with the virtual workstation. *
* * @param ownedBy * The user ID of the user that owns the streaming session. The user that owns the session will be logging * into the session and interacting with the virtual workstation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamingSessionRequest withOwnedBy(String ownedBy) { setOwnedBy(ownedBy); return this; } /** ** The ID of the streaming image. *
* * @param streamingImageId * The ID of the streaming image. */ public void setStreamingImageId(String streamingImageId) { this.streamingImageId = streamingImageId; } /** ** The ID of the streaming image. *
* * @return The ID of the streaming image. */ public String getStreamingImageId() { return this.streamingImageId; } /** ** The ID of the streaming image. *
* * @param streamingImageId * The ID of the streaming image. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamingSessionRequest withStreamingImageId(String streamingImageId) { setStreamingImageId(streamingImageId); return this; } /** ** The studio ID. *
* * @param studioId * The studio ID. */ public void setStudioId(String studioId) { this.studioId = studioId; } /** ** The studio ID. *
* * @return The studio ID. */ public String getStudioId() { return this.studioId; } /** ** The studio ID. *
* * @param studioId * The studio ID. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamingSessionRequest withStudioId(String studioId) { setStudioId(studioId); return this; } /** ** A collection of labels, in the form of key-value pairs, that apply to this resource. *
* * @return A collection of labels, in the form of key-value pairs, that apply to this resource. */ public java.util.Map* A collection of labels, in the form of key-value pairs, that apply to this resource. *
* * @param tags * A collection of labels, in the form of key-value pairs, that apply to this resource. */ public void setTags(java.util.Map* A collection of labels, in the form of key-value pairs, that apply to this resource. *
* * @param tags * A collection of labels, in the form of key-value pairs, that apply to this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStreamingSessionRequest withTags(java.util.Map