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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Resource.Builderid(String id)The resource ID, used to refer to a resource in the Lambda function configuration.Resource.Buildername(String name)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.Resource.BuilderresourceDataContainer(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, sdkFields
-
-
-
-
Method Detail
-
id
Resource.Builder id(String 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
Resource.Builder name(String 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 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:
resourceDataContainer(ResourceDataContainer)
-
-