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

com.amazonaws.services.ec2.model.DescribeFastLaunchImagesSuccessItem Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2017-2022 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.ec2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Describe details about a fast-launch enabled Windows image that meets the requested criteria. Criteria are defined by * the DescribeFastLaunchImages action filters. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeFastLaunchImagesSuccessItem implements Serializable, Cloneable { /** *

* The image ID that identifies the fast-launch enabled Windows image. *

*/ private String imageId; /** *

* The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. *

*/ private String resourceType; /** *

* A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. *

*/ private FastLaunchSnapshotConfigurationResponse snapshotConfiguration; /** *

* The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. *

*/ private FastLaunchLaunchTemplateSpecificationResponse launchTemplate; /** *

* The maximum number of parallel instances that are launched for creating resources. *

*/ private Integer maxParallelLaunches; /** *

* The owner ID for the fast-launch enabled Windows AMI. *

*/ private String ownerId; /** *

* The current state of faster launching for the specified Windows AMI. *

*/ private String state; /** *

* The reason that faster launching for the Windows AMI changed to the current state. *

*/ private String stateTransitionReason; /** *

* The time that faster launching for the Windows AMI changed to the current state. *

*/ private java.util.Date stateTransitionTime; /** *

* The image ID that identifies the fast-launch enabled Windows image. *

* * @param imageId * The image ID that identifies the fast-launch enabled Windows image. */ public void setImageId(String imageId) { this.imageId = imageId; } /** *

* The image ID that identifies the fast-launch enabled Windows image. *

* * @return The image ID that identifies the fast-launch enabled Windows image. */ public String getImageId() { return this.imageId; } /** *

* The image ID that identifies the fast-launch enabled Windows image. *

* * @param imageId * The image ID that identifies the fast-launch enabled Windows image. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withImageId(String imageId) { setImageId(imageId); return this; } /** *

* The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. *

* * @param resourceType * The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. * @see FastLaunchResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. *

* * @return The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. * @see FastLaunchResourceType */ public String getResourceType() { return this.resourceType; } /** *

* The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. *

* * @param resourceType * The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see FastLaunchResourceType */ public DescribeFastLaunchImagesSuccessItem withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. *

* * @param resourceType * The resource type that is used for pre-provisioning the Windows AMI. Supported values include: * snapshot. * @return Returns a reference to this object so that method calls can be chained together. * @see FastLaunchResourceType */ public DescribeFastLaunchImagesSuccessItem withResourceType(FastLaunchResourceType resourceType) { this.resourceType = resourceType.toString(); return this; } /** *

* A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. *

* * @param snapshotConfiguration * A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. */ public void setSnapshotConfiguration(FastLaunchSnapshotConfigurationResponse snapshotConfiguration) { this.snapshotConfiguration = snapshotConfiguration; } /** *

* A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. *

* * @return A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. */ public FastLaunchSnapshotConfigurationResponse getSnapshotConfiguration() { return this.snapshotConfiguration; } /** *

* A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. *

* * @param snapshotConfiguration * A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withSnapshotConfiguration(FastLaunchSnapshotConfigurationResponse snapshotConfiguration) { setSnapshotConfiguration(snapshotConfiguration); return this; } /** *

* The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. *

* * @param launchTemplate * The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. */ public void setLaunchTemplate(FastLaunchLaunchTemplateSpecificationResponse launchTemplate) { this.launchTemplate = launchTemplate; } /** *

* The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. *

* * @return The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. */ public FastLaunchLaunchTemplateSpecificationResponse getLaunchTemplate() { return this.launchTemplate; } /** *

* The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. *

* * @param launchTemplate * The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from * pre-provisioned snapshots. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withLaunchTemplate(FastLaunchLaunchTemplateSpecificationResponse launchTemplate) { setLaunchTemplate(launchTemplate); return this; } /** *

* The maximum number of parallel instances that are launched for creating resources. *

* * @param maxParallelLaunches * The maximum number of parallel instances that are launched for creating resources. */ public void setMaxParallelLaunches(Integer maxParallelLaunches) { this.maxParallelLaunches = maxParallelLaunches; } /** *

* The maximum number of parallel instances that are launched for creating resources. *

* * @return The maximum number of parallel instances that are launched for creating resources. */ public Integer getMaxParallelLaunches() { return this.maxParallelLaunches; } /** *

* The maximum number of parallel instances that are launched for creating resources. *

* * @param maxParallelLaunches * The maximum number of parallel instances that are launched for creating resources. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withMaxParallelLaunches(Integer maxParallelLaunches) { setMaxParallelLaunches(maxParallelLaunches); return this; } /** *

* The owner ID for the fast-launch enabled Windows AMI. *

* * @param ownerId * The owner ID for the fast-launch enabled Windows AMI. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** *

* The owner ID for the fast-launch enabled Windows AMI. *

* * @return The owner ID for the fast-launch enabled Windows AMI. */ public String getOwnerId() { return this.ownerId; } /** *

* The owner ID for the fast-launch enabled Windows AMI. *

* * @param ownerId * The owner ID for the fast-launch enabled Windows AMI. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withOwnerId(String ownerId) { setOwnerId(ownerId); return this; } /** *

* The current state of faster launching for the specified Windows AMI. *

* * @param state * The current state of faster launching for the specified Windows AMI. * @see FastLaunchStateCode */ public void setState(String state) { this.state = state; } /** *

* The current state of faster launching for the specified Windows AMI. *

* * @return The current state of faster launching for the specified Windows AMI. * @see FastLaunchStateCode */ public String getState() { return this.state; } /** *

* The current state of faster launching for the specified Windows AMI. *

* * @param state * The current state of faster launching for the specified Windows AMI. * @return Returns a reference to this object so that method calls can be chained together. * @see FastLaunchStateCode */ public DescribeFastLaunchImagesSuccessItem withState(String state) { setState(state); return this; } /** *

* The current state of faster launching for the specified Windows AMI. *

* * @param state * The current state of faster launching for the specified Windows AMI. * @return Returns a reference to this object so that method calls can be chained together. * @see FastLaunchStateCode */ public DescribeFastLaunchImagesSuccessItem withState(FastLaunchStateCode state) { this.state = state.toString(); return this; } /** *

* The reason that faster launching for the Windows AMI changed to the current state. *

* * @param stateTransitionReason * The reason that faster launching for the Windows AMI changed to the current state. */ public void setStateTransitionReason(String stateTransitionReason) { this.stateTransitionReason = stateTransitionReason; } /** *

* The reason that faster launching for the Windows AMI changed to the current state. *

* * @return The reason that faster launching for the Windows AMI changed to the current state. */ public String getStateTransitionReason() { return this.stateTransitionReason; } /** *

* The reason that faster launching for the Windows AMI changed to the current state. *

* * @param stateTransitionReason * The reason that faster launching for the Windows AMI changed to the current state. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withStateTransitionReason(String stateTransitionReason) { setStateTransitionReason(stateTransitionReason); return this; } /** *

* The time that faster launching for the Windows AMI changed to the current state. *

* * @param stateTransitionTime * The time that faster launching for the Windows AMI changed to the current state. */ public void setStateTransitionTime(java.util.Date stateTransitionTime) { this.stateTransitionTime = stateTransitionTime; } /** *

* The time that faster launching for the Windows AMI changed to the current state. *

* * @return The time that faster launching for the Windows AMI changed to the current state. */ public java.util.Date getStateTransitionTime() { return this.stateTransitionTime; } /** *

* The time that faster launching for the Windows AMI changed to the current state. *

* * @param stateTransitionTime * The time that faster launching for the Windows AMI changed to the current state. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeFastLaunchImagesSuccessItem withStateTransitionTime(java.util.Date stateTransitionTime) { setStateTransitionTime(stateTransitionTime); return this; } /** * 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 (getImageId() != null) sb.append("ImageId: ").append(getImageId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getSnapshotConfiguration() != null) sb.append("SnapshotConfiguration: ").append(getSnapshotConfiguration()).append(","); if (getLaunchTemplate() != null) sb.append("LaunchTemplate: ").append(getLaunchTemplate()).append(","); if (getMaxParallelLaunches() != null) sb.append("MaxParallelLaunches: ").append(getMaxParallelLaunches()).append(","); if (getOwnerId() != null) sb.append("OwnerId: ").append(getOwnerId()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getStateTransitionReason() != null) sb.append("StateTransitionReason: ").append(getStateTransitionReason()).append(","); if (getStateTransitionTime() != null) sb.append("StateTransitionTime: ").append(getStateTransitionTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeFastLaunchImagesSuccessItem == false) return false; DescribeFastLaunchImagesSuccessItem other = (DescribeFastLaunchImagesSuccessItem) obj; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getSnapshotConfiguration() == null ^ this.getSnapshotConfiguration() == null) return false; if (other.getSnapshotConfiguration() != null && other.getSnapshotConfiguration().equals(this.getSnapshotConfiguration()) == false) return false; if (other.getLaunchTemplate() == null ^ this.getLaunchTemplate() == null) return false; if (other.getLaunchTemplate() != null && other.getLaunchTemplate().equals(this.getLaunchTemplate()) == false) return false; if (other.getMaxParallelLaunches() == null ^ this.getMaxParallelLaunches() == null) return false; if (other.getMaxParallelLaunches() != null && other.getMaxParallelLaunches().equals(this.getMaxParallelLaunches()) == false) return false; if (other.getOwnerId() == null ^ this.getOwnerId() == null) return false; if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getStateTransitionReason() == null ^ this.getStateTransitionReason() == null) return false; if (other.getStateTransitionReason() != null && other.getStateTransitionReason().equals(this.getStateTransitionReason()) == false) return false; if (other.getStateTransitionTime() == null ^ this.getStateTransitionTime() == null) return false; if (other.getStateTransitionTime() != null && other.getStateTransitionTime().equals(this.getStateTransitionTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getSnapshotConfiguration() == null) ? 0 : getSnapshotConfiguration().hashCode()); hashCode = prime * hashCode + ((getLaunchTemplate() == null) ? 0 : getLaunchTemplate().hashCode()); hashCode = prime * hashCode + ((getMaxParallelLaunches() == null) ? 0 : getMaxParallelLaunches().hashCode()); hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode()); hashCode = prime * hashCode + ((getStateTransitionTime() == null) ? 0 : getStateTransitionTime().hashCode()); return hashCode; } @Override public DescribeFastLaunchImagesSuccessItem clone() { try { return (DescribeFastLaunchImagesSuccessItem) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy