Interface Resource.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Resource.Builder,Resource>, SdkBuilder<Resource.Builder,Resource>, SdkPojo
Enclosing class:
Resource

@Mutable @NotThreadSafe public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
  • Method Details

    • arn

      The Amazon resource name (ARN) of the resource.

      Parameters:
      arn - The Amazon resource name (ARN) of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastReportedAt

      Resource.Builder lastReportedAt(Instant lastReportedAt)

      The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.

      Parameters:
      lastReportedAt - The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • owningAccountId

      Resource.Builder owningAccountId(String owningAccountId)

      The Amazon Web Services account that owns the resource.

      Parameters:
      owningAccountId - The Amazon Web Services account that owns the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      Resource.Builder properties(Collection<ResourceProperty> properties)

      A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.

      Parameters:
      properties - A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      Resource.Builder properties(ResourceProperty... properties)

      A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.

      Parameters:
      properties - A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to properties(List<ResourceProperty>).

      Parameters:
      properties - a consumer that will call methods on ResourceProperty.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • region

      Resource.Builder region(String region)

      The Amazon Web Services Region in which the resource was created and exists.

      Parameters:
      region - The Amazon Web Services Region in which the resource was created and exists.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceType

      Resource.Builder resourceType(String resourceType)

      The type of the resource.

      Parameters:
      resourceType - The type of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • service

      Resource.Builder service(String service)

      The Amazon Web Services service that owns the resource and is responsible for creating and updating it.

      Parameters:
      service - The Amazon Web Services service that owns the resource and is responsible for creating and updating it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.