Interface DeletionTaskFailureReasonType.Builder

    • Method Detail

      • reason

        DeletionTaskFailureReasonType.Builder reason​(String reason)

        A short description of the reason that the service-linked role deletion failed.

        Parameters:
        reason - A short description of the reason that the service-linked role deletion failed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleUsageList

        DeletionTaskFailureReasonType.Builder roleUsageList​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleUsageList

        DeletionTaskFailureReasonType.Builder roleUsageList​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleUsageList

        DeletionTaskFailureReasonType.Builder roleUsageList​(Consumer<RoleUsageType.Builder>... 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.

        This is a convenience method that creates an instance of the RoleUsageType.Builder avoiding the need to create one manually via RoleUsageType.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #roleUsageList(List).

        Parameters:
        roleUsageList - a consumer that will call methods on RoleUsageType.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #roleUsageList(java.util.Collection)