/* * 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 CreateAppBlockBuilderRequest 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 tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For * example, Environment=Test. If you do not specify a value, Environment=. *

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *

*/ private java.util.Map tags; /** *

* 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 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 CreateAppBlockBuilderRequest 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 CreateAppBlockBuilderRequest 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 CreateAppBlockBuilderRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For * example, Environment=Test. If you do not specify a value, Environment=. *

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *

* * @return The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. * For example, Environment=Test. If you do not specify a value, Environment=.

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your * Resources in the Amazon AppStream 2.0 Administration Guide. */ public java.util.Map getTags() { return tags; } /** *

* The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For * example, Environment=Test. If you do not specify a value, Environment=. *

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *

* * @param tags * The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. * For example, Environment=Test. If you do not specify a value, Environment=.

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your * Resources in the Amazon AppStream 2.0 Administration Guide. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. For * example, Environment=Test. If you do not specify a value, Environment=. *

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special * characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your Resources * in the Amazon AppStream 2.0 Administration Guide. *

* * @param tags * The tags to associate with the app block builder. A tag is a key-value pair, and the value is optional. * For example, Environment=Test. If you do not specify a value, Environment=.

*

* If you do not specify a value, the value is set to an empty string. *

*

* Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following * special characters: *

*

* _ . : / = + \ - @ *

*

* For more information, see Tagging Your * Resources in the Amazon AppStream 2.0 Administration Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockBuilderRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateAppBlockBuilderRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockBuilderRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateAppBlockBuilderRequest clearTagsEntries() { this.tags = null; 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 AppBlockBuilderPlatformType */ 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 AppBlockBuilderPlatformType */ 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 AppBlockBuilderPlatformType */ public CreateAppBlockBuilderRequest 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 AppBlockBuilderPlatformType */ public CreateAppBlockBuilderRequest withPlatform(AppBlockBuilderPlatformType 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:

*