@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The resource ID, used to refer to a resource in the Lambda function configuration.
|
String |
getName()
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
|
ResourceDataContainer |
getResourceDataContainer()
A container of data for all resource types.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The resource ID, used to refer to a resource in the Lambda function configuration.
|
void |
setName(String name)
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
|
void |
setResourceDataContainer(ResourceDataContainer resourceDataContainer)
A container of data for all resource types.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withId(String id)
The resource ID, used to refer to a resource in the Lambda function configuration.
|
Resource |
withName(String name)
The descriptive resource name, which is displayed on the AWS IoT Greengrass console.
|
Resource |
withResourceDataContainer(ResourceDataContainer resourceDataContainer)
A container of data for all resource types.
|
public void setId(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.public String getId()
public Resource withId(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.public void setName(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.public String getName()
public Resource withName(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.public void setResourceDataContainer(ResourceDataContainer resourceDataContainer)
resourceDataContainer
- A container of data for all resource types.public ResourceDataContainer getResourceDataContainer()
public Resource withResourceDataContainer(ResourceDataContainer resourceDataContainer)
resourceDataContainer
- A container of data for all resource types.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.