/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include See Also:
AWS
* API Reference
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The name of the event subscription to be created.
Constraints:
*Cannot be null, empty, or blank.
Must contain * from 1 to 255 alphanumeric characters or hyphens.
First * character must be a letter.
Cannot end with a hyphen or * contain two consecutive hyphens.
The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline CreateEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline CreateEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon SNS topic used to transmit the * event notifications. The ARN is created by Amazon SNS when you create a topic * and subscribe to it.
*/ inline CreateEventSubscriptionRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline CreateEventSubscriptionRequest& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline CreateEventSubscriptionRequest& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *The type of source that will be generating the events. For example, if you * want to be notified of events generated by a cluster, you would set this * parameter to cluster. If this value is not specified, events are returned for * all Amazon Redshift objects in your Amazon Web Services account. You must * specify a source type in order to specify source IDs.
Valid values: * cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and * scheduled-action.
*/ inline CreateEventSubscriptionRequest& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *A list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline const Aws::VectorA list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline bool SourceIdsHasBeenSet() const { return m_sourceIdsHasBeenSet; } /** *A list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline void SetSourceIds(const Aws::VectorA list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline void SetSourceIds(Aws::VectorA list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline CreateEventSubscriptionRequest& WithSourceIds(const Aws::VectorA list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline CreateEventSubscriptionRequest& WithSourceIds(Aws::VectorA list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline CreateEventSubscriptionRequest& AddSourceIds(const Aws::String& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; } /** *A list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline CreateEventSubscriptionRequest& AddSourceIds(Aws::String&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(std::move(value)); return *this; } /** *A list of one or more identifiers of Amazon Redshift source objects. All of * the objects must be of the same type as was specified in the source type * parameter. The event subscription will return only events generated by the * specified objects. If not specified, then events are returned for all objects * within the source type specified.
Example: my-cluster-1, my-cluster-2
*Example: my-snapshot-20131010
*/ inline CreateEventSubscriptionRequest& AddSourceIds(const char* value) { m_sourceIdsHasBeenSet = true; m_sourceIds.push_back(value); return *this; } /** *Specifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline const Aws::VectorSpecifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline bool EventCategoriesHasBeenSet() const { return m_eventCategoriesHasBeenSet; } /** *Specifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline void SetEventCategories(const Aws::VectorSpecifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline void SetEventCategories(Aws::VectorSpecifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline CreateEventSubscriptionRequest& WithEventCategories(const Aws::VectorSpecifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline CreateEventSubscriptionRequest& WithEventCategories(Aws::VectorSpecifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline CreateEventSubscriptionRequest& AddEventCategories(const Aws::String& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *Specifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline CreateEventSubscriptionRequest& AddEventCategories(Aws::String&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(std::move(value)); return *this; } /** *Specifies the Amazon Redshift event categories to be published by the event * notification subscription.
Values: configuration, management, monitoring, * security, pending
*/ inline CreateEventSubscriptionRequest& AddEventCategories(const char* value) { m_eventCategoriesHasBeenSet = true; m_eventCategories.push_back(value); return *this; } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline const Aws::String& GetSeverity() const{ return m_severity; } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); } /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline CreateEventSubscriptionRequest& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;} /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline CreateEventSubscriptionRequest& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;} /** *Specifies the Amazon Redshift event severity to be published by the event * notification subscription.
Values: ERROR, INFO
*/ inline CreateEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *A boolean value; set to true
to activate the subscription, and
* set to false
to create the subscription but not activate it.
A boolean value; set to true
to activate the subscription, and
* set to false
to create the subscription but not activate it.
A boolean value; set to true
to activate the subscription, and
* set to false
to create the subscription but not activate it.
A boolean value; set to true
to activate the subscription, and
* set to false
to create the subscription but not activate it.
A list of tag instances.
*/ inline const Aws::VectorA list of tag instances.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of tag instances.
*/ inline void SetTags(const Aws::VectorA list of tag instances.
*/ inline void SetTags(Aws::VectorA list of tag instances.
*/ inline CreateEventSubscriptionRequest& WithTags(const Aws::VectorA list of tag instances.
*/ inline CreateEventSubscriptionRequest& WithTags(Aws::VectorA list of tag instances.
*/ inline CreateEventSubscriptionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *A list of tag instances.
*/ inline CreateEventSubscriptionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_subscriptionName; bool m_subscriptionNameHasBeenSet = false; Aws::String m_snsTopicArn; bool m_snsTopicArnHasBeenSet = false; Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; Aws::Vector