Class Resource
- java.lang.Object
-
- software.amazon.awssdk.services.greengrass.model.Resource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Resource.Builder,Resource>
@Generated("software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
Information about a resource.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Resource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The resource ID, used to refer to a resource in the Lambda function configuration.Stringname()The descriptive resource name, which is displayed on the AWS IoT Greengrass console.ResourceDataContainerresourceDataContainer()A container of data for all resource types.List<SdkField<?>>sdkFields()static Class<? extends Resource.Builder>serializableBuilderClass()Resource.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
id
public final 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.- Returns:
- 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.
-
name
public final 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.- Returns:
- 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.
-
resourceDataContainer
public final ResourceDataContainer resourceDataContainer()
A container of data for all resource types.- Returns:
- A container of data for all resource types.
-
toBuilder
public Resource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Resource.Builder,Resource>
-
builder
public static Resource.Builder builder()
-
serializableBuilderClass
public static Class<? extends Resource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-