/* * 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.
*
* The instance type to use when launching the app block builder. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** 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* The attributes to delete from the app block builder. *
*/ private java.util.List* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The instance type to use when launching the app block builder. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The instance type to use when launching the app block builder. The following instance types are available: *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** stream.standard.small *
** stream.standard.medium *
** stream.standard.large *
** stream.standard.xlarge *
** stream.standard.2xlarge *
** The VPC configuration for the app block builder. *
** App block builders require that you specify at least two subnets in different availability zones. *
* * @param vpcConfig * The VPC configuration for the app block builder. ** App block builders require that you specify at least two subnets in different availability zones. */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** *
* The VPC configuration for the app block builder. *
** App block builders require that you specify at least two subnets in different availability zones. *
* * @return The VPC configuration for the app block builder. ** App block builders require that you specify at least two subnets in different availability zones. */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** *
* The VPC configuration for the app block builder. *
** App block builders require that you specify at least two subnets in different availability zones. *
* * @param vpcConfig * The VPC configuration for the app block builder. ** App block builders require that you specify at least two subnets in different availability zones. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** *
* Enables or disables default internet access for the app block builder. *
* * @param enableDefaultInternetAccess * Enables or disables default internet access for the app block builder. */ public void setEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) { this.enableDefaultInternetAccess = enableDefaultInternetAccess; } /** ** Enables or disables default internet access for the app block builder. *
* * @return Enables or disables default internet access for the app block builder. */ public Boolean getEnableDefaultInternetAccess() { return this.enableDefaultInternetAccess; } /** ** Enables or disables default internet access for the app block builder. *
* * @param enableDefaultInternetAccess * Enables or disables default internet access for the app block builder. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withEnableDefaultInternetAccess(Boolean enableDefaultInternetAccess) { setEnableDefaultInternetAccess(enableDefaultInternetAccess); return this; } /** ** Enables or disables default internet access for the app block builder. *
* * @return Enables or disables default internet access for the app block builder. */ public Boolean isEnableDefaultInternetAccess() { return this.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. *
* * @param iamRoleArn * 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. */ public void setIamRoleArn(String iamRoleArn) { this.iamRoleArn = iamRoleArn; } /** *
* 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. *
* * @return 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. */ public String getIamRoleArn() { return this.iamRoleArn; } /** *
* 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. *
* * @param iamRoleArn * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withIamRoleArn(String iamRoleArn) { setIamRoleArn(iamRoleArn); return this; } /** *
* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block * builder only through the specified endpoints. *
* * @return The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app * block builder only through the specified endpoints. */ public java.util.List* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block * builder only through the specified endpoints. *
* * @param accessEndpoints * The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app * block builder only through the specified endpoints. */ public void setAccessEndpoints(java.util.Collection* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block * builder only through the specified endpoints. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAccessEndpoints(java.util.Collection)} or {@link #withAccessEndpoints(java.util.Collection)} if you * want to override the existing values. *
* * @param accessEndpoints * The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app * block builder only through the specified endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withAccessEndpoints(AccessEndpoint... accessEndpoints) { if (this.accessEndpoints == null) { setAccessEndpoints(new java.util.ArrayList* The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app block * builder only through the specified endpoints. *
* * @param accessEndpoints * The list of interface VPC endpoint (interface endpoint) objects. Administrators can connect to the app * block builder only through the specified endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateAppBlockBuilderRequest withAccessEndpoints(java.util.Collection* The attributes to delete from the app block builder. *
* * @return The attributes to delete from the app block builder. * @see AppBlockBuilderAttribute */ public java.util.List* The attributes to delete from the app block builder. *
* * @param attributesToDelete * The attributes to delete from the app block builder. * @see AppBlockBuilderAttribute */ public void setAttributesToDelete(java.util.Collection* The attributes to delete from the app block builder. *
** 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 from the app block builder. * @return Returns a reference to this object so that method calls can be chained together. * @see AppBlockBuilderAttribute */ public UpdateAppBlockBuilderRequest withAttributesToDelete(String... attributesToDelete) { if (this.attributesToDelete == null) { setAttributesToDelete(new java.util.ArrayList* The attributes to delete from the app block builder. *
* * @param attributesToDelete * The attributes to delete from the app block builder. * @return Returns a reference to this object so that method calls can be chained together. * @see AppBlockBuilderAttribute */ public UpdateAppBlockBuilderRequest withAttributesToDelete(java.util.Collection* The attributes to delete from the app block builder. *
* * @param attributesToDelete * The attributes to delete from the app block builder. * @return Returns a reference to this object so that method calls can be chained together. * @see AppBlockBuilderAttribute */ public UpdateAppBlockBuilderRequest withAttributesToDelete(AppBlockBuilderAttribute... attributesToDelete) { java.util.ArrayList