@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PhysicalResource extends Object implements Serializable, Cloneable, StructuredPojo
Defines a physical resource. A physical resource is a resource that exists in your account. It can be identified using an Amazon Resource Name (ARN) or a Resilience Hub-native identifier.
Constructor and Description |
---|
PhysicalResource() |
Modifier and Type | Method and Description |
---|---|
PhysicalResource |
clone() |
boolean |
equals(Object obj) |
List<AppComponent> |
getAppComponents()
The application components that belong to this resource.
|
LogicalResourceId |
getLogicalResourceId()
The logical identifier of the resource.
|
PhysicalResourceId |
getPhysicalResourceId()
The physical identifier of the resource.
|
String |
getResourceName()
The name of the resource.
|
String |
getResourceType()
The type of resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppComponents(Collection<AppComponent> appComponents)
The application components that belong to this resource.
|
void |
setLogicalResourceId(LogicalResourceId logicalResourceId)
The logical identifier of the resource.
|
void |
setPhysicalResourceId(PhysicalResourceId physicalResourceId)
The physical identifier of the resource.
|
void |
setResourceName(String resourceName)
The name of the resource.
|
void |
setResourceType(String resourceType)
The type of resource.
|
String |
toString()
Returns a string representation of this object.
|
PhysicalResource |
withAppComponents(AppComponent... appComponents)
The application components that belong to this resource.
|
PhysicalResource |
withAppComponents(Collection<AppComponent> appComponents)
The application components that belong to this resource.
|
PhysicalResource |
withLogicalResourceId(LogicalResourceId logicalResourceId)
The logical identifier of the resource.
|
PhysicalResource |
withPhysicalResourceId(PhysicalResourceId physicalResourceId)
The physical identifier of the resource.
|
PhysicalResource |
withResourceName(String resourceName)
The name of the resource.
|
PhysicalResource |
withResourceType(String resourceType)
The type of resource.
|
public List<AppComponent> getAppComponents()
The application components that belong to this resource.
public void setAppComponents(Collection<AppComponent> appComponents)
The application components that belong to this resource.
appComponents
- The application components that belong to this resource.public PhysicalResource withAppComponents(AppComponent... appComponents)
The application components that belong to this resource.
NOTE: This method appends the values to the existing list (if any). Use
setAppComponents(java.util.Collection)
or withAppComponents(java.util.Collection)
if you want
to override the existing values.
appComponents
- The application components that belong to this resource.public PhysicalResource withAppComponents(Collection<AppComponent> appComponents)
The application components that belong to this resource.
appComponents
- The application components that belong to this resource.public void setLogicalResourceId(LogicalResourceId logicalResourceId)
The logical identifier of the resource.
logicalResourceId
- The logical identifier of the resource.public LogicalResourceId getLogicalResourceId()
The logical identifier of the resource.
public PhysicalResource withLogicalResourceId(LogicalResourceId logicalResourceId)
The logical identifier of the resource.
logicalResourceId
- The logical identifier of the resource.public void setPhysicalResourceId(PhysicalResourceId physicalResourceId)
The physical identifier of the resource.
physicalResourceId
- The physical identifier of the resource.public PhysicalResourceId getPhysicalResourceId()
The physical identifier of the resource.
public PhysicalResource withPhysicalResourceId(PhysicalResourceId physicalResourceId)
The physical identifier of the resource.
physicalResourceId
- The physical identifier of the resource.public void setResourceName(String resourceName)
The name of the resource.
resourceName
- The name of the resource.public String getResourceName()
The name of the resource.
public PhysicalResource withResourceName(String resourceName)
The name of the resource.
resourceName
- The name of the resource.public void setResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.public String getResourceType()
The type of resource.
public PhysicalResource withResourceType(String resourceType)
The type of resource.
resourceType
- The type of resource.public String toString()
toString
in class Object
Object.toString()
public PhysicalResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.