public static interface Resource.Builder extends SdkPojo, CopyableBuilder<Resource.Builder,Resource>
| Modifier and Type | Method and Description |
|---|---|
Resource.Builder |
id(String id)
The resource ID, used to refer to a resource in the Lambda function configuration.
|
Resource.Builder |
name(String name)
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.
|
Resource.Builder |
resourceDataContainer(ResourceDataContainer resourceDataContainer)
A container of data for all resource types.
|
copyapplyMutation, buildResource.Builder id(String id)
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.Resource.Builder name(String name)
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.Resource.Builder resourceDataContainer(ResourceDataContainer resourceDataContainer)
resourceDataContainer - A container of data for all resource types.default Resource.Builder resourceDataContainer(Consumer<ResourceDataContainer.Builder> resourceDataContainer)
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).resourceDataContainer - a consumer that will call methods on ResourceDataContainer.BuilderresourceDataContainer(ResourceDataContainer)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.