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

com.amazonaws.services.autoscaling.model.Instance Maven / Gradle / Ivy

/*
 * Copyright 2010 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.autoscaling.model;

/**
 * 

* The Instance data type. *

*/ public class Instance { /** * Specifies EC2 instance ID. *

* Constraints:
* Length: 1 - 16
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String instanceId; /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String availabilityZone; /** * Contains a description of the current lifecycle state. *

* Constraints:
* Length: 1 - 32
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String lifecycleState; /** * Specifies EC2 instance ID. *

* Constraints:
* Length: 1 - 16
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return Specifies EC2 instance ID. */ public String getInstanceId() { return instanceId; } /** * Specifies EC2 instance ID. *

* Constraints:
* Length: 1 - 16
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param instanceId Specifies EC2 instance ID. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** * Specifies EC2 instance ID. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 16
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param instanceId Specifies EC2 instance ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public Instance withInstanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return */ public String getAvailabilityZone() { return availabilityZone; } /** * *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param availabilityZone */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** * *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 255
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param availabilityZone * * @return A reference to this updated object so that method calls can be chained * together. */ public Instance withAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; return this; } /** * Contains a description of the current lifecycle state. *

* Constraints:
* Length: 1 - 32
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return Contains a description of the current lifecycle state. */ public String getLifecycleState() { return lifecycleState; } /** * Contains a description of the current lifecycle state. *

* Constraints:
* Length: 1 - 32
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param lifecycleState Contains a description of the current lifecycle state. */ public void setLifecycleState(String lifecycleState) { this.lifecycleState = lifecycleState; } /** * Contains a description of the current lifecycle state. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 1 - 32
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param lifecycleState Contains a description of the current lifecycle state. * * @return A reference to this updated object so that method calls can be chained * together. */ public Instance withLifecycleState(String lifecycleState) { this.lifecycleState = lifecycleState; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("InstanceId: " + instanceId + ", "); sb.append("AvailabilityZone: " + availabilityZone + ", "); sb.append("LifecycleState: " + lifecycleState + ", "); sb.append("}"); return sb.toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy