@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Alert extends Object implements Serializable, Cloneable, StructuredPojo
Alert configuration parameters.
Constructor and Description |
---|
Alert() |
Modifier and Type | Method and Description |
---|---|
Alert |
clone() |
boolean |
equals(Object obj) |
String |
getAlertCode()
The code for the alert.
|
String |
getAlertMessage()
If an alert is generated for a resource, an explanation of the reason for the alert.
|
String |
getCategory()
The category that MediaTailor assigns to the alert.
|
Date |
getLastModifiedTime()
The timestamp when the alert was last modified.
|
List<String> |
getRelatedResourceArns()
The Amazon Resource Names (ARNs) related to this alert.
|
String |
getResourceArn()
The Amazon Resource Name (ARN) of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlertCode(String alertCode)
The code for the alert.
|
void |
setAlertMessage(String alertMessage)
If an alert is generated for a resource, an explanation of the reason for the alert.
|
void |
setCategory(String category)
The category that MediaTailor assigns to the alert.
|
void |
setLastModifiedTime(Date lastModifiedTime)
The timestamp when the alert was last modified.
|
void |
setRelatedResourceArns(Collection<String> relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
|
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
String |
toString()
Returns a string representation of this object.
|
Alert |
withAlertCode(String alertCode)
The code for the alert.
|
Alert |
withAlertMessage(String alertMessage)
If an alert is generated for a resource, an explanation of the reason for the alert.
|
Alert |
withCategory(AlertCategory category)
The category that MediaTailor assigns to the alert.
|
Alert |
withCategory(String category)
The category that MediaTailor assigns to the alert.
|
Alert |
withLastModifiedTime(Date lastModifiedTime)
The timestamp when the alert was last modified.
|
Alert |
withRelatedResourceArns(Collection<String> relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
|
Alert |
withRelatedResourceArns(String... relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
|
Alert |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
|
public void setAlertCode(String alertCode)
The code for the alert. For example, NOT_PROCESSED
.
alertCode
- The code for the alert. For example, NOT_PROCESSED
.public String getAlertCode()
The code for the alert. For example, NOT_PROCESSED
.
NOT_PROCESSED
.public Alert withAlertCode(String alertCode)
The code for the alert. For example, NOT_PROCESSED
.
alertCode
- The code for the alert. For example, NOT_PROCESSED
.public void setAlertMessage(String alertMessage)
If an alert is generated for a resource, an explanation of the reason for the alert.
alertMessage
- If an alert is generated for a resource, an explanation of the reason for the alert.public String getAlertMessage()
If an alert is generated for a resource, an explanation of the reason for the alert.
public Alert withAlertMessage(String alertMessage)
If an alert is generated for a resource, an explanation of the reason for the alert.
alertMessage
- If an alert is generated for a resource, an explanation of the reason for the alert.public void setCategory(String category)
The category that MediaTailor assigns to the alert.
category
- The category that MediaTailor assigns to the alert.AlertCategory
public String getCategory()
The category that MediaTailor assigns to the alert.
AlertCategory
public Alert withCategory(String category)
The category that MediaTailor assigns to the alert.
category
- The category that MediaTailor assigns to the alert.AlertCategory
public Alert withCategory(AlertCategory category)
The category that MediaTailor assigns to the alert.
category
- The category that MediaTailor assigns to the alert.AlertCategory
public void setLastModifiedTime(Date lastModifiedTime)
The timestamp when the alert was last modified.
lastModifiedTime
- The timestamp when the alert was last modified.public Date getLastModifiedTime()
The timestamp when the alert was last modified.
public Alert withLastModifiedTime(Date lastModifiedTime)
The timestamp when the alert was last modified.
lastModifiedTime
- The timestamp when the alert was last modified.public List<String> getRelatedResourceArns()
The Amazon Resource Names (ARNs) related to this alert.
public void setRelatedResourceArns(Collection<String> relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
relatedResourceArns
- The Amazon Resource Names (ARNs) related to this alert.public Alert withRelatedResourceArns(String... relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedResourceArns(java.util.Collection)
or withRelatedResourceArns(java.util.Collection)
if you want to override the existing values.
relatedResourceArns
- The Amazon Resource Names (ARNs) related to this alert.public Alert withRelatedResourceArns(Collection<String> relatedResourceArns)
The Amazon Resource Names (ARNs) related to this alert.
relatedResourceArns
- The Amazon Resource Names (ARNs) related to this alert.public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
resourceArn
- The Amazon Resource Name (ARN) of the resource.public String getResourceArn()
The Amazon Resource Name (ARN) of the resource.
public Alert withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the resource.
resourceArn
- The Amazon Resource Name (ARN) of the 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.