@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class App extends Object implements Serializable, Cloneable, StructuredPojo
Defines an Resilience Hub application.
Constructor and Description |
---|
App() |
Modifier and Type | Method and Description |
---|---|
App |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
App |
clearTagsEntries()
Removes all the entries added into Tags.
|
App |
clone() |
boolean |
equals(Object obj) |
String |
getAppArn()
Amazon Resource Name (ARN) of the Resilience Hub application.
|
String |
getAssessmentSchedule()
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
String |
getComplianceStatus()
Current status of compliance for the resiliency policy.
|
Date |
getCreationTime()
Date and time when the app was created.
|
String |
getDescription()
Optional description for an application.
|
String |
getDriftStatus()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
List<EventSubscription> |
getEventSubscriptions()
The list of events you would like to subscribe and get notification for.
|
Date |
getLastAppComplianceEvaluationTime()
Date and time the most recent compliance evaluation.
|
Date |
getLastDriftEvaluationTime()
Indicates the last time that a drift was evaluated.
|
Date |
getLastResiliencyScoreEvaluationTime()
Date and time the most recent resiliency score evaluation.
|
String |
getName()
Name for the application.
|
PermissionModel |
getPermissionModel()
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its
resources, and running an assessment.
|
String |
getPolicyArn()
Amazon Resource Name (ARN) of the resiliency policy.
|
Double |
getResiliencyScore()
Current resiliency score for the application.
|
Integer |
getRpoInSecs()
Recovery Point Objective (RPO) in seconds.
|
Integer |
getRtoInSecs()
Recovery Time Objective (RTO) in seconds.
|
String |
getStatus()
Status of the application.
|
Map<String,String> |
getTags()
Tags assigned to the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppArn(String appArn)
Amazon Resource Name (ARN) of the Resilience Hub application.
|
void |
setAssessmentSchedule(String assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
void |
setComplianceStatus(String complianceStatus)
Current status of compliance for the resiliency policy.
|
void |
setCreationTime(Date creationTime)
Date and time when the app was created.
|
void |
setDescription(String description)
Optional description for an application.
|
void |
setDriftStatus(String driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
void |
setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of events you would like to subscribe and get notification for.
|
void |
setLastAppComplianceEvaluationTime(Date lastAppComplianceEvaluationTime)
Date and time the most recent compliance evaluation.
|
void |
setLastDriftEvaluationTime(Date lastDriftEvaluationTime)
Indicates the last time that a drift was evaluated.
|
void |
setLastResiliencyScoreEvaluationTime(Date lastResiliencyScoreEvaluationTime)
Date and time the most recent resiliency score evaluation.
|
void |
setName(String name)
Name for the application.
|
void |
setPermissionModel(PermissionModel permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its
resources, and running an assessment.
|
void |
setPolicyArn(String policyArn)
Amazon Resource Name (ARN) of the resiliency policy.
|
void |
setResiliencyScore(Double resiliencyScore)
Current resiliency score for the application.
|
void |
setRpoInSecs(Integer rpoInSecs)
Recovery Point Objective (RPO) in seconds.
|
void |
setRtoInSecs(Integer rtoInSecs)
Recovery Time Objective (RTO) in seconds.
|
void |
setStatus(String status)
Status of the application.
|
void |
setTags(Map<String,String> tags)
Tags assigned to the resource.
|
String |
toString()
Returns a string representation of this object.
|
App |
withAppArn(String appArn)
Amazon Resource Name (ARN) of the Resilience Hub application.
|
App |
withAssessmentSchedule(AppAssessmentScheduleType assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
App |
withAssessmentSchedule(String assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
|
App |
withComplianceStatus(AppComplianceStatusType complianceStatus)
Current status of compliance for the resiliency policy.
|
App |
withComplianceStatus(String complianceStatus)
Current status of compliance for the resiliency policy.
|
App |
withCreationTime(Date creationTime)
Date and time when the app was created.
|
App |
withDescription(String description)
Optional description for an application.
|
App |
withDriftStatus(AppDriftStatusType driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
App |
withDriftStatus(String driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
|
App |
withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of events you would like to subscribe and get notification for.
|
App |
withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of events you would like to subscribe and get notification for.
|
App |
withLastAppComplianceEvaluationTime(Date lastAppComplianceEvaluationTime)
Date and time the most recent compliance evaluation.
|
App |
withLastDriftEvaluationTime(Date lastDriftEvaluationTime)
Indicates the last time that a drift was evaluated.
|
App |
withLastResiliencyScoreEvaluationTime(Date lastResiliencyScoreEvaluationTime)
Date and time the most recent resiliency score evaluation.
|
App |
withName(String name)
Name for the application.
|
App |
withPermissionModel(PermissionModel permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its
resources, and running an assessment.
|
App |
withPolicyArn(String policyArn)
Amazon Resource Name (ARN) of the resiliency policy.
|
App |
withResiliencyScore(Double resiliencyScore)
Current resiliency score for the application.
|
App |
withRpoInSecs(Integer rpoInSecs)
Recovery Point Objective (RPO) in seconds.
|
App |
withRtoInSecs(Integer rtoInSecs)
Recovery Time Objective (RTO) in seconds.
|
App |
withStatus(AppStatusType status)
Status of the application.
|
App |
withStatus(String status)
Status of the application.
|
App |
withTags(Map<String,String> tags)
Tags assigned to the resource.
|
public void setAppArn(String appArn)
Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
appArn
- Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For
more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public String getAppArn()
Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
partition
:resiliencehub:region
:account
:app/app-id
.
For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public App withAppArn(String appArn)
Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
appArn
- Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:app/app-id
. For
more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public void setAssessmentSchedule(String assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
assessmentSchedule
- Assessment execution schedule with 'Daily' or 'Disabled' values.AppAssessmentScheduleType
public String getAssessmentSchedule()
Assessment execution schedule with 'Daily' or 'Disabled' values.
AppAssessmentScheduleType
public App withAssessmentSchedule(String assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
assessmentSchedule
- Assessment execution schedule with 'Daily' or 'Disabled' values.AppAssessmentScheduleType
public App withAssessmentSchedule(AppAssessmentScheduleType assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
assessmentSchedule
- Assessment execution schedule with 'Daily' or 'Disabled' values.AppAssessmentScheduleType
public void setComplianceStatus(String complianceStatus)
Current status of compliance for the resiliency policy.
complianceStatus
- Current status of compliance for the resiliency policy.AppComplianceStatusType
public String getComplianceStatus()
Current status of compliance for the resiliency policy.
AppComplianceStatusType
public App withComplianceStatus(String complianceStatus)
Current status of compliance for the resiliency policy.
complianceStatus
- Current status of compliance for the resiliency policy.AppComplianceStatusType
public App withComplianceStatus(AppComplianceStatusType complianceStatus)
Current status of compliance for the resiliency policy.
complianceStatus
- Current status of compliance for the resiliency policy.AppComplianceStatusType
public void setCreationTime(Date creationTime)
Date and time when the app was created.
creationTime
- Date and time when the app was created.public Date getCreationTime()
Date and time when the app was created.
public App withCreationTime(Date creationTime)
Date and time when the app was created.
creationTime
- Date and time when the app was created.public void setDescription(String description)
Optional description for an application.
description
- Optional description for an application.public String getDescription()
Optional description for an application.
public App withDescription(String description)
Optional description for an application.
description
- Optional description for an application.public void setDriftStatus(String driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
driftStatus
- Indicates if compliance drifts (deviations) were detected while running an assessment for your
application.AppDriftStatusType
public String getDriftStatus()
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
AppDriftStatusType
public App withDriftStatus(String driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
driftStatus
- Indicates if compliance drifts (deviations) were detected while running an assessment for your
application.AppDriftStatusType
public App withDriftStatus(AppDriftStatusType driftStatus)
Indicates if compliance drifts (deviations) were detected while running an assessment for your application.
driftStatus
- Indicates if compliance drifts (deviations) were detected while running an assessment for your
application.AppDriftStatusType
public List<EventSubscription> getEventSubscriptions()
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
public void setEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
eventSubscriptions
- The list of events you would like to subscribe and get notification for. Currently, Resilience Hub
supports notifications only for Drift detected and Scheduled assessment failure events.public App withEventSubscriptions(EventSubscription... eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
NOTE: This method appends the values to the existing list (if any). Use
setEventSubscriptions(java.util.Collection)
or withEventSubscriptions(java.util.Collection)
if
you want to override the existing values.
eventSubscriptions
- The list of events you would like to subscribe and get notification for. Currently, Resilience Hub
supports notifications only for Drift detected and Scheduled assessment failure events.public App withEventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected and Scheduled assessment failure events.
eventSubscriptions
- The list of events you would like to subscribe and get notification for. Currently, Resilience Hub
supports notifications only for Drift detected and Scheduled assessment failure events.public void setLastAppComplianceEvaluationTime(Date lastAppComplianceEvaluationTime)
Date and time the most recent compliance evaluation.
lastAppComplianceEvaluationTime
- Date and time the most recent compliance evaluation.public Date getLastAppComplianceEvaluationTime()
Date and time the most recent compliance evaluation.
public App withLastAppComplianceEvaluationTime(Date lastAppComplianceEvaluationTime)
Date and time the most recent compliance evaluation.
lastAppComplianceEvaluationTime
- Date and time the most recent compliance evaluation.public void setLastDriftEvaluationTime(Date lastDriftEvaluationTime)
Indicates the last time that a drift was evaluated.
lastDriftEvaluationTime
- Indicates the last time that a drift was evaluated.public Date getLastDriftEvaluationTime()
Indicates the last time that a drift was evaluated.
public App withLastDriftEvaluationTime(Date lastDriftEvaluationTime)
Indicates the last time that a drift was evaluated.
lastDriftEvaluationTime
- Indicates the last time that a drift was evaluated.public void setLastResiliencyScoreEvaluationTime(Date lastResiliencyScoreEvaluationTime)
Date and time the most recent resiliency score evaluation.
lastResiliencyScoreEvaluationTime
- Date and time the most recent resiliency score evaluation.public Date getLastResiliencyScoreEvaluationTime()
Date and time the most recent resiliency score evaluation.
public App withLastResiliencyScoreEvaluationTime(Date lastResiliencyScoreEvaluationTime)
Date and time the most recent resiliency score evaluation.
lastResiliencyScoreEvaluationTime
- Date and time the most recent resiliency score evaluation.public void setName(String name)
Name for the application.
name
- Name for the application.public String getName()
Name for the application.
public App withName(String name)
Name for the application.
name
- Name for the application.public void setPermissionModel(PermissionModel permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
permissionModel
- Defines the roles and credentials that Resilience Hub would use while creating the application, importing
its resources, and running an assessment.public PermissionModel getPermissionModel()
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
public App withPermissionModel(PermissionModel permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
permissionModel
- Defines the roles and credentials that Resilience Hub would use while creating the application, importing
its resources, and running an assessment.public void setPolicyArn(String policyArn)
Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:resiliency-policy/policy-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
policyArn
- Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:resiliency-policy/
policy-id
. For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public String getPolicyArn()
Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:resiliency-policy/policy-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
partition
:resiliencehub:region
:account
:resiliency-policy/
policy-id
. For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public App withPolicyArn(String policyArn)
Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition
:resiliencehub:region
:account
:resiliency-policy/policy-id
. For more
information about ARNs, see
Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
policyArn
- Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition
:resiliencehub:region
:account
:resiliency-policy/
policy-id
. For more information about ARNs, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference guide.public void setResiliencyScore(Double resiliencyScore)
Current resiliency score for the application.
resiliencyScore
- Current resiliency score for the application.public Double getResiliencyScore()
Current resiliency score for the application.
public App withResiliencyScore(Double resiliencyScore)
Current resiliency score for the application.
resiliencyScore
- Current resiliency score for the application.public void setRpoInSecs(Integer rpoInSecs)
Recovery Point Objective (RPO) in seconds.
rpoInSecs
- Recovery Point Objective (RPO) in seconds.public Integer getRpoInSecs()
Recovery Point Objective (RPO) in seconds.
public App withRpoInSecs(Integer rpoInSecs)
Recovery Point Objective (RPO) in seconds.
rpoInSecs
- Recovery Point Objective (RPO) in seconds.public void setRtoInSecs(Integer rtoInSecs)
Recovery Time Objective (RTO) in seconds.
rtoInSecs
- Recovery Time Objective (RTO) in seconds.public Integer getRtoInSecs()
Recovery Time Objective (RTO) in seconds.
public App withRtoInSecs(Integer rtoInSecs)
Recovery Time Objective (RTO) in seconds.
rtoInSecs
- Recovery Time Objective (RTO) in seconds.public void setStatus(String status)
Status of the application.
status
- Status of the application.AppStatusType
public String getStatus()
Status of the application.
AppStatusType
public App withStatus(String status)
Status of the application.
status
- Status of the application.AppStatusType
public App withStatus(AppStatusType status)
Status of the application.
status
- Status of the application.AppStatusType
public Map<String,String> getTags()
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
public void setTags(Map<String,String> tags)
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
tags
- Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each
tag consists of a key/value pair.public App withTags(Map<String,String> tags)
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
tags
- Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each
tag consists of a key/value pair.public App clearTagsEntries()
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.