Interface Resource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Resource.Builder,,Resource> SdkBuilder<Resource.Builder,,Resource> SdkPojo
- Enclosing class:
Resource
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.BuilderresourceDataContainer(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaResourceDataContainer.builder().When the
Consumercompletes,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:
-