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

* A unique name for the image builder. *

*/ private String name; /** *

* The name of the image used to create the image builder. *

*/ private String imageName; /** *

* The ARN of the public, private, or shared image to use. *

*/ private String imageArn; /** *

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

* */ private String instanceType; /** *

* The description to display. *

*/ private String description; /** *

* The image builder name to display. *

*/ private String displayName; /** *

* The VPC configuration for the image builder. You can specify only one subnet. *

*/ private VpcConfig vpcConfig; /** *

* The Amazon Resource Name (ARN) of the IAM role to apply to the image builder. To assume a role, the image 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; /** *

* Enables or disables default internet access for the image builder. *

*/ private Boolean enableDefaultInternetAccess; /** *

* The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active * Directory domain. *

*/ private DomainJoinInfo domainJoinInfo; /** *

* The version of the AppStream 2.0 agent to use for this image builder. To use the latest version of the AppStream * 2.0 agent, specify [LATEST]. *

*/ private String appstreamAgentVersion; /** *

* The tags to associate with the image 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=. *

*

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

*

* _ . : / = + \ - @ *

*

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

*

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

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

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

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

* A unique name for the image builder. *

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

* A unique name for the image builder. *

* * @return A unique name for the image builder. */ public String getName() { return this.name; } /** *

* A unique name for the image builder. *

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

* The name of the image used to create the image builder. *

* * @param imageName * The name of the image used to create the image builder. */ public void setImageName(String imageName) { this.imageName = imageName; } /** *

* The name of the image used to create the image builder. *

* * @return The name of the image used to create the image builder. */ public String getImageName() { return this.imageName; } /** *

* The name of the image used to create the image builder. *

* * @param imageName * The name of the image used to create the image builder. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateImageBuilderRequest withImageName(String imageName) { setImageName(imageName); return this; } /** *

* The ARN of the public, private, or shared image to use. *

* * @param imageArn * The ARN of the public, private, or shared image to use. */ public void setImageArn(String imageArn) { this.imageArn = imageArn; } /** *

* The ARN of the public, private, or shared image to use. *

* * @return The ARN of the public, private, or shared image to use. */ public String getImageArn() { return this.imageArn; } /** *

* The ARN of the public, private, or shared image to use. *

* * @param imageArn * The ARN of the public, private, or shared image to use. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateImageBuilderRequest withImageArn(String imageArn) { setImageArn(imageArn); return this; } /** *

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

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

*