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

    • id

      The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.
      Parameters:
      id - The resource ID, used to refer to a resource in the Lambda function configuration. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.
      Parameters:
      name - The descriptive resource name, which is displayed on the AWS IoT Greengrass console. Max length 128 characters with pattern ''[a-zA-Z0-9:_-]+''. This must be unique within a Greengrass group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceDataContainer

      Resource.Builder resourceDataContainer(ResourceDataContainer resourceDataContainer)
      A container of data for all resource types.
      Parameters:
      resourceDataContainer - A container of data for all resource types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceDataContainer

      default Resource.Builder resourceDataContainer(Consumer<ResourceDataContainer.Builder> resourceDataContainer)
      A container of data for all resource types. This is a convenience method that creates an instance of the ResourceDataContainer.Builder avoiding the need to create one manually via ResourceDataContainer.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceDataContainer(ResourceDataContainer).

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