/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppStream { namespace Model { /** *

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

See * Also:

AWS * API Reference

*/ class ImageBuilder { public: AWS_APPSTREAM_API ImageBuilder(); AWS_APPSTREAM_API ImageBuilder(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API ImageBuilder& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the image builder.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the image builder.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the image builder.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the image builder.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the image builder.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the image builder.

*/ inline ImageBuilder& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the image builder.

*/ inline ImageBuilder& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the image builder.

*/ inline ImageBuilder& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN for the image builder.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN for the image builder.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN for the image builder.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN for the image builder.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN for the image builder.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN for the image builder.

*/ inline ImageBuilder& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN for the image builder.

*/ inline ImageBuilder& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN for the image builder.

*/ inline ImageBuilder& WithArn(const char* value) { SetArn(value); return *this;} /** *

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

*/ inline const Aws::String& GetImageArn() const{ return m_imageArn; } /** *

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

*/ inline bool ImageArnHasBeenSet() const { return m_imageArnHasBeenSet; } /** *

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

*/ inline void SetImageArn(const Aws::String& value) { m_imageArnHasBeenSet = true; m_imageArn = value; } /** *

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

*/ inline void SetImageArn(Aws::String&& value) { m_imageArnHasBeenSet = true; m_imageArn = std::move(value); } /** *

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

*/ inline void SetImageArn(const char* value) { m_imageArnHasBeenSet = true; m_imageArn.assign(value); } /** *

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

*/ inline ImageBuilder& WithImageArn(const Aws::String& value) { SetImageArn(value); return *this;} /** *

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

*/ inline ImageBuilder& WithImageArn(Aws::String&& value) { SetImageArn(std::move(value)); return *this;} /** *

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

*/ inline ImageBuilder& WithImageArn(const char* value) { SetImageArn(value); return *this;} /** *

The description to display.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description to display.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description to display.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description to display.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description to display.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description to display.

*/ inline ImageBuilder& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description to display.

*/ inline ImageBuilder& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description to display.

*/ inline ImageBuilder& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The image builder name to display.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The image builder name to display.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The image builder name to display.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The image builder name to display.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The image builder name to display.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The image builder name to display.

*/ inline ImageBuilder& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The image builder name to display.

*/ inline ImageBuilder& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The image builder name to display.

*/ inline ImageBuilder& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The VPC configuration of the image builder.

*/ inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } /** *

The VPC configuration of the image builder.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

The VPC configuration of the image builder.

*/ inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

The VPC configuration of the image builder.

*/ inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

The VPC configuration of the image builder.

*/ inline ImageBuilder& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} /** *

The VPC configuration of the image builder.

*/ inline ImageBuilder& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline ImageBuilder& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline ImageBuilder& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

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

  • stream.standard.small

  • *

    stream.standard.medium

  • stream.standard.large

  • *

    stream.compute.large

  • stream.compute.xlarge

  • *

    stream.compute.2xlarge

  • stream.compute.4xlarge

  • *
  • stream.compute.8xlarge

  • stream.memory.large

  • *
  • stream.memory.xlarge

  • stream.memory.2xlarge

  • *
  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • *
  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

    *
  • stream.memory.z1d.2xlarge

  • *

    stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

    *
  • stream.memory.z1d.12xlarge

  • *

    stream.graphics-design.large

  • *

    stream.graphics-design.xlarge

  • *

    stream.graphics-design.2xlarge

  • *

    stream.graphics-design.4xlarge

  • *

    stream.graphics-desktop.2xlarge

  • *

    stream.graphics.g4dn.xlarge

  • *

    stream.graphics.g4dn.2xlarge

  • *

    stream.graphics.g4dn.4xlarge

  • *

    stream.graphics.g4dn.8xlarge

  • *

    stream.graphics.g4dn.12xlarge

  • *

    stream.graphics.g4dn.16xlarge

  • *

    stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

    *
  • stream.graphics-pro.16xlarge

*/ inline ImageBuilder& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

The operating system platform of the image builder.

*/ inline const PlatformType& GetPlatform() const{ return m_platform; } /** *

The operating system platform of the image builder.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The operating system platform of the image builder.

*/ inline void SetPlatform(const PlatformType& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The operating system platform of the image builder.

*/ inline void SetPlatform(PlatformType&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The operating system platform of the image builder.

*/ inline ImageBuilder& WithPlatform(const PlatformType& value) { SetPlatform(value); return *this;} /** *

The operating system platform of the image builder.

*/ inline ImageBuilder& WithPlatform(PlatformType&& value) { SetPlatform(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

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.

*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

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.

*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *

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.

*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *

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.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *

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.

*/ inline ImageBuilder& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

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.

*/ inline ImageBuilder& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

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.

*/ inline ImageBuilder& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} /** *

The state of the image builder.

*/ inline const ImageBuilderState& GetState() const{ return m_state; } /** *

The state of the image builder.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the image builder.

*/ inline void SetState(const ImageBuilderState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the image builder.

*/ inline void SetState(ImageBuilderState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the image builder.

*/ inline ImageBuilder& WithState(const ImageBuilderState& value) { SetState(value); return *this;} /** *

The state of the image builder.

*/ inline ImageBuilder& WithState(ImageBuilderState&& value) { SetState(std::move(value)); return *this;} /** *

The reason why the last state change occurred.

*/ inline const ImageBuilderStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; } /** *

The reason why the last state change occurred.

*/ inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; } /** *

The reason why the last state change occurred.

*/ inline void SetStateChangeReason(const ImageBuilderStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; } /** *

The reason why the last state change occurred.

*/ inline void SetStateChangeReason(ImageBuilderStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); } /** *

The reason why the last state change occurred.

*/ inline ImageBuilder& WithStateChangeReason(const ImageBuilderStateChangeReason& value) { SetStateChangeReason(value); return *this;} /** *

The reason why the last state change occurred.

*/ inline ImageBuilder& WithStateChangeReason(ImageBuilderStateChangeReason&& value) { SetStateChangeReason(std::move(value)); return *this;} /** *

The time stamp when the image builder was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The time stamp when the image builder was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The time stamp when the image builder was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The time stamp when the image builder was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The time stamp when the image builder was created.

*/ inline ImageBuilder& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The time stamp when the image builder was created.

*/ inline ImageBuilder& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

Enables or disables default internet access for the image builder.

*/ inline bool GetEnableDefaultInternetAccess() const{ return m_enableDefaultInternetAccess; } /** *

Enables or disables default internet access for the image builder.

*/ inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; } /** *

Enables or disables default internet access for the image builder.

*/ inline void SetEnableDefaultInternetAccess(bool value) { m_enableDefaultInternetAccessHasBeenSet = true; m_enableDefaultInternetAccess = value; } /** *

Enables or disables default internet access for the image builder.

*/ inline ImageBuilder& WithEnableDefaultInternetAccess(bool value) { SetEnableDefaultInternetAccess(value); return *this;} /** *

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

*/ inline const DomainJoinInfo& GetDomainJoinInfo() const{ return m_domainJoinInfo; } /** *

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

*/ inline bool DomainJoinInfoHasBeenSet() const { return m_domainJoinInfoHasBeenSet; } /** *

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

*/ inline void SetDomainJoinInfo(const DomainJoinInfo& value) { m_domainJoinInfoHasBeenSet = true; m_domainJoinInfo = value; } /** *

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

*/ inline void SetDomainJoinInfo(DomainJoinInfo&& value) { m_domainJoinInfoHasBeenSet = true; m_domainJoinInfo = std::move(value); } /** *

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

*/ inline ImageBuilder& WithDomainJoinInfo(const DomainJoinInfo& value) { SetDomainJoinInfo(value); return *this;} /** *

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

*/ inline ImageBuilder& WithDomainJoinInfo(DomainJoinInfo&& value) { SetDomainJoinInfo(std::move(value)); return *this;} inline const NetworkAccessConfiguration& GetNetworkAccessConfiguration() const{ return m_networkAccessConfiguration; } inline bool NetworkAccessConfigurationHasBeenSet() const { return m_networkAccessConfigurationHasBeenSet; } inline void SetNetworkAccessConfiguration(const NetworkAccessConfiguration& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = value; } inline void SetNetworkAccessConfiguration(NetworkAccessConfiguration&& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = std::move(value); } inline ImageBuilder& WithNetworkAccessConfiguration(const NetworkAccessConfiguration& value) { SetNetworkAccessConfiguration(value); return *this;} inline ImageBuilder& WithNetworkAccessConfiguration(NetworkAccessConfiguration&& value) { SetNetworkAccessConfiguration(std::move(value)); return *this;} /** *

The image builder errors.

*/ inline const Aws::Vector& GetImageBuilderErrors() const{ return m_imageBuilderErrors; } /** *

The image builder errors.

*/ inline bool ImageBuilderErrorsHasBeenSet() const { return m_imageBuilderErrorsHasBeenSet; } /** *

The image builder errors.

*/ inline void SetImageBuilderErrors(const Aws::Vector& value) { m_imageBuilderErrorsHasBeenSet = true; m_imageBuilderErrors = value; } /** *

The image builder errors.

*/ inline void SetImageBuilderErrors(Aws::Vector&& value) { m_imageBuilderErrorsHasBeenSet = true; m_imageBuilderErrors = std::move(value); } /** *

The image builder errors.

*/ inline ImageBuilder& WithImageBuilderErrors(const Aws::Vector& value) { SetImageBuilderErrors(value); return *this;} /** *

The image builder errors.

*/ inline ImageBuilder& WithImageBuilderErrors(Aws::Vector&& value) { SetImageBuilderErrors(std::move(value)); return *this;} /** *

The image builder errors.

*/ inline ImageBuilder& AddImageBuilderErrors(const ResourceError& value) { m_imageBuilderErrorsHasBeenSet = true; m_imageBuilderErrors.push_back(value); return *this; } /** *

The image builder errors.

*/ inline ImageBuilder& AddImageBuilderErrors(ResourceError&& value) { m_imageBuilderErrorsHasBeenSet = true; m_imageBuilderErrors.push_back(std::move(value)); return *this; } /** *

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

*/ inline const Aws::String& GetAppstreamAgentVersion() const{ return m_appstreamAgentVersion; } /** *

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

*/ inline bool AppstreamAgentVersionHasBeenSet() const { return m_appstreamAgentVersionHasBeenSet; } /** *

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

*/ inline void SetAppstreamAgentVersion(const Aws::String& value) { m_appstreamAgentVersionHasBeenSet = true; m_appstreamAgentVersion = value; } /** *

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

*/ inline void SetAppstreamAgentVersion(Aws::String&& value) { m_appstreamAgentVersionHasBeenSet = true; m_appstreamAgentVersion = std::move(value); } /** *

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

*/ inline void SetAppstreamAgentVersion(const char* value) { m_appstreamAgentVersionHasBeenSet = true; m_appstreamAgentVersion.assign(value); } /** *

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

*/ inline ImageBuilder& WithAppstreamAgentVersion(const Aws::String& value) { SetAppstreamAgentVersion(value); return *this;} /** *

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

*/ inline ImageBuilder& WithAppstreamAgentVersion(Aws::String&& value) { SetAppstreamAgentVersion(std::move(value)); return *this;} /** *

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

*/ inline ImageBuilder& WithAppstreamAgentVersion(const char* value) { SetAppstreamAgentVersion(value); return *this;} /** *

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

*/ inline const Aws::Vector& GetAccessEndpoints() const{ return m_accessEndpoints; } /** *

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

*/ inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; } /** *

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

*/ inline void SetAccessEndpoints(const Aws::Vector& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = value; } /** *

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

*/ inline void SetAccessEndpoints(Aws::Vector&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = std::move(value); } /** *

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

*/ inline ImageBuilder& WithAccessEndpoints(const Aws::Vector& value) { SetAccessEndpoints(value); return *this;} /** *

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

*/ inline ImageBuilder& WithAccessEndpoints(Aws::Vector&& value) { SetAccessEndpoints(std::move(value)); return *this;} /** *

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

*/ inline ImageBuilder& AddAccessEndpoints(const AccessEndpoint& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.push_back(value); return *this; } /** *

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

*/ inline ImageBuilder& AddAccessEndpoints(AccessEndpoint&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_imageArn; bool m_imageArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; PlatformType m_platform; bool m_platformHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; ImageBuilderState m_state; bool m_stateHasBeenSet = false; ImageBuilderStateChangeReason m_stateChangeReason; bool m_stateChangeReasonHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; bool m_enableDefaultInternetAccess; bool m_enableDefaultInternetAccessHasBeenSet = false; DomainJoinInfo m_domainJoinInfo; bool m_domainJoinInfoHasBeenSet = false; NetworkAccessConfiguration m_networkAccessConfiguration; bool m_networkAccessConfigurationHasBeenSet = false; Aws::Vector m_imageBuilderErrors; bool m_imageBuilderErrorsHasBeenSet = false; Aws::String m_appstreamAgentVersion; bool m_appstreamAgentVersionHasBeenSet = false; Aws::Vector m_accessEndpoints; bool m_accessEndpointsHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws