/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes a virtual machine that is used to create an image. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ImageBuilder implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the image builder. *

*/ private String name; /** *

* The ARN for the image builder. *

*/ private String arn; /** *

* The ARN of the image from which this builder was created. *

*/ private String imageArn; /** *

* The description to display. *

*/ private String description; /** *

* The image builder name to display. *

*/ private String displayName; /** *

* The VPC configuration of the image builder. *

*/ private VpcConfig vpcConfig; /** *

* The instance type for the image builder. The following instance types are available: *

* */ private String instanceType; /** *

* The operating system platform of the image builder. *

*/ private String platform; /** *

* The ARN of the IAM role that is applied 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; /** *

* The state of the image builder. *

*/ private String state; /** *

* The reason why the last state change occurred. *

*/ private ImageBuilderStateChangeReason stateChangeReason; /** *

* The time stamp when the image builder was created. *

*/ private java.util.Date createdTime; /** *

* 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; private NetworkAccessConfiguration networkAccessConfiguration; /** *

* The image builder errors. *

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

* The version of the AppStream 2.0 agent that is currently being used by the image builder. *

*/ private String appstreamAgentVersion; /** *

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

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

* The name of the image builder. *

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

* The name of the image builder. *

* * @return The name of the image builder. */ public String getName() { return this.name; } /** *

* The name of the image builder. *

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

* The ARN for the image builder. *

* * @param arn * The ARN for the image builder. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN for the image builder. *

* * @return The ARN for the image builder. */ public String getArn() { return this.arn; } /** *

* The ARN for the image builder. *

* * @param arn * The ARN for the image builder. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageBuilder withArn(String arn) { setArn(arn); return this; } /** *

* The ARN of the image from which this builder was created. *

* * @param imageArn * The ARN of the image from which this builder was created. */ public void setImageArn(String imageArn) { this.imageArn = imageArn; } /** *

* The ARN of the image from which this builder was created. *

* * @return The ARN of the image from which this builder was created. */ public String getImageArn() { return this.imageArn; } /** *

* The ARN of the image from which this builder was created. *

* * @param imageArn * The ARN of the image from which this builder was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageBuilder withImageArn(String imageArn) { setImageArn(imageArn); return this; } /** *

* The description to display. *

* * @param description * The description to display. */ public void setDescription(String description) { this.description = description; } /** *

* The description to display. *

* * @return The description to display. */ public String getDescription() { return this.description; } /** *

* The description to display. *

* * @param description * The description to display. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageBuilder withDescription(String description) { setDescription(description); return this; } /** *

* The image builder name to display. *

* * @param displayName * The image builder name to display. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The image builder name to display. *

* * @return The image builder name to display. */ public String getDisplayName() { return this.displayName; } /** *

* The image builder name to display. *

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

* The VPC configuration of the image builder. *

* * @param vpcConfig * The VPC configuration of the image builder. */ public void setVpcConfig(VpcConfig vpcConfig) { this.vpcConfig = vpcConfig; } /** *

* The VPC configuration of the image builder. *

* * @return The VPC configuration of the image builder. */ public VpcConfig getVpcConfig() { return this.vpcConfig; } /** *

* The VPC configuration of the image builder. *

* * @param vpcConfig * The VPC configuration of the image builder. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageBuilder withVpcConfig(VpcConfig vpcConfig) { setVpcConfig(vpcConfig); return this; } /** *

* The instance type for the image builder. The following instance types are available: *

* * * @param instanceType * The instance type for the image builder. The following instance types are available:

*