/* * 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 UpdateAppBlockBuilderRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The unique name for the app block builder. *

*/ private String name; /** *

* The description of the app block builder. *

*/ private String description; /** *

* The display name of the app block builder. *

*/ private String displayName; /** *

* The platform of the app block builder. *

*

* WINDOWS_SERVER_2019 is the only valid value. *

*/ private String platform; /** *

* The instance type to use when launching the app block builder. The following instance types are available: *

* */ private String instanceType; /** *

* The VPC configuration for the app block builder. *

*

* App block builders require that you specify at least two subnets in different availability zones. *

*/ private VpcConfig vpcConfig; /** *

* Enables or disables default internet access for the app block builder. *

*/ private Boolean enableDefaultInternetAccess; /** *

* The Amazon Resource Name (ARN) of the IAM role to apply to the app block builder. To assume a role, the app block * builder calls the AWS Security Token Service (STS) AssumeRole API operation and passes the ARN of * the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the * temporary credentials and creates the appstream_machine_role credential profile on the instance. *

*

* For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming * Instances in the Amazon AppStream 2.0 Administration Guide. *

*/ private String iamRoleArn; /** *

* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block * builder only through the specified endpoints. *

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

* The attributes to delete from the app block builder. *

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

* The unique name for the app block builder. *

* * @param name * The unique name for the app block builder. */ public void setName(String name) { this.name = name; } /** *

* The unique name for the app block builder. *

* * @return The unique name for the app block builder. */ public String getName() { return this.name; } /** *

* The unique name for the app block builder. *

* * @param name * The unique name for the app block builder. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withName(String name) { setName(name); return this; } /** *

* The description of the app block builder. *

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

* The description of the app block builder. *

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

* The description of the app block builder. *

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

* The display name of the app block builder. *

* * @param displayName * The display name of the app block builder. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the app block builder. *

* * @return The display name of the app block builder. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the app block builder. *

* * @param displayName * The display name of the app block builder. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The platform of the app block builder. *

*

* WINDOWS_SERVER_2019 is the only valid value. *

* * @param platform * The platform of the app block builder.

*

* WINDOWS_SERVER_2019 is the only valid value. * @see PlatformType */ public void setPlatform(String platform) { this.platform = platform; } /** *

* The platform of the app block builder. *

*

* WINDOWS_SERVER_2019 is the only valid value. *

* * @return The platform of the app block builder.

*

* WINDOWS_SERVER_2019 is the only valid value. * @see PlatformType */ public String getPlatform() { return this.platform; } /** *

* The platform of the app block builder. *

*

* WINDOWS_SERVER_2019 is the only valid value. *

* * @param platform * The platform of the app block builder.

*

* WINDOWS_SERVER_2019 is the only valid value. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public UpdateAppBlockBuilderRequest withPlatform(String platform) { setPlatform(platform); return this; } /** *

* The platform of the app block builder. *

*

* WINDOWS_SERVER_2019 is the only valid value. *

* * @param platform * The platform of the app block builder.

*

* WINDOWS_SERVER_2019 is the only valid value. * @return Returns a reference to this object so that method calls can be chained together. * @see PlatformType */ public UpdateAppBlockBuilderRequest withPlatform(PlatformType platform) { this.platform = platform.toString(); return this; } /** *

* The instance type to use when launching the app block builder. The following instance types are available: *

* * * @param instanceType * The instance type to use when launching the app block builder. The following instance types are * available:

*