@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeletionTaskFailureReasonType extends Object implements Serializable, Cloneable
The reason that the service-linked role deletion failed.
This data type is used as a response element in the GetServiceLinkedRoleDeletionStatus operation.
Constructor and Description |
---|
DeletionTaskFailureReasonType() |
Modifier and Type | Method and Description |
---|---|
DeletionTaskFailureReasonType |
clone() |
boolean |
equals(Object obj) |
String |
getReason()
A short description of the reason that the service-linked role deletion failed.
|
List<RoleUsageType> |
getRoleUsageList()
A list of objects that contains details about the service-linked role deletion failure, if that information is
returned by the service.
|
int |
hashCode() |
void |
setReason(String reason)
A short description of the reason that the service-linked role deletion failed.
|
void |
setRoleUsageList(Collection<RoleUsageType> roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is
returned by the service.
|
String |
toString()
Returns a string representation of this object.
|
DeletionTaskFailureReasonType |
withReason(String reason)
A short description of the reason that the service-linked role deletion failed.
|
DeletionTaskFailureReasonType |
withRoleUsageList(Collection<RoleUsageType> roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is
returned by the service.
|
DeletionTaskFailureReasonType |
withRoleUsageList(RoleUsageType... roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is
returned by the service.
|
public void setReason(String reason)
A short description of the reason that the service-linked role deletion failed.
reason
- A short description of the reason that the service-linked role deletion failed.public String getReason()
A short description of the reason that the service-linked role deletion failed.
public DeletionTaskFailureReasonType withReason(String reason)
A short description of the reason that the service-linked role deletion failed.
reason
- A short description of the reason that the service-linked role deletion failed.public List<RoleUsageType> getRoleUsageList()
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
public void setRoleUsageList(Collection<RoleUsageType> roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
roleUsageList
- A list of objects that contains details about the service-linked role deletion failure, if that
information is returned by the service. If the service-linked role has active sessions or if any resources
that were used by the role have not been deleted from the linked service, the role can't be deleted. This
parameter includes a list of the resources that are associated with the role and the Region in which the
resources are being used.public DeletionTaskFailureReasonType withRoleUsageList(RoleUsageType... roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
NOTE: This method appends the values to the existing list (if any). Use
setRoleUsageList(java.util.Collection)
or withRoleUsageList(java.util.Collection)
if you want
to override the existing values.
roleUsageList
- A list of objects that contains details about the service-linked role deletion failure, if that
information is returned by the service. If the service-linked role has active sessions or if any resources
that were used by the role have not been deleted from the linked service, the role can't be deleted. This
parameter includes a list of the resources that are associated with the role and the Region in which the
resources are being used.public DeletionTaskFailureReasonType withRoleUsageList(Collection<RoleUsageType> roleUsageList)
A list of objects that contains details about the service-linked role deletion failure, if that information is returned by the service. If the service-linked role has active sessions or if any resources that were used by the role have not been deleted from the linked service, the role can't be deleted. This parameter includes a list of the resources that are associated with the role and the Region in which the resources are being used.
roleUsageList
- A list of objects that contains details about the service-linked role deletion failure, if that
information is returned by the service. If the service-linked role has active sessions or if any resources
that were used by the role have not been deleted from the linked service, the role can't be deleted. This
parameter includes a list of the resources that are associated with the role and the Region in which the
resources are being used.public String toString()
toString
in class Object
Object.toString()
public DeletionTaskFailureReasonType clone()