/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloud9.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an Cloud9 development environment. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Environment implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the environment. *
*/ private String id; /** ** The name of the environment. *
*/ private String name; /** ** The description for the environment. *
*/ private String description; /** ** The type of environment. Valid values include the following: *
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* The connection type used for connecting to an Amazon EC2 environment. CONNECT_SSH
is selected by
* default.
*
* The Amazon Resource Name (ARN) of the environment. *
*/ private String arn; /** ** The Amazon Resource Name (ARN) of the environment owner. *
*/ private String ownerArn; /** ** The state of the environment in its creation or deletion lifecycle. *
*/ private EnvironmentLifecycle lifecycle; /** ** Describes the status of Amazon Web Services managed temporary credentials for the Cloud9 environment. Available * values are: *
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* The ID of the environment. *
* * @param id * The ID of the environment. */ public void setId(String id) { this.id = id; } /** ** The ID of the environment. *
* * @return The ID of the environment. */ public String getId() { return this.id; } /** ** The ID of the environment. *
* * @param id * The ID of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withId(String id) { setId(id); return this; } /** ** The name of the environment. *
* * @param name * The name of the environment. */ public void setName(String name) { this.name = name; } /** ** The name of the environment. *
* * @return The name of the environment. */ public String getName() { return this.name; } /** ** The name of the environment. *
* * @param name * The name of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withName(String name) { setName(name); return this; } /** ** The description for the environment. *
* * @param description * The description for the environment. */ public void setDescription(String description) { this.description = description; } /** ** The description for the environment. *
* * @return The description for the environment. */ public String getDescription() { return this.description; } /** ** The description for the environment. *
* * @param description * The description for the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withDescription(String description) { setDescription(description); return this; } /** ** The type of environment. Valid values include the following: *
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* The type of environment. Valid values include the following: *
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* The type of environment. Valid values include the following: *
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* The type of environment. Valid values include the following: *
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* ec2
: An Amazon Elastic Compute Cloud (Amazon EC2) instance connects to the environment.
*
* ssh
: Your own server connects to the environment.
*
* The connection type used for connecting to an Amazon EC2 environment. CONNECT_SSH
is selected by
* default.
*
CONNECT_SSH
is selected
* by default.
* @see ConnectionType
*/
public void setConnectionType(String connectionType) {
this.connectionType = connectionType;
}
/**
*
* The connection type used for connecting to an Amazon EC2 environment. CONNECT_SSH
is selected by
* default.
*
CONNECT_SSH
is
* selected by default.
* @see ConnectionType
*/
public String getConnectionType() {
return this.connectionType;
}
/**
*
* The connection type used for connecting to an Amazon EC2 environment. CONNECT_SSH
is selected by
* default.
*
CONNECT_SSH
is selected
* by default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public Environment withConnectionType(String connectionType) {
setConnectionType(connectionType);
return this;
}
/**
*
* The connection type used for connecting to an Amazon EC2 environment. CONNECT_SSH
is selected by
* default.
*
CONNECT_SSH
is selected
* by default.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public Environment withConnectionType(ConnectionType connectionType) {
this.connectionType = connectionType.toString();
return this;
}
/**
* * The Amazon Resource Name (ARN) of the environment. *
* * @param arn * The Amazon Resource Name (ARN) of the environment. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the environment. *
* * @return The Amazon Resource Name (ARN) of the environment. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the environment. *
* * @param arn * The Amazon Resource Name (ARN) of the environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withArn(String arn) { setArn(arn); return this; } /** ** The Amazon Resource Name (ARN) of the environment owner. *
* * @param ownerArn * The Amazon Resource Name (ARN) of the environment owner. */ public void setOwnerArn(String ownerArn) { this.ownerArn = ownerArn; } /** ** The Amazon Resource Name (ARN) of the environment owner. *
* * @return The Amazon Resource Name (ARN) of the environment owner. */ public String getOwnerArn() { return this.ownerArn; } /** ** The Amazon Resource Name (ARN) of the environment owner. *
* * @param ownerArn * The Amazon Resource Name (ARN) of the environment owner. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withOwnerArn(String ownerArn) { setOwnerArn(ownerArn); return this; } /** ** The state of the environment in its creation or deletion lifecycle. *
* * @param lifecycle * The state of the environment in its creation or deletion lifecycle. */ public void setLifecycle(EnvironmentLifecycle lifecycle) { this.lifecycle = lifecycle; } /** ** The state of the environment in its creation or deletion lifecycle. *
* * @return The state of the environment in its creation or deletion lifecycle. */ public EnvironmentLifecycle getLifecycle() { return this.lifecycle; } /** ** The state of the environment in its creation or deletion lifecycle. *
* * @param lifecycle * The state of the environment in its creation or deletion lifecycle. * @return Returns a reference to this object so that method calls can be chained together. */ public Environment withLifecycle(EnvironmentLifecycle lifecycle) { setLifecycle(lifecycle); return this; } /** ** Describes the status of Amazon Web Services managed temporary credentials for the Cloud9 environment. Available * values are: *
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* Describes the status of Amazon Web Services managed temporary credentials for the Cloud9 environment. Available * values are: *
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* Describes the status of Amazon Web Services managed temporary credentials for the Cloud9 environment. Available * values are: *
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* Describes the status of Amazon Web Services managed temporary credentials for the Cloud9 environment. Available * values are: *
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* ENABLED_ON_CREATE
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*
* DISABLED_BY_OWNER
*
* DISABLED_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_COLLABORATOR
*
* PENDING_REMOVAL_BY_OWNER
*
* FAILED_REMOVAL_BY_COLLABORATOR
*
* ENABLED_BY_OWNER
*
* DISABLED_BY_DEFAULT
*