Class ModifyHostsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ModifyHostsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ModifyHostsResult extends Object implements Serializable, Cloneable
Contains the output of ModifyHosts.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ModifyHostsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifyHostsResult
clone()
boolean
equals(Object obj)
List<String>
getSuccessful()
The IDs of the Dedicated hosts that were successfully modified.List<UnsuccessfulItem>
getUnsuccessful()
The IDs of the Dedicated hosts that could not be modified.int
hashCode()
void
setSuccessful(Collection<String> successful)
The IDs of the Dedicated hosts that were successfully modified.void
setUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be modified.String
toString()
Returns a string representation of this object; useful for testing and debugging.ModifyHostsResult
withSuccessful(String... successful)
The IDs of the Dedicated hosts that were successfully modified.ModifyHostsResult
withSuccessful(Collection<String> successful)
The IDs of the Dedicated hosts that were successfully modified.ModifyHostsResult
withUnsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated hosts that could not be modified.ModifyHostsResult
withUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be modified.
-
-
-
Method Detail
-
getSuccessful
public List<String> getSuccessful()
The IDs of the Dedicated hosts that were successfully modified.
- Returns:
- The IDs of the Dedicated hosts that were successfully modified.
-
setSuccessful
public void setSuccessful(Collection<String> successful)
The IDs of the Dedicated hosts that were successfully modified.
- Parameters:
successful
- The IDs of the Dedicated hosts that were successfully modified.
-
withSuccessful
public ModifyHostsResult withSuccessful(String... successful)
The IDs of the Dedicated hosts that were successfully modified.
NOTE: This method appends the values to the existing list (if any). Use
setSuccessful(java.util.Collection)
orwithSuccessful(java.util.Collection)
if you want to override the existing values.- Parameters:
successful
- The IDs of the Dedicated hosts that were successfully modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSuccessful
public ModifyHostsResult withSuccessful(Collection<String> successful)
The IDs of the Dedicated hosts that were successfully modified.
- Parameters:
successful
- The IDs of the Dedicated hosts that were successfully modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getUnsuccessful
public List<UnsuccessfulItem> getUnsuccessful()
The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
- Returns:
- The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
-
setUnsuccessful
public void setUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
- Parameters:
unsuccessful
- The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
-
withUnsuccessful
public ModifyHostsResult withUnsuccessful(UnsuccessfulItem... unsuccessful)
The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
NOTE: This method appends the values to the existing list (if any). Use
setUnsuccessful(java.util.Collection)
orwithUnsuccessful(java.util.Collection)
if you want to override the existing values.- Parameters:
unsuccessful
- The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withUnsuccessful
public ModifyHostsResult withUnsuccessful(Collection<UnsuccessfulItem> unsuccessful)
The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.
- Parameters:
unsuccessful
- The IDs of the Dedicated hosts that could not be modified. Check whether the setting you requested can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ModifyHostsResult clone()
-
-