Class SubscribeToEventRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.inspector.model.SubscribeToEventRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SubscribeToEventRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SubscribeToEventRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscribeToEventRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getEvent()
The event for which you want to receive SNS notifications.String
getResourceArn()
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.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(String event)
The event for which you want to receive SNS notifications.void
setResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.void
setTopicArn(String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.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(String event)
The event for which you want to receive SNS notifications.SubscribeToEventRequest
withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.SubscribeToEventRequest
withTopicArn(String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setResourceArn
public void setResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
-
getResourceArn
public String getResourceArn()
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
- Returns:
- The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
-
withResourceArn
public SubscribeToEventRequest withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which you want to receive SNS notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEvent
public void setEvent(String event)
The event for which you want to receive SNS notifications.
- Parameters:
event
- The event for which you want to receive SNS notifications.- See Also:
InspectorEvent
-
getEvent
public String getEvent()
The event for which you want to receive SNS notifications.
- Returns:
- The event for which you want to receive SNS notifications.
- See Also:
InspectorEvent
-
withEvent
public SubscribeToEventRequest withEvent(String event)
The event for which you want to receive SNS notifications.
- Parameters:
event
- The event for which you want to receive SNS notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InspectorEvent
-
setEvent
public void setEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
- Parameters:
event
- The event for which you want to receive SNS notifications.- See Also:
InspectorEvent
-
withEvent
public SubscribeToEventRequest withEvent(InspectorEvent event)
The event for which you want to receive SNS notifications.
- Parameters:
event
- The event for which you want to receive SNS notifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
InspectorEvent
-
setTopicArn
public void setTopicArn(String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the SNS topic to which the SNS notifications are sent.
-
getTopicArn
public String getTopicArn()
The ARN of the SNS topic to which the SNS notifications are sent.
- Returns:
- The ARN of the SNS topic to which the SNS notifications are sent.
-
withTopicArn
public SubscribeToEventRequest withTopicArn(String topicArn)
The ARN of the SNS topic to which the SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the SNS topic to which the SNS notifications are sent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SubscribeToEventRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-