public class ReleaseHostsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of ReleaseHosts.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
successful
The IDs of the Dedicated hosts that were successfully released.
|
private SdkInternalList<UnsuccessfulItem> |
unsuccessful
The IDs of the Dedicated hosts that could not be released, including an
error message.
|
Constructor and Description |
---|
ReleaseHostsResult() |
Modifier and Type | Method and Description |
---|---|
ReleaseHostsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getSuccessful()
The IDs of the Dedicated hosts that were successfully released.
|
java.util.List<UnsuccessfulItem> |
getUnsuccessful()
The IDs of the Dedicated hosts that could not be released, including an
error message.
|
int |
hashCode() |
void |
setSuccessful(java.util.Collection<java.lang.String> successful)
The IDs of the Dedicated hosts that were successfully released.
|
void |
setUnsuccessful(java.util.Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an
error message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReleaseHostsResult |
withSuccessful(java.util.Collection<java.lang.String> successful)
The IDs of the Dedicated hosts that were successfully released.
|
ReleaseHostsResult |
withSuccessful(java.lang.String... successful)
The IDs of the Dedicated hosts that were successfully released.
|
ReleaseHostsResult |
withUnsuccessful(java.util.Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an
error message.
|
ReleaseHostsResult |
withUnsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an
error message.
|
private SdkInternalList<java.lang.String> successful
The IDs of the Dedicated hosts that were successfully released.
private SdkInternalList<UnsuccessfulItem> unsuccessful
The IDs of the Dedicated hosts that could not be released, including an error message.
public java.util.List<java.lang.String> getSuccessful()
The IDs of the Dedicated hosts that were successfully released.
public void setSuccessful(java.util.Collection<java.lang.String> successful)
The IDs of the Dedicated hosts that were successfully released.
successful
- The IDs of the Dedicated hosts that were successfully released.public ReleaseHostsResult withSuccessful(java.lang.String... successful)
The IDs of the Dedicated hosts that were successfully released.
NOTE: This method appends the values to the existing list (if
any). Use setSuccessful(java.util.Collection)
or
withSuccessful(java.util.Collection)
if you want to override the
existing values.
successful
- The IDs of the Dedicated hosts that were successfully released.public ReleaseHostsResult withSuccessful(java.util.Collection<java.lang.String> successful)
The IDs of the Dedicated hosts that were successfully released.
successful
- The IDs of the Dedicated hosts that were successfully released.public java.util.List<UnsuccessfulItem> getUnsuccessful()
The IDs of the Dedicated hosts that could not be released, including an error message.
public void setUnsuccessful(java.util.Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an error message.
unsuccessful
- The IDs of the Dedicated hosts that could not be released,
including an error message.public ReleaseHostsResult withUnsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an error message.
NOTE: This method appends the values to the existing list (if
any). Use setUnsuccessful(java.util.Collection)
or
withUnsuccessful(java.util.Collection)
if you want to override
the existing values.
unsuccessful
- The IDs of the Dedicated hosts that could not be released,
including an error message.public ReleaseHostsResult withUnsuccessful(java.util.Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be released, including an error message.
unsuccessful
- The IDs of the Dedicated hosts that could not be released,
including an error message.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReleaseHostsResult clone()
clone
in class java.lang.Object