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 Summary
Modifier and TypeMethodDescriptionThe resource ID, used to refer to a resource in the Lambda function configuration.The descriptive resource name, which is displayed on the AWS IoT Greengrass console.default Resource.Builder
resourceDataContainer
(Consumer<ResourceDataContainer.Builder> resourceDataContainer) A container of data for all resource types.resourceDataContainer
(ResourceDataContainer resourceDataContainer) A container of data for all resource types.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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 theResourceDataContainer.Builder
avoiding the need to create one manually viaResourceDataContainer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceDataContainer(ResourceDataContainer)
.- Parameters:
resourceDataContainer
- a consumer that will call methods onResourceDataContainer.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-