All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cloud9.model.CreateEnvironmentEC2Request Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Cloud9 module holds the client classes that are used for communicating with AWS Cloud9 Service

The newest version!
/*
 * Copyright 2019-2024 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.cloud9.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 CreateEnvironmentEC2Request extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the environment to create. *

*

* This name is visible to other IAM users in the same Amazon Web Services account. *

*/ private String name; /** *

* The description of the environment to create. *

*/ private String description; /** *

* A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time. *

*

* For more information, see Client Tokens in * the Amazon EC2 API Reference. *

*/ private String clientRequestToken; /** *

* The type of instance to connect to the environment (for example, t2.micro). *

*/ private String instanceType; /** *

* The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. *

*/ private String subnetId; /** *

* The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for * the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path. *

*

* From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services * CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

*

* We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

*

* Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

*

* AMI aliases *

*
    *
  • *

    * Amazon Linux 2: amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: ubuntu-22.04-x86_64 *

    *
  • *
*

* SSM paths *

*
    *
  • *

    * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

    *
  • *
*/ private String imageId; /** *

* The number of minutes until the running instance is shut down after the environment has last been used. *

*/ private Integer automaticStopTimeMinutes; /** *

* The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If this * value is not specified, the ARN defaults to this environment's creator. *

*/ private String ownerArn; /** *

* An array of key-value pairs that will be associated with the new Cloud9 development environment. *

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

* The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH * (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager). *

*

* For more information, see Accessing * no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. *

*/ private String connectionType; /** *

* Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. *

*/ private Boolean dryRun; /** *

* The name of the environment to create. *

*

* This name is visible to other IAM users in the same Amazon Web Services account. *

* * @param name * The name of the environment to create.

*

* This name is visible to other IAM users in the same Amazon Web Services account. */ public void setName(String name) { this.name = name; } /** *

* The name of the environment to create. *

*

* This name is visible to other IAM users in the same Amazon Web Services account. *

* * @return The name of the environment to create.

*

* This name is visible to other IAM users in the same Amazon Web Services account. */ public String getName() { return this.name; } /** *

* The name of the environment to create. *

*

* This name is visible to other IAM users in the same Amazon Web Services account. *

* * @param name * The name of the environment to create.

*

* This name is visible to other IAM users in the same Amazon Web Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withName(String name) { setName(name); return this; } /** *

* The description of the environment to create. *

* * @param description * The description of the environment to create. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the environment to create. *

* * @return The description of the environment to create. */ public String getDescription() { return this.description; } /** *

* The description of the environment to create. *

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

* A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time. *

*

* For more information, see Client Tokens in * the Amazon EC2 API Reference. *

* * @param clientRequestToken * A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one * time.

*

* For more information, see Client * Tokens in the Amazon EC2 API Reference. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time. *

*

* For more information, see Client Tokens in * the Amazon EC2 API Reference. *

* * @return A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one * time.

*

* For more information, see Client * Tokens in the Amazon EC2 API Reference. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one time. *

*

* For more information, see Client Tokens in * the Amazon EC2 API Reference. *

* * @param clientRequestToken * A unique, case-sensitive string that helps Cloud9 to ensure this operation completes no more than one * time.

*

* For more information, see Client * Tokens in the Amazon EC2 API Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* The type of instance to connect to the environment (for example, t2.micro). *

* * @param instanceType * The type of instance to connect to the environment (for example, t2.micro). */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The type of instance to connect to the environment (for example, t2.micro). *

* * @return The type of instance to connect to the environment (for example, t2.micro). */ public String getInstanceType() { return this.instanceType; } /** *

* The type of instance to connect to the environment (for example, t2.micro). *

* * @param instanceType * The type of instance to connect to the environment (for example, t2.micro). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. *

* * @param subnetId * The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** *

* The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. *

* * @return The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. */ public String getSubnetId() { return this.subnetId; } /** *

* The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. *

* * @param subnetId * The ID of the subnet in Amazon VPC that Cloud9 will use to communicate with the Amazon EC2 instance. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withSubnetId(String subnetId) { setSubnetId(subnetId); return this; } /** *

* The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for * the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path. *

*

* From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services * CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

*

* We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

*

* Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

*

* AMI aliases *

*
    *
  • *

    * Amazon Linux 2: amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: ubuntu-22.04-x86_64 *

    *
  • *
*

* SSM paths *

*
    *
  • *

    * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

    *
  • *
* * @param imageId * The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI * for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path.

*

* From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web * Services CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

*

* We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

*

* Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

*

* AMI aliases *

*
    *
  • *

    * Amazon Linux 2: amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: ubuntu-22.04-x86_64 *

    *
  • *
*

* SSM paths *

*
    *
  • *

    * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

    *
  • *
  • *

    * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

    *
  • *
  • *

    * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

    *
  • *
  • *

    * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

    *
  • */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

    * The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for * the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path. *

    *

    * From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services * CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

    *

    * We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

    *

    * Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

    *

    * AMI aliases *

    *
      *
    • *

      * Amazon Linux 2: amazonlinux-2-x86_64 *

      *
    • *
    • *

      * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

      *
    • *
    • *

      * Ubuntu 18.04: ubuntu-18.04-x86_64 *

      *
    • *
    • *

      * Ubuntu 22.04: ubuntu-22.04-x86_64 *

      *
    • *
    *

    * SSM paths *

    *
      *
    • *

      * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

      *
    • *
    • *

      * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

      *
    • *
    • *

      * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

      *
    • *
    • *

      * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

      *
    • *
    * * @return The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an * AMI for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) * path.

    *

    * From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web * Services CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

    *

    * We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

    *

    * Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

    *

    * AMI aliases *

    *
      *
    • *

      * Amazon Linux 2: amazonlinux-2-x86_64 *

      *
    • *
    • *

      * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

      *
    • *
    • *

      * Ubuntu 18.04: ubuntu-18.04-x86_64 *

      *
    • *
    • *

      * Ubuntu 22.04: ubuntu-22.04-x86_64 *

      *
    • *
    *

    * SSM paths *

    *
      *
    • *

      * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

      *
    • *
    • *

      * Amazon Linux 2023 (recommended): * resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

      *
    • *
    • *

      * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

      *
    • *
    • *

      * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

      *
    • */ public String getImageId() { return this.imageId; } /** *

      * The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for * the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path. *

      *

      * From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web Services * CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

      *

      * We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

      *

      * Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

      *

      * AMI aliases *

      *
        *
      • *

        * Amazon Linux 2: amazonlinux-2-x86_64 *

        *
      • *
      • *

        * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

        *
      • *
      • *

        * Ubuntu 18.04: ubuntu-18.04-x86_64 *

        *
      • *
      • *

        * Ubuntu 22.04: ubuntu-22.04-x86_64 *

        *
      • *
      *

      * SSM paths *

      *
        *
      • *

        * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

        *
      • *
      • *

        * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

        *
      • *
      • *

        * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

        *
      • *
      • *

        * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

        *
      • *
      * * @param imageId * The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI * for the instance, you must specify a valid AMI alias or a valid Amazon EC2 Systems Manager (SSM) path.

      *

      * From December 04, 2023, you will be required to include the imageId parameter for the * CreateEnvironmentEC2 action. This change will be reflected across all direct methods of * communicating with the API, such as Amazon Web Services SDK, Amazon Web Services CLI and Amazon Web * Services CloudFormation. This change will only affect direct API consumers, and not Cloud9 console users. *

      *

      * We recommend using Amazon Linux 2023 as the AMI to create your environment as it is fully supported. *

      *

      * Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *

      *

      * AMI aliases *

      *
        *
      • *

        * Amazon Linux 2: amazonlinux-2-x86_64 *

        *
      • *
      • *

        * Amazon Linux 2023 (recommended): amazonlinux-2023-x86_64 *

        *
      • *
      • *

        * Ubuntu 18.04: ubuntu-18.04-x86_64 *

        *
      • *
      • *

        * Ubuntu 22.04: ubuntu-22.04-x86_64 *

        *
      • *
      *

      * SSM paths *

      *
        *
      • *

        * Amazon Linux 2: resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64 *

        *
      • *
      • *

        * Amazon Linux 2023 (recommended): resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2023-x86_64 *

        *
      • *
      • *

        * Ubuntu 18.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64 *

        *
      • *
      • *

        * Ubuntu 22.04: resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64 *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withImageId(String imageId) { setImageId(imageId); return this; } /** *

        * The number of minutes until the running instance is shut down after the environment has last been used. *

        * * @param automaticStopTimeMinutes * The number of minutes until the running instance is shut down after the environment has last been used. */ public void setAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes) { this.automaticStopTimeMinutes = automaticStopTimeMinutes; } /** *

        * The number of minutes until the running instance is shut down after the environment has last been used. *

        * * @return The number of minutes until the running instance is shut down after the environment has last been used. */ public Integer getAutomaticStopTimeMinutes() { return this.automaticStopTimeMinutes; } /** *

        * The number of minutes until the running instance is shut down after the environment has last been used. *

        * * @param automaticStopTimeMinutes * The number of minutes until the running instance is shut down after the environment has last been used. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withAutomaticStopTimeMinutes(Integer automaticStopTimeMinutes) { setAutomaticStopTimeMinutes(automaticStopTimeMinutes); return this; } /** *

        * The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If this * value is not specified, the ARN defaults to this environment's creator. *

        * * @param ownerArn * The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If * this value is not specified, the ARN defaults to this environment's creator. */ public void setOwnerArn(String ownerArn) { this.ownerArn = ownerArn; } /** *

        * The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If this * value is not specified, the ARN defaults to this environment's creator. *

        * * @return The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If * this value is not specified, the ARN defaults to this environment's creator. */ public String getOwnerArn() { return this.ownerArn; } /** *

        * The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If this * value is not specified, the ARN defaults to this environment's creator. *

        * * @param ownerArn * The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any IAM principal. If * this value is not specified, the ARN defaults to this environment's creator. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withOwnerArn(String ownerArn) { setOwnerArn(ownerArn); return this; } /** *

        * An array of key-value pairs that will be associated with the new Cloud9 development environment. *

        * * @return An array of key-value pairs that will be associated with the new Cloud9 development environment. */ public java.util.List getTags() { return tags; } /** *

        * An array of key-value pairs that will be associated with the new Cloud9 development environment. *

        * * @param tags * An array of key-value pairs that will be associated with the new Cloud9 development environment. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

        * An array of key-value pairs that will be associated with the new Cloud9 development environment. *

        *

        * NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

        * * @param tags * An array of key-value pairs that will be associated with the new Cloud9 development environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

        * An array of key-value pairs that will be associated with the new Cloud9 development environment. *

        * * @param tags * An array of key-value pairs that will be associated with the new Cloud9 development environment. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

        * The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH * (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager). *

        *

        * For more information, see Accessing * no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. *

        * * @param connectionType * The connection type used for connecting to an Amazon EC2 environment. Valid values are * CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems * Manager).

        *

        * For more information, see Accessing no-ingress EC2 * instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. * @see ConnectionType */ public void setConnectionType(String connectionType) { this.connectionType = connectionType; } /** *

        * The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH * (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager). *

        *

        * For more information, see Accessing * no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. *

        * * @return The connection type used for connecting to an Amazon EC2 environment. Valid values are * CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems * Manager).

        *

        * For more information, see Accessing no-ingress EC2 * instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. * @see ConnectionType */ public String getConnectionType() { return this.connectionType; } /** *

        * The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH * (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager). *

        *

        * For more information, see Accessing * no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. *

        * * @param connectionType * The connection type used for connecting to an Amazon EC2 environment. Valid values are * CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems * Manager).

        *

        * For more information, see Accessing no-ingress EC2 * instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionType */ public CreateEnvironmentEC2Request withConnectionType(String connectionType) { setConnectionType(connectionType); return this; } /** *

        * The connection type used for connecting to an Amazon EC2 environment. Valid values are CONNECT_SSH * (default) and CONNECT_SSM (connected through Amazon EC2 Systems Manager). *

        *

        * For more information, see Accessing * no-ingress EC2 instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. *

        * * @param connectionType * The connection type used for connecting to an Amazon EC2 environment. Valid values are * CONNECT_SSH (default) and CONNECT_SSM (connected through Amazon EC2 Systems * Manager).

        *

        * For more information, see Accessing no-ingress EC2 * instances with Amazon EC2 Systems Manager in the Cloud9 User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectionType */ public CreateEnvironmentEC2Request withConnectionType(ConnectionType connectionType) { this.connectionType = connectionType.toString(); return this; } /** *

        * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. *

        * * @param dryRun * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. */ public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } /** *

        * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. *

        * * @return Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. */ public Boolean getDryRun() { return this.dryRun; } /** *

        * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. *

        * * @param dryRun * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentEC2Request withDryRun(Boolean dryRun) { setDryRun(dryRun); return this; } /** *

        * Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. *

        * * @return Checks whether you have the required permissions for the action, without actually making the request, and * provides an error response. If you have the required permissions, the error response is * DryRunOperation. Otherwise, it is UnauthorizedOperation. */ public Boolean isDryRun() { return this.dryRun; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getSubnetId() != null) sb.append("SubnetId: ").append(getSubnetId()).append(","); if (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getAutomaticStopTimeMinutes() != null) sb.append("AutomaticStopTimeMinutes: ").append(getAutomaticStopTimeMinutes()).append(","); if (getOwnerArn() != null) sb.append("OwnerArn: ").append(getOwnerArn()).append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getConnectionType() != null) sb.append("ConnectionType: ").append(getConnectionType()).append(","); if (getDryRun() != null) sb.append("DryRun: ").append(getDryRun()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateEnvironmentEC2Request == false) return false; CreateEnvironmentEC2Request other = (CreateEnvironmentEC2Request) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getSubnetId() == null ^ this.getSubnetId() == null) return false; if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false) return false; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getAutomaticStopTimeMinutes() == null ^ this.getAutomaticStopTimeMinutes() == null) return false; if (other.getAutomaticStopTimeMinutes() != null && other.getAutomaticStopTimeMinutes().equals(this.getAutomaticStopTimeMinutes()) == false) return false; if (other.getOwnerArn() == null ^ this.getOwnerArn() == null) return false; if (other.getOwnerArn() != null && other.getOwnerArn().equals(this.getOwnerArn()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getConnectionType() == null ^ this.getConnectionType() == null) return false; if (other.getConnectionType() != null && other.getConnectionType().equals(this.getConnectionType()) == false) return false; if (other.getDryRun() == null ^ this.getDryRun() == null) return false; if (other.getDryRun() != null && other.getDryRun().equals(this.getDryRun()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getAutomaticStopTimeMinutes() == null) ? 0 : getAutomaticStopTimeMinutes().hashCode()); hashCode = prime * hashCode + ((getOwnerArn() == null) ? 0 : getOwnerArn().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getConnectionType() == null) ? 0 : getConnectionType().hashCode()); hashCode = prime * hashCode + ((getDryRun() == null) ? 0 : getDryRun().hashCode()); return hashCode; } @Override public CreateEnvironmentEC2Request clone() { return (CreateEnvironmentEC2Request) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy