@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Contains an IoT SiteWise Monitor resource ID for a portal or project.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
PortalResource |
getPortal()
A portal resource.
|
ProjectResource |
getProject()
A project resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPortal(PortalResource portal)
A portal resource.
|
void |
setProject(ProjectResource project)
A project resource.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withPortal(PortalResource portal)
A portal resource.
|
Resource |
withProject(ProjectResource project)
A project resource.
|
public void setPortal(PortalResource portal)
A portal resource.
portal
- A portal resource.public PortalResource getPortal()
A portal resource.
public Resource withPortal(PortalResource portal)
A portal resource.
portal
- A portal resource.public void setProject(ProjectResource project)
A project resource.
project
- A project resource.public ProjectResource getProject()
A project resource.
public Resource withProject(ProjectResource project)
A project resource.
project
- A project resource.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.