public class SubscribeToEventRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
event
The event for which you want to receive SNS notifications.
|
private java.lang.String |
resourceArn
The ARN of the assessment template that is used during the event for
which you want to receive SNS notifications.
|
private java.lang.String |
topicArn
The ARN of the SNS topic to which the SNS notifications are sent.
|
NOOP
Constructor and Description |
---|
SubscribeToEventRequest() |
Modifier and Type | Method and Description |
---|---|
SubscribeToEventRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEvent()
The event for which you want to receive SNS notifications.
|
java.lang.String |
getResourceArn()
The ARN of the assessment template that is used during the event for
which you want to receive SNS notifications.
|
java.lang.String |
getTopicArn()
The ARN of the SNS topic to which the SNS notifications are sent.
|
int |
hashCode() |
void |
setEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
|
void |
setEvent(java.lang.String event)
The event for which you want to receive SNS notifications.
|
void |
setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for
which you want to receive SNS notifications.
|
void |
setTopicArn(java.lang.String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SubscribeToEventRequest |
withEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
|
SubscribeToEventRequest |
withEvent(java.lang.String event)
The event for which you want to receive SNS notifications.
|
SubscribeToEventRequest |
withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for
which you want to receive SNS notifications.
|
SubscribeToEventRequest |
withTopicArn(java.lang.String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String resourceArn
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
private java.lang.String event
The event for which you want to receive SNS notifications.
private java.lang.String topicArn
The ARN of the SNS topic to which the SNS notifications are sent.
public void setResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
resourceArn
- The ARN of the assessment template that is used during the event
for which you want to receive SNS notifications.public java.lang.String getResourceArn()
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
public SubscribeToEventRequest withResourceArn(java.lang.String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
resourceArn
- The ARN of the assessment template that is used during the event
for which you want to receive SNS notifications.public void setEvent(java.lang.String event)
The event for which you want to receive SNS notifications.
event
- The event for which you want to receive SNS notifications.InspectorEvent
public java.lang.String getEvent()
The event for which you want to receive SNS notifications.
InspectorEvent
public SubscribeToEventRequest withEvent(java.lang.String event)
The event for which you want to receive SNS notifications.
event
- The event for which you want to receive SNS notifications.InspectorEvent
public void setEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
event
- The event for which you want to receive SNS notifications.InspectorEvent
public SubscribeToEventRequest withEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
event
- The event for which you want to receive SNS notifications.InspectorEvent
public void setTopicArn(java.lang.String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
topicArn
- The ARN of the SNS topic to which the SNS notifications are sent.public java.lang.String getTopicArn()
The ARN of the SNS topic to which the SNS notifications are sent.
public SubscribeToEventRequest withTopicArn(java.lang.String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
topicArn
- The ARN of the SNS topic to which the SNS notifications are sent.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SubscribeToEventRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()