@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 an Resilience Hub-native identifier.
Constructor and Description |
---|
PhysicalResource() |
Modifier and Type | Method and Description |
---|---|
PhysicalResource |
addAdditionalInfoEntry(String key,
List<String> value)
Add a single AdditionalInfo entry
|
PhysicalResource |
clearAdditionalInfoEntries()
Removes all the entries added into AdditionalInfo.
|
PhysicalResource |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getAdditionalInfo()
Additional configuration parameters for an Resilience Hub application.
|
List<AppComponent> |
getAppComponents()
The application components that belong to this resource.
|
Boolean |
getExcluded()
Indicates if a resource is included or excluded from the assessment.
|
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() |
Boolean |
isExcluded()
Indicates if a resource is included or excluded from the assessment.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalInfo(Map<String,List<String>> additionalInfo)
Additional configuration parameters for an Resilience Hub application.
|
void |
setAppComponents(Collection<AppComponent> appComponents)
The application components that belong to this resource.
|
void |
setExcluded(Boolean excluded)
Indicates if a resource is included or excluded from the assessment.
|
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 |
withAdditionalInfo(Map<String,List<String>> additionalInfo)
Additional configuration parameters for an Resilience Hub application.
|
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 |
withExcluded(Boolean excluded)
Indicates if a resource is included or excluded from the assessment.
|
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 Map<String,List<String>> getAdditionalInfo()
Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters. Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
public void setAdditionalInfo(Map<String,List<String>> additionalInfo)
Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
additionalInfo
- Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters. Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
public PhysicalResource withAdditionalInfo(Map<String,List<String>> additionalInfo)
Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters.
Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
additionalInfo
- Additional configuration parameters for an Resilience Hub application. If you want to implement
additionalInfo
through the Resilience Hub console rather than using an API call, see Configure the
application configuration parameters. Currently, this parameter accepts a key-value mapping (in a string format) of only one failover region and one associated account.
Key: "failover-regions"
Value: "[{"region":"<REGION>", "accounts":[{"id":"<ACCOUNT_ID>"}]}]"
public PhysicalResource addAdditionalInfoEntry(String key, List<String> value)
public PhysicalResource clearAdditionalInfoEntries()
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 setExcluded(Boolean excluded)
Indicates if a resource is included or excluded from the assessment.
excluded
- Indicates if a resource is included or excluded from the assessment.public Boolean getExcluded()
Indicates if a resource is included or excluded from the assessment.
public PhysicalResource withExcluded(Boolean excluded)
Indicates if a resource is included or excluded from the assessment.
excluded
- Indicates if a resource is included or excluded from the assessment.public Boolean isExcluded()
Indicates if a resource is included or excluded from the assessment.
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.