@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IncidentRecordSource extends Object implements Serializable, Cloneable, StructuredPojo
Details about what created the incident record and when it was created.
Constructor and Description |
---|
IncidentRecordSource() |
Modifier and Type | Method and Description |
---|---|
IncidentRecordSource |
clone() |
boolean |
equals(Object obj) |
String |
getCreatedBy()
The principal that started the incident.
|
String |
getInvokedBy()
The principal the assumed the role specified of the
createdBy . |
String |
getResourceArn()
The resource that caused the incident to be created.
|
String |
getSource()
The service that started the incident.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedBy(String createdBy)
The principal that started the incident.
|
void |
setInvokedBy(String invokedBy)
The principal the assumed the role specified of the
createdBy . |
void |
setResourceArn(String resourceArn)
The resource that caused the incident to be created.
|
void |
setSource(String source)
The service that started the incident.
|
String |
toString()
Returns a string representation of this object.
|
IncidentRecordSource |
withCreatedBy(String createdBy)
The principal that started the incident.
|
IncidentRecordSource |
withInvokedBy(String invokedBy)
The principal the assumed the role specified of the
createdBy . |
IncidentRecordSource |
withResourceArn(String resourceArn)
The resource that caused the incident to be created.
|
IncidentRecordSource |
withSource(String source)
The service that started the incident.
|
public void setCreatedBy(String createdBy)
The principal that started the incident.
createdBy
- The principal that started the incident.public String getCreatedBy()
The principal that started the incident.
public IncidentRecordSource withCreatedBy(String createdBy)
The principal that started the incident.
createdBy
- The principal that started the incident.public void setInvokedBy(String invokedBy)
The principal the assumed the role specified of the createdBy
.
invokedBy
- The principal the assumed the role specified of the createdBy
.public String getInvokedBy()
The principal the assumed the role specified of the createdBy
.
createdBy
.public IncidentRecordSource withInvokedBy(String invokedBy)
The principal the assumed the role specified of the createdBy
.
invokedBy
- The principal the assumed the role specified of the createdBy
.public void setResourceArn(String resourceArn)
The resource that caused the incident to be created.
resourceArn
- The resource that caused the incident to be created.public String getResourceArn()
The resource that caused the incident to be created.
public IncidentRecordSource withResourceArn(String resourceArn)
The resource that caused the incident to be created.
resourceArn
- The resource that caused the incident to be created.public void setSource(String source)
The service that started the incident. This can be manually created from Incident Manager, automatically created using an Amazon CloudWatch alarm, or Amazon EventBridge event.
source
- The service that started the incident. This can be manually created from Incident Manager, automatically
created using an Amazon CloudWatch alarm, or Amazon EventBridge event.public String getSource()
The service that started the incident. This can be manually created from Incident Manager, automatically created using an Amazon CloudWatch alarm, or Amazon EventBridge event.
public IncidentRecordSource withSource(String source)
The service that started the incident. This can be manually created from Incident Manager, automatically created using an Amazon CloudWatch alarm, or Amazon EventBridge event.
source
- The service that started the incident. This can be manually created from Incident Manager, automatically
created using an Amazon CloudWatch alarm, or Amazon EventBridge event.public String toString()
toString
in class Object
Object.toString()
public IncidentRecordSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.