@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateNotificationRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateNotificationRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateNotificationRuleRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateNotificationRuleRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateNotificationRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
String |
getDetailType()
The level of detail to include in the notifications for this resource.
|
List<String> |
getEventTypeIds()
A list of event types associated with this notification rule.
|
String |
getName()
The name for the notification rule.
|
String |
getResource()
The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
|
String |
getStatus()
The status of the notification rule.
|
Map<String,String> |
getTags()
A list of tags to apply to this notification rule.
|
List<Target> |
getTargets()
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
void |
setDetailType(String detailType)
The level of detail to include in the notifications for this resource.
|
void |
setEventTypeIds(Collection<String> eventTypeIds)
A list of event types associated with this notification rule.
|
void |
setName(String name)
The name for the notification rule.
|
void |
setResource(String resource)
The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
|
void |
setStatus(String status)
The status of the notification rule.
|
void |
setTags(Map<String,String> tags)
A list of tags to apply to this notification rule.
|
void |
setTargets(Collection<Target> targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.
|
String |
toString()
Returns a string representation of this object.
|
CreateNotificationRuleRequest |
withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
CreateNotificationRuleRequest |
withDetailType(DetailType detailType)
The level of detail to include in the notifications for this resource.
|
CreateNotificationRuleRequest |
withDetailType(String detailType)
The level of detail to include in the notifications for this resource.
|
CreateNotificationRuleRequest |
withEventTypeIds(Collection<String> eventTypeIds)
A list of event types associated with this notification rule.
|
CreateNotificationRuleRequest |
withEventTypeIds(String... eventTypeIds)
A list of event types associated with this notification rule.
|
CreateNotificationRuleRequest |
withName(String name)
The name for the notification rule.
|
CreateNotificationRuleRequest |
withResource(String resource)
The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
|
CreateNotificationRuleRequest |
withStatus(NotificationRuleStatus status)
The status of the notification rule.
|
CreateNotificationRuleRequest |
withStatus(String status)
The status of the notification rule.
|
CreateNotificationRuleRequest |
withTags(Map<String,String> tags)
A list of tags to apply to this notification rule.
|
CreateNotificationRuleRequest |
withTargets(Collection<Target> targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.
|
CreateNotificationRuleRequest |
withTargets(Target... targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
name
- The name for the notification rule. Notification rule names must be unique in your Amazon Web Services
account.public String getName()
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
public CreateNotificationRuleRequest withName(String name)
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
name
- The name for the notification rule. Notification rule names must be unique in your Amazon Web Services
account.public List<String> getEventTypeIds()
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
public void setEventTypeIds(Collection<String> eventTypeIds)
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
eventTypeIds
- A list of event types associated with this notification rule. For a list of allowed events, see
EventTypeSummary.public CreateNotificationRuleRequest withEventTypeIds(String... eventTypeIds)
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
NOTE: This method appends the values to the existing list (if any). Use
setEventTypeIds(java.util.Collection)
or withEventTypeIds(java.util.Collection)
if you want to
override the existing values.
eventTypeIds
- A list of event types associated with this notification rule. For a list of allowed events, see
EventTypeSummary.public CreateNotificationRuleRequest withEventTypeIds(Collection<String> eventTypeIds)
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
eventTypeIds
- A list of event types associated with this notification rule. For a list of allowed events, see
EventTypeSummary.public void setResource(String resource)
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
resource
- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported
resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.public String getResource()
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
public CreateNotificationRuleRequest withResource(String resource)
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
resource
- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported
resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.public List<Target> getTargets()
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
public void setTargets(Collection<Target> targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
targets
- A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.public CreateNotificationRuleRequest withTargets(Target... targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.public CreateNotificationRuleRequest withTargets(Collection<Target> targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
targets
- A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to
associate with the notification rule.public void setDetailType(String detailType)
The level of detail to include in the notifications for this resource. BASIC
will include only the
contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental
information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification
is created.
detailType
- The level of detail to include in the notifications for this resource. BASIC
will include
only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include any
supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for
which the notification is created.DetailType
public String getDetailType()
The level of detail to include in the notifications for this resource. BASIC
will include only the
contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental
information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification
is created.
BASIC
will include
only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include
any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource
for which the notification is created.DetailType
public CreateNotificationRuleRequest withDetailType(String detailType)
The level of detail to include in the notifications for this resource. BASIC
will include only the
contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental
information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification
is created.
detailType
- The level of detail to include in the notifications for this resource. BASIC
will include
only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include any
supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for
which the notification is created.DetailType
public CreateNotificationRuleRequest withDetailType(DetailType detailType)
The level of detail to include in the notifications for this resource. BASIC
will include only the
contents of the event as it would appear in Amazon CloudWatch. FULL
will include any supplemental
information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification
is created.
detailType
- The level of detail to include in the notifications for this resource. BASIC
will include
only the contents of the event as it would appear in Amazon CloudWatch. FULL
will include any
supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for
which the notification is created.DetailType
public void setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request with the same parameters is received and a token is
included, the request returns information about the initial request that used that token. The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
public String getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
public CreateNotificationRuleRequest withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request with the same parameters is received and a token is
included, the request returns information about the initial request that used that token. The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
public Map<String,String> getTags()
A list of tags to apply to this notification rule. Key names cannot start with "aws
".
aws
".public void setTags(Map<String,String> tags)
A list of tags to apply to this notification rule. Key names cannot start with "aws
".
tags
- A list of tags to apply to this notification rule. Key names cannot start with "aws
".public CreateNotificationRuleRequest withTags(Map<String,String> tags)
A list of tags to apply to this notification rule. Key names cannot start with "aws
".
tags
- A list of tags to apply to this notification rule. Key names cannot start with "aws
".public CreateNotificationRuleRequest addTagsEntry(String key, String value)
public CreateNotificationRuleRequest clearTagsEntries()
public void setStatus(String status)
The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.
status
- The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.NotificationRuleStatus
public String getStatus()
The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.
ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.NotificationRuleStatus
public CreateNotificationRuleRequest withStatus(String status)
The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.
status
- The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.NotificationRuleStatus
public CreateNotificationRuleRequest withStatus(NotificationRuleStatus status)
The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.
status
- The status of the notification rule. The default value is ENABLED
. If the status is set to
DISABLED
, notifications aren't sent for the notification rule.NotificationRuleStatus
public String toString()
toString
in class Object
Object.toString()
public CreateNotificationRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()