Class UnsubscribeFromEventRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.inspector.model.UnsubscribeFromEventRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class UnsubscribeFromEventRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UnsubscribeFromEventRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsubscribeFromEventRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getEvent()
The event for which you want to stop receiving SNS notifications.String
getResourceArn()
The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.String
getTopicArn()
The ARN of the SNS topic to which SNS notifications are sent.int
hashCode()
void
setEvent(InspectorEvent event)
The event for which you want to stop receiving SNS notifications.void
setEvent(String event)
The event for which you want to stop receiving SNS notifications.void
setResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.void
setTopicArn(String topicArn)
The ARN of the SNS topic to which SNS notifications are sent.String
toString()
Returns a string representation of this object; useful for testing and debugging.UnsubscribeFromEventRequest
withEvent(InspectorEvent event)
The event for which you want to stop receiving SNS notifications.UnsubscribeFromEventRequest
withEvent(String event)
The event for which you want to stop receiving SNS notifications.UnsubscribeFromEventRequest
withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.UnsubscribeFromEventRequest
withTopicArn(String topicArn)
The ARN of the SNS topic to which 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 stop receiving SNS notifications.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.
-
getResourceArn
public String getResourceArn()
The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.
- Returns:
- The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.
-
withResourceArn
public UnsubscribeFromEventRequest withResourceArn(String resourceArn)
The ARN of the assessment template that is used during the event for which you want to stop receiving SNS notifications.
- Parameters:
resourceArn
- The ARN of the assessment template that is used during the event for which you want to stop receiving 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 stop receiving SNS notifications.
- Parameters:
event
- The event for which you want to stop receiving SNS notifications.- See Also:
InspectorEvent
-
getEvent
public String getEvent()
The event for which you want to stop receiving SNS notifications.
- Returns:
- The event for which you want to stop receiving SNS notifications.
- See Also:
InspectorEvent
-
withEvent
public UnsubscribeFromEventRequest withEvent(String event)
The event for which you want to stop receiving SNS notifications.
- Parameters:
event
- The event for which you want to stop receiving 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 stop receiving SNS notifications.
- Parameters:
event
- The event for which you want to stop receiving SNS notifications.- See Also:
InspectorEvent
-
withEvent
public UnsubscribeFromEventRequest withEvent(InspectorEvent event)
The event for which you want to stop receiving SNS notifications.
- Parameters:
event
- The event for which you want to stop receiving 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 SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the SNS topic to which SNS notifications are sent.
-
getTopicArn
public String getTopicArn()
The ARN of the SNS topic to which SNS notifications are sent.
- Returns:
- The ARN of the SNS topic to which SNS notifications are sent.
-
withTopicArn
public UnsubscribeFromEventRequest withTopicArn(String topicArn)
The ARN of the SNS topic to which SNS notifications are sent.
- Parameters:
topicArn
- The ARN of the SNS topic to which 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 UnsubscribeFromEventRequest 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()
-
-