/** * 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 namespace Aws { namespace AppStream { namespace Model { /** */ class UpdateAppBlockBuilderRequest : public AppStreamRequest { public: AWS_APPSTREAM_API UpdateAppBlockBuilderRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAppBlockBuilder"; } AWS_APPSTREAM_API Aws::String SerializePayload() const override; AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The unique name for the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The description of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The display name of the app block builder.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

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

The platform of the app block builder.

* WINDOWS_SERVER_2019 is the only valid value.

*/ inline UpdateAppBlockBuilderRequest& WithPlatform(PlatformType&& value) { SetPlatform(std::move(value)); 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

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

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

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

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

    *
*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = 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

    *
*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(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

    *
*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(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

    *
*/ inline UpdateAppBlockBuilderRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); 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

    *
*/ inline UpdateAppBlockBuilderRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); 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

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

The VPC configuration for the app block builder.

App block builders * require that you specify at least two subnets in different availability * zones.

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

Enables or disables default internet access for the app block builder.

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

Enables or disables default internet access for the app block builder.

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

Enables or disables default internet access for the app block builder.

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

Enables or disables default internet access for the app block builder.

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

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.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateAppBlockBuilderRequest& AddAccessEndpoints(AccessEndpoint&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.push_back(std::move(value)); return *this; } /** *

The attributes to delete from the app block builder.

*/ inline const Aws::Vector& GetAttributesToDelete() const{ return m_attributesToDelete; } /** *

The attributes to delete from the app block builder.

*/ inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; } /** *

The attributes to delete from the app block builder.

*/ inline void SetAttributesToDelete(const Aws::Vector& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete = value; } /** *

The attributes to delete from the app block builder.

*/ inline void SetAttributesToDelete(Aws::Vector&& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete = std::move(value); } /** *

The attributes to delete from the app block builder.

*/ inline UpdateAppBlockBuilderRequest& WithAttributesToDelete(const Aws::Vector& value) { SetAttributesToDelete(value); return *this;} /** *

The attributes to delete from the app block builder.

*/ inline UpdateAppBlockBuilderRequest& WithAttributesToDelete(Aws::Vector&& value) { SetAttributesToDelete(std::move(value)); return *this;} /** *

The attributes to delete from the app block builder.

*/ inline UpdateAppBlockBuilderRequest& AddAttributesToDelete(const AppBlockBuilderAttribute& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete.push_back(value); return *this; } /** *

The attributes to delete from the app block builder.

*/ inline UpdateAppBlockBuilderRequest& AddAttributesToDelete(AppBlockBuilderAttribute&& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; PlatformType m_platform; bool m_platformHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; bool m_enableDefaultInternetAccess; bool m_enableDefaultInternetAccessHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; Aws::Vector m_accessEndpoints; bool m_accessEndpointsHasBeenSet = false; Aws::Vector m_attributesToDelete; bool m_attributesToDeleteHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws