Interface Resource.Builder

    • Method Detail

      • type

        Resource.Builder type​(String type)

        The resource type. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.

        Parameters:
        type - The resource type. This takes the form of: service-code:resource-code, and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceShareArn

        Resource.Builder resourceShareArn​(String resourceShareArn)

        The Amazon Resource Name (ARN) of the resource share this resource is associated with.

        Parameters:
        resourceShareArn - The Amazon Resource Name (ARN) of the resource share this resource is associated with.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceGroupArn

        Resource.Builder resourceGroupArn​(String resourceGroupArn)

        The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.

        Parameters:
        resourceGroupArn - The Amazon Resource Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        Resource.Builder status​(String status)

        The current status of the resource.

        Parameters:
        status - The current status of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceStatus, ResourceStatus
      • statusMessage

        Resource.Builder statusMessage​(String statusMessage)

        A message about the status of the resource.

        Parameters:
        statusMessage - A message about the status of the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationTime

        Resource.Builder creationTime​(Instant creationTime)

        The date and time when the resource was associated with the resource share.

        Parameters:
        creationTime - The date and time when the resource was associated with the resource share.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdatedTime

        Resource.Builder lastUpdatedTime​(Instant lastUpdatedTime)

        The date an time when the association between the resource and the resource share was last updated.

        Parameters:
        lastUpdatedTime - The date an time when the association between the resource and the resource share was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • resourceRegionScope

        Resource.Builder resourceRegionScope​(String resourceRegionScope)

        Specifies the scope of visibility of this resource:

        • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.

        • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

        Parameters:
        resourceRegionScope - Specifies the scope of visibility of this resource:

        • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.

        • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceRegionScope, ResourceRegionScope
      • resourceRegionScope

        Resource.Builder resourceRegionScope​(ResourceRegionScope resourceRegionScope)

        Specifies the scope of visibility of this resource:

        • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.

        • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

        Parameters:
        resourceRegionScope - Specifies the scope of visibility of this resource:

        • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.

        • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ResourceRegionScope, ResourceRegionScope