/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Redshift { namespace Model { /** *

See Also:

AWS * API Reference

*/ class ModifyEventSubscriptionRequest : public RedshiftRequest { public: AWS_REDSHIFT_API ModifyEventSubscriptionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyEventSubscription"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline const Aws::String& GetSubscriptionName() const{ return m_subscriptionName; } /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline bool SubscriptionNameHasBeenSet() const { return m_subscriptionNameHasBeenSet; } /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline void SetSubscriptionName(const Aws::String& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = value; } /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline void SetSubscriptionName(Aws::String&& value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName = std::move(value); } /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline void SetSubscriptionName(const char* value) { m_subscriptionNameHasBeenSet = true; m_subscriptionName.assign(value); } /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline ModifyEventSubscriptionRequest& WithSubscriptionName(const Aws::String& value) { SetSubscriptionName(value); return *this;} /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline ModifyEventSubscriptionRequest& WithSubscriptionName(Aws::String&& value) { SetSubscriptionName(std::move(value)); return *this;} /** *

The name of the modified Amazon Redshift event notification subscription.

*/ inline ModifyEventSubscriptionRequest& WithSubscriptionName(const char* value) { SetSubscriptionName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline ModifyEventSubscriptionRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline ModifyEventSubscriptionRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the SNS topic to be used by the event * notification subscription.

*/ inline ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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::Vector& GetSourceIds() const{ return m_sourceIds; } /** *

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 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::Vector& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = value; } /** *

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(Aws::Vector&& value) { m_sourceIdsHasBeenSet = true; m_sourceIds = std::move(value); } /** *

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 ModifyEventSubscriptionRequest& WithSourceIds(const Aws::Vector& value) { SetSourceIds(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 ModifyEventSubscriptionRequest& WithSourceIds(Aws::Vector&& value) { SetSourceIds(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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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::Vector& GetEventCategories() const{ return m_eventCategories; } /** *

Specifies 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::Vector& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = value; } /** *

Specifies the Amazon Redshift event categories to be published by the event * notification subscription.

Values: configuration, management, monitoring, * security, pending

*/ inline void SetEventCategories(Aws::Vector&& value) { m_eventCategoriesHasBeenSet = true; m_eventCategories = std::move(value); } /** *

Specifies the Amazon Redshift event categories to be published by the event * notification subscription.

Values: configuration, management, monitoring, * security, pending

*/ inline ModifyEventSubscriptionRequest& WithEventCategories(const Aws::Vector& value) { SetEventCategories(value); return *this;} /** *

Specifies the Amazon Redshift event categories to be published by the event * notification subscription.

Values: configuration, management, monitoring, * security, pending

*/ inline ModifyEventSubscriptionRequest& WithEventCategories(Aws::Vector&& value) { SetEventCategories(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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& 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 ModifyEventSubscriptionRequest& WithSeverity(const char* value) { SetSeverity(value); return *this;} /** *

A Boolean value indicating if the subscription is enabled. true * indicates the subscription is enabled

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

A Boolean value indicating if the subscription is enabled. true * indicates the subscription is enabled

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

A Boolean value indicating if the subscription is enabled. true * indicates the subscription is enabled

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

A Boolean value indicating if the subscription is enabled. true * indicates the subscription is enabled

*/ inline ModifyEventSubscriptionRequest& WithEnabled(bool value) { SetEnabled(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 m_sourceIds; bool m_sourceIdsHasBeenSet = false; Aws::Vector m_eventCategories; bool m_eventCategoriesHasBeenSet = false; Aws::String m_severity; bool m_severityHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws