@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFleetResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateFleetResult() |
Modifier and Type | Method and Description |
---|---|
CreateFleetResult |
clone() |
boolean |
equals(Object obj) |
List<CreateFleetError> |
getErrors()
Information about the instances that could not be launched by the fleet.
|
String |
getFleetId()
The ID of the EC2 Fleet.
|
List<CreateFleetInstance> |
getInstances()
Information about the instances that were launched by the fleet.
|
int |
hashCode() |
void |
setErrors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet.
|
void |
setFleetId(String fleetId)
The ID of the EC2 Fleet.
|
void |
setInstances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet.
|
String |
toString()
Returns a string representation of this object.
|
CreateFleetResult |
withErrors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet.
|
CreateFleetResult |
withErrors(CreateFleetError... errors)
Information about the instances that could not be launched by the fleet.
|
CreateFleetResult |
withFleetId(String fleetId)
The ID of the EC2 Fleet.
|
CreateFleetResult |
withInstances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet.
|
CreateFleetResult |
withInstances(CreateFleetInstance... instances)
Information about the instances that were launched by the fleet.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.public String getFleetId()
The ID of the EC2 Fleet.
public CreateFleetResult withFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.public List<CreateFleetError> getErrors()
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.
instant
.public void setErrors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.
errors
- Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.public CreateFleetResult withErrors(CreateFleetError... errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.
NOTE: This method appends the values to the existing list (if any). Use
setErrors(java.util.Collection)
or withErrors(java.util.Collection)
if you want to override the
existing values.
errors
- Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.public CreateFleetResult withErrors(Collection<CreateFleetError> errors)
Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.
errors
- Information about the instances that could not be launched by the fleet. Supported only for fleets of type
instant
.public List<CreateFleetInstance> getInstances()
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.
instant
.public void setInstances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.
instances
- Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.public CreateFleetResult withInstances(CreateFleetInstance... instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.public CreateFleetResult withInstances(Collection<CreateFleetInstance> instances)
Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.
instances
- Information about the instances that were launched by the fleet. Supported only for fleets of type
instant
.public String toString()
toString
in class Object
Object.toString()
public CreateFleetResult clone()
Copyright © 2025. All rights reserved.