@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpsItem extends Object implements Serializable, Cloneable, StructuredPojo
Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and remediate operational work items (OpsItems) impacting the performance and health of their Amazon Web Services resources. OpsCenter is integrated with Amazon EventBridge and Amazon CloudWatch. This means you can configure these services to automatically create an OpsItem in OpsCenter when a CloudWatch alarm enters the ALARM state or when EventBridge processes an event from any Amazon Web Services service that publishes events. Configuring Amazon CloudWatch alarms and EventBridge events to automatically create OpsItems allows you to quickly diagnose and remediate issues with Amazon Web Services resources from a single console.
To help you diagnose issues, each OpsItem includes contextually relevant information such as the name and ID of the Amazon Web Services resource that generated the OpsItem, alarm or event details, alarm history, and an alarm timeline graph. For the Amazon Web Services resource, OpsCenter aggregates information from Config, CloudTrail logs, and EventBridge, so you don't have to navigate across multiple console pages during your investigation. For more information, see Amazon Web Services Systems Manager OpsCenter in the Amazon Web Services Systems Manager User Guide.
Constructor and Description |
---|
OpsItem() |
Modifier and Type | Method and Description |
---|---|
OpsItem |
addOperationalDataEntry(String key,
OpsItemDataValue value)
Add a single OperationalData entry
|
OpsItem |
clearOperationalDataEntries()
Removes all the entries added into OperationalData.
|
OpsItem |
clone() |
boolean |
equals(Object obj) |
Date |
getActualEndTime()
The time a runbook workflow ended.
|
Date |
getActualStartTime()
The time a runbook workflow started.
|
String |
getCategory()
An OpsItem category.
|
String |
getCreatedBy()
The ARN of the Amazon Web Services account that created the OpsItem.
|
Date |
getCreatedTime()
The date and time the OpsItem was created.
|
String |
getDescription()
The OpsItem description.
|
String |
getLastModifiedBy()
The ARN of the Amazon Web Services account that last updated the OpsItem.
|
Date |
getLastModifiedTime()
The date and time the OpsItem was last updated.
|
List<OpsItemNotification> |
getNotifications()
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications
are sent when this OpsItem is edited or changed.
|
Map<String,OpsItemDataValue> |
getOperationalData()
Operational data is custom data that provides useful reference details about the OpsItem.
|
String |
getOpsItemArn()
The OpsItem Amazon Resource Name (ARN).
|
String |
getOpsItemId()
The ID of the OpsItem.
|
String |
getOpsItemType()
The type of OpsItem.
|
Date |
getPlannedEndTime()
The time specified in a change request for a runbook workflow to end.
|
Date |
getPlannedStartTime()
The time specified in a change request for a runbook workflow to start.
|
Integer |
getPriority()
The importance of this OpsItem in relation to other OpsItems in the system.
|
List<RelatedOpsItem> |
getRelatedOpsItems()
One or more OpsItems that share something in common with the current OpsItem.
|
String |
getSeverity()
The severity of the OpsItem.
|
String |
getSource()
The origin of the OpsItem, such as Amazon EC2 or Systems Manager.
|
String |
getStatus()
The OpsItem status.
|
String |
getTitle()
A short heading that describes the nature of the OpsItem and the impacted resource.
|
String |
getVersion()
The version of this OpsItem.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActualEndTime(Date actualEndTime)
The time a runbook workflow ended.
|
void |
setActualStartTime(Date actualStartTime)
The time a runbook workflow started.
|
void |
setCategory(String category)
An OpsItem category.
|
void |
setCreatedBy(String createdBy)
The ARN of the Amazon Web Services account that created the OpsItem.
|
void |
setCreatedTime(Date createdTime)
The date and time the OpsItem was created.
|
void |
setDescription(String description)
The OpsItem description.
|
void |
setLastModifiedBy(String lastModifiedBy)
The ARN of the Amazon Web Services account that last updated the OpsItem.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The date and time the OpsItem was last updated.
|
void |
setNotifications(Collection<OpsItemNotification> notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications
are sent when this OpsItem is edited or changed.
|
void |
setOperationalData(Map<String,OpsItemDataValue> operationalData)
Operational data is custom data that provides useful reference details about the OpsItem.
|
void |
setOpsItemArn(String opsItemArn)
The OpsItem Amazon Resource Name (ARN).
|
void |
setOpsItemId(String opsItemId)
The ID of the OpsItem.
|
void |
setOpsItemType(String opsItemType)
The type of OpsItem.
|
void |
setPlannedEndTime(Date plannedEndTime)
The time specified in a change request for a runbook workflow to end.
|
void |
setPlannedStartTime(Date plannedStartTime)
The time specified in a change request for a runbook workflow to start.
|
void |
setPriority(Integer priority)
The importance of this OpsItem in relation to other OpsItems in the system.
|
void |
setRelatedOpsItems(Collection<RelatedOpsItem> relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem.
|
void |
setSeverity(String severity)
The severity of the OpsItem.
|
void |
setSource(String source)
The origin of the OpsItem, such as Amazon EC2 or Systems Manager.
|
void |
setStatus(String status)
The OpsItem status.
|
void |
setTitle(String title)
A short heading that describes the nature of the OpsItem and the impacted resource.
|
void |
setVersion(String version)
The version of this OpsItem.
|
String |
toString()
Returns a string representation of this object.
|
OpsItem |
withActualEndTime(Date actualEndTime)
The time a runbook workflow ended.
|
OpsItem |
withActualStartTime(Date actualStartTime)
The time a runbook workflow started.
|
OpsItem |
withCategory(String category)
An OpsItem category.
|
OpsItem |
withCreatedBy(String createdBy)
The ARN of the Amazon Web Services account that created the OpsItem.
|
OpsItem |
withCreatedTime(Date createdTime)
The date and time the OpsItem was created.
|
OpsItem |
withDescription(String description)
The OpsItem description.
|
OpsItem |
withLastModifiedBy(String lastModifiedBy)
The ARN of the Amazon Web Services account that last updated the OpsItem.
|
OpsItem |
withLastModifiedTime(Date lastModifiedTime)
The date and time the OpsItem was last updated.
|
OpsItem |
withNotifications(Collection<OpsItemNotification> notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications
are sent when this OpsItem is edited or changed.
|
OpsItem |
withNotifications(OpsItemNotification... notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications
are sent when this OpsItem is edited or changed.
|
OpsItem |
withOperationalData(Map<String,OpsItemDataValue> operationalData)
Operational data is custom data that provides useful reference details about the OpsItem.
|
OpsItem |
withOpsItemArn(String opsItemArn)
The OpsItem Amazon Resource Name (ARN).
|
OpsItem |
withOpsItemId(String opsItemId)
The ID of the OpsItem.
|
OpsItem |
withOpsItemType(String opsItemType)
The type of OpsItem.
|
OpsItem |
withPlannedEndTime(Date plannedEndTime)
The time specified in a change request for a runbook workflow to end.
|
OpsItem |
withPlannedStartTime(Date plannedStartTime)
The time specified in a change request for a runbook workflow to start.
|
OpsItem |
withPriority(Integer priority)
The importance of this OpsItem in relation to other OpsItems in the system.
|
OpsItem |
withRelatedOpsItems(Collection<RelatedOpsItem> relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem.
|
OpsItem |
withRelatedOpsItems(RelatedOpsItem... relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem.
|
OpsItem |
withSeverity(String severity)
The severity of the OpsItem.
|
OpsItem |
withSource(String source)
The origin of the OpsItem, such as Amazon EC2 or Systems Manager.
|
OpsItem |
withStatus(OpsItemStatus status)
The OpsItem status.
|
OpsItem |
withStatus(String status)
The OpsItem status.
|
OpsItem |
withTitle(String title)
A short heading that describes the nature of the OpsItem and the impacted resource.
|
OpsItem |
withVersion(String version)
The version of this OpsItem.
|
public void setCreatedBy(String createdBy)
The ARN of the Amazon Web Services account that created the OpsItem.
createdBy
- The ARN of the Amazon Web Services account that created the OpsItem.public String getCreatedBy()
The ARN of the Amazon Web Services account that created the OpsItem.
public OpsItem withCreatedBy(String createdBy)
The ARN of the Amazon Web Services account that created the OpsItem.
createdBy
- The ARN of the Amazon Web Services account that created the OpsItem.public void setOpsItemType(String opsItemType)
The type of OpsItem. Systems Manager supports the following types of OpsItems:
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
opsItemType
- The type of OpsItem. Systems Manager supports the following types of OpsItems:
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
public String getOpsItemType()
The type of OpsItem. Systems Manager supports the following types of OpsItems:
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
public OpsItem withOpsItemType(String opsItemType)
The type of OpsItem. Systems Manager supports the following types of OpsItems:
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
opsItemType
- The type of OpsItem. Systems Manager supports the following types of OpsItems:
/aws/issue
This type of OpsItem is used for default OpsItems created by OpsCenter.
/aws/changerequest
This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change requests.
/aws/insight
This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate OpsItems.
public void setCreatedTime(Date createdTime)
The date and time the OpsItem was created.
createdTime
- The date and time the OpsItem was created.public Date getCreatedTime()
The date and time the OpsItem was created.
public OpsItem withCreatedTime(Date createdTime)
The date and time the OpsItem was created.
createdTime
- The date and time the OpsItem was created.public void setDescription(String description)
The OpsItem description.
description
- The OpsItem description.public String getDescription()
The OpsItem description.
public OpsItem withDescription(String description)
The OpsItem description.
description
- The OpsItem description.public void setLastModifiedBy(String lastModifiedBy)
The ARN of the Amazon Web Services account that last updated the OpsItem.
lastModifiedBy
- The ARN of the Amazon Web Services account that last updated the OpsItem.public String getLastModifiedBy()
The ARN of the Amazon Web Services account that last updated the OpsItem.
public OpsItem withLastModifiedBy(String lastModifiedBy)
The ARN of the Amazon Web Services account that last updated the OpsItem.
lastModifiedBy
- The ARN of the Amazon Web Services account that last updated the OpsItem.public void setLastModifiedTime(Date lastModifiedTime)
The date and time the OpsItem was last updated.
lastModifiedTime
- The date and time the OpsItem was last updated.public Date getLastModifiedTime()
The date and time the OpsItem was last updated.
public OpsItem withLastModifiedTime(Date lastModifiedTime)
The date and time the OpsItem was last updated.
lastModifiedTime
- The date and time the OpsItem was last updated.public List<OpsItemNotification> getNotifications()
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed.
public void setNotifications(Collection<OpsItemNotification> notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed.
notifications
- The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where
notifications are sent when this OpsItem is edited or changed.public OpsItem withNotifications(OpsItemNotification... notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed.
NOTE: This method appends the values to the existing list (if any). Use
setNotifications(java.util.Collection)
or withNotifications(java.util.Collection)
if you want
to override the existing values.
notifications
- The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where
notifications are sent when this OpsItem is edited or changed.public OpsItem withNotifications(Collection<OpsItemNotification> notifications)
The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where notifications are sent when this OpsItem is edited or changed.
notifications
- The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where
notifications are sent when this OpsItem is edited or changed.public void setPriority(Integer priority)
The importance of this OpsItem in relation to other OpsItems in the system.
priority
- The importance of this OpsItem in relation to other OpsItems in the system.public Integer getPriority()
The importance of this OpsItem in relation to other OpsItems in the system.
public OpsItem withPriority(Integer priority)
The importance of this OpsItem in relation to other OpsItems in the system.
priority
- The importance of this OpsItem in relation to other OpsItems in the system.public List<RelatedOpsItem> getRelatedOpsItems()
One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
public void setRelatedOpsItems(Collection<RelatedOpsItem> relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
relatedOpsItems
- One or more OpsItems that share something in common with the current OpsItem. For example, related
OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the
impacted resource.public OpsItem withRelatedOpsItems(RelatedOpsItem... relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedOpsItems(java.util.Collection)
or withRelatedOpsItems(java.util.Collection)
if you
want to override the existing values.
relatedOpsItems
- One or more OpsItems that share something in common with the current OpsItem. For example, related
OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the
impacted resource.public OpsItem withRelatedOpsItems(Collection<RelatedOpsItem> relatedOpsItems)
One or more OpsItems that share something in common with the current OpsItem. For example, related OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the impacted resource.
relatedOpsItems
- One or more OpsItems that share something in common with the current OpsItem. For example, related
OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for the
impacted resource.public void setStatus(String status)
The OpsItem status. Status can be Open
, In Progress
, or Resolved
. For more
information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.
status
- The OpsItem status. Status can be Open
, In Progress
, or Resolved
.
For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.OpsItemStatus
public String getStatus()
The OpsItem status. Status can be Open
, In Progress
, or Resolved
. For more
information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.
Open
, In Progress
, or Resolved
.
For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.OpsItemStatus
public OpsItem withStatus(String status)
The OpsItem status. Status can be Open
, In Progress
, or Resolved
. For more
information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.
status
- The OpsItem status. Status can be Open
, In Progress
, or Resolved
.
For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.OpsItemStatus
public OpsItem withStatus(OpsItemStatus status)
The OpsItem status. Status can be Open
, In Progress
, or Resolved
. For more
information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.
status
- The OpsItem status. Status can be Open
, In Progress
, or Resolved
.
For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.OpsItemStatus
public void setOpsItemId(String opsItemId)
The ID of the OpsItem.
opsItemId
- The ID of the OpsItem.public String getOpsItemId()
The ID of the OpsItem.
public OpsItem withOpsItemId(String opsItemId)
The ID of the OpsItem.
opsItemId
- The ID of the OpsItem.public void setVersion(String version)
The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.
version
- The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.public String getVersion()
The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.
public OpsItem withVersion(String version)
The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.
version
- The version of this OpsItem. Each time the OpsItem is edited the version number increments by one.public void setTitle(String title)
A short heading that describes the nature of the OpsItem and the impacted resource.
title
- A short heading that describes the nature of the OpsItem and the impacted resource.public String getTitle()
A short heading that describes the nature of the OpsItem and the impacted resource.
public OpsItem withTitle(String title)
A short heading that describes the nature of the OpsItem and the impacted resource.
title
- A short heading that describes the nature of the OpsItem and the impacted resource.public void setSource(String source)
The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of source.
source
- The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of
source.public String getSource()
The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of source.
public OpsItem withSource(String source)
The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of source.
source
- The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of
source.public Map<String,OpsItemDataValue> getOperationalData()
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request. Use the
/aws/automations
key in OperationalData to associate an Automation runbook with the OpsItem. To view
Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request.
Use the /aws/automations
key in OperationalData to associate an Automation runbook with the
OpsItem. To view Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
public void setOperationalData(Map<String,OpsItemDataValue> operationalData)
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request. Use the
/aws/automations
key in OperationalData to associate an Automation runbook with the OpsItem. To view
Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
operationalData
- Operational data is custom data that provides useful reference details about the OpsItem. For example, you
can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You
enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a
maximum size of 20 KB.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request.
Use the /aws/automations
key in OperationalData to associate an Automation runbook with the
OpsItem. To view Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
public OpsItem withOperationalData(Map<String,OpsItemDataValue> operationalData)
Operational data is custom data that provides useful reference details about the OpsItem. For example, you can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a maximum size of 20 KB.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request. Use the
/aws/automations
key in OperationalData to associate an Automation runbook with the OpsItem. To view
Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
operationalData
- Operational data is custom data that provides useful reference details about the OpsItem. For example, you
can specify log files, error strings, license keys, troubleshooting tips, or other relevant data. You
enter operational data as key-value pairs. The key has a maximum length of 128 characters. The value has a
maximum size of 20 KB.
Operational data keys can't begin with the following: amazon
, aws
,
amzn
, ssm
, /amazon
, /aws
, /amzn
,
/ssm
.
You can choose to make the data searchable by other users in the account or you can restrict search access. Searchable data means that all users with access to the OpsItem Overview page (as provided by the DescribeOpsItems API operation) can view and search on the specified data. Operational data that isn't searchable is only viewable by users who have access to the OpsItem (as provided by the GetOpsItem API operation).
Use the /aws/resources
key in OperationalData to specify a related resource in the request.
Use the /aws/automations
key in OperationalData to associate an Automation runbook with the
OpsItem. To view Amazon Web Services CLI example commands that use these keys, see Creating OpsItems manually in the Amazon Web Services Systems Manager User Guide.
public OpsItem addOperationalDataEntry(String key, OpsItemDataValue value)
public OpsItem clearOperationalDataEntries()
public void setCategory(String category)
An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.
category
- An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.public String getCategory()
An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.
public OpsItem withCategory(String category)
An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.
category
- An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, Security.public void setSeverity(String severity)
The severity of the OpsItem. Severity options range from 1 to 4.
severity
- The severity of the OpsItem. Severity options range from 1 to 4.public String getSeverity()
The severity of the OpsItem. Severity options range from 1 to 4.
public OpsItem withSeverity(String severity)
The severity of the OpsItem. Severity options range from 1 to 4.
severity
- The severity of the OpsItem. Severity options range from 1 to 4.public void setActualStartTime(Date actualStartTime)
The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
.
actualStartTime
- The time a runbook workflow started. Currently reported only for the OpsItem type
/aws/changerequest
.public Date getActualStartTime()
The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
.
/aws/changerequest
.public OpsItem withActualStartTime(Date actualStartTime)
The time a runbook workflow started. Currently reported only for the OpsItem type /aws/changerequest
.
actualStartTime
- The time a runbook workflow started. Currently reported only for the OpsItem type
/aws/changerequest
.public void setActualEndTime(Date actualEndTime)
The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest
.
actualEndTime
- The time a runbook workflow ended. Currently reported only for the OpsItem type
/aws/changerequest
.public Date getActualEndTime()
The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest
.
/aws/changerequest
.public OpsItem withActualEndTime(Date actualEndTime)
The time a runbook workflow ended. Currently reported only for the OpsItem type /aws/changerequest
.
actualEndTime
- The time a runbook workflow ended. Currently reported only for the OpsItem type
/aws/changerequest
.public void setPlannedStartTime(Date plannedStartTime)
The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
type /aws/changerequest
.
plannedStartTime
- The time specified in a change request for a runbook workflow to start. Currently supported only for the
OpsItem type /aws/changerequest
.public Date getPlannedStartTime()
The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
type /aws/changerequest
.
/aws/changerequest
.public OpsItem withPlannedStartTime(Date plannedStartTime)
The time specified in a change request for a runbook workflow to start. Currently supported only for the OpsItem
type /aws/changerequest
.
plannedStartTime
- The time specified in a change request for a runbook workflow to start. Currently supported only for the
OpsItem type /aws/changerequest
.public void setPlannedEndTime(Date plannedEndTime)
The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
type /aws/changerequest
.
plannedEndTime
- The time specified in a change request for a runbook workflow to end. Currently supported only for the
OpsItem type /aws/changerequest
.public Date getPlannedEndTime()
The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
type /aws/changerequest
.
/aws/changerequest
.public OpsItem withPlannedEndTime(Date plannedEndTime)
The time specified in a change request for a runbook workflow to end. Currently supported only for the OpsItem
type /aws/changerequest
.
plannedEndTime
- The time specified in a change request for a runbook workflow to end. Currently supported only for the
OpsItem type /aws/changerequest
.public void setOpsItemArn(String opsItemArn)
The OpsItem Amazon Resource Name (ARN).
opsItemArn
- The OpsItem Amazon Resource Name (ARN).public String getOpsItemArn()
The OpsItem Amazon Resource Name (ARN).
public OpsItem withOpsItemArn(String opsItemArn)
The OpsItem Amazon Resource Name (ARN).
opsItemArn
- The OpsItem Amazon Resource Name (ARN).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.