/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies settings for publishing event data to an Amazon Kinesis data stream * or an Amazon Kinesis Data Firehose delivery stream.

See Also:

* AWS * API Reference

*/ class EventStream { public: AWS_PINPOINT_API EventStream(); AWS_PINPOINT_API EventStream(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API EventStream& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier for the application to publish event data for.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The unique identifier for the application to publish event data for.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The unique identifier for the application to publish event data for.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The unique identifier for the application to publish event data for.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The unique identifier for the application to publish event data for.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The unique identifier for the application to publish event data for.

*/ inline EventStream& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The unique identifier for the application to publish event data for.

*/ inline EventStream& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The unique identifier for the application to publish event data for.

*/ inline EventStream& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline const Aws::String& GetDestinationStreamArn() const{ return m_destinationStreamArn; } /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline bool DestinationStreamArnHasBeenSet() const { return m_destinationStreamArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline void SetDestinationStreamArn(const Aws::String& value) { m_destinationStreamArnHasBeenSet = true; m_destinationStreamArn = value; } /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline void SetDestinationStreamArn(Aws::String&& value) { m_destinationStreamArnHasBeenSet = true; m_destinationStreamArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline void SetDestinationStreamArn(const char* value) { m_destinationStreamArnHasBeenSet = true; m_destinationStreamArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline EventStream& WithDestinationStreamArn(const Aws::String& value) { SetDestinationStreamArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline EventStream& WithDestinationStreamArn(Aws::String&& value) { SetDestinationStreamArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon * Kinesis Data Firehose delivery stream to publish event data to.

For a * Kinesis data stream, the ARN format is: * arn:aws:kinesis:region:account-id:stream/stream_name *

For a Kinesis Data Firehose delivery stream, the ARN format is: * arn:aws:firehose:region:account-id:deliverystream/stream_name *

*/ inline EventStream& WithDestinationStreamArn(const char* value) { SetDestinationStreamArn(value); return *this;} /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline const Aws::String& GetExternalId() const{ return m_externalId; } /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; } /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; } /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); } /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); } /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline EventStream& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;} /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline EventStream& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;} /** *

(Deprecated) Your AWS account ID, which you assigned to an external ID key in * an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM * role when publishing event data, but we removed this requirement. We don't * recommend use of external IDs for IAM roles that are assumed by Amazon * Pinpoint.

*/ inline EventStream& WithExternalId(const char* value) { SetExternalId(value); return *this;} /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); } /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); } /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline EventStream& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;} /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline EventStream& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

The date, in ISO 8601 format, when the event stream was last modified.

*/ inline EventStream& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;} /** *

The IAM user who last modified the event stream.

*/ inline const Aws::String& GetLastUpdatedBy() const{ return m_lastUpdatedBy; } /** *

The IAM user who last modified the event stream.

*/ inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; } /** *

The IAM user who last modified the event stream.

*/ inline void SetLastUpdatedBy(const Aws::String& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = value; } /** *

The IAM user who last modified the event stream.

*/ inline void SetLastUpdatedBy(Aws::String&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::move(value); } /** *

The IAM user who last modified the event stream.

*/ inline void SetLastUpdatedBy(const char* value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy.assign(value); } /** *

The IAM user who last modified the event stream.

*/ inline EventStream& WithLastUpdatedBy(const Aws::String& value) { SetLastUpdatedBy(value); return *this;} /** *

The IAM user who last modified the event stream.

*/ inline EventStream& WithLastUpdatedBy(Aws::String&& value) { SetLastUpdatedBy(std::move(value)); return *this;} /** *

The IAM user who last modified the event stream.

*/ inline EventStream& WithLastUpdatedBy(const char* value) { SetLastUpdatedBy(value); return *this;} /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline EventStream& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline EventStream& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The AWS Identity and Access Management (IAM) role that authorizes Amazon * Pinpoint to publish event data to the stream in your AWS account.

*/ inline EventStream& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_destinationStreamArn; bool m_destinationStreamArnHasBeenSet = false; Aws::String m_externalId; bool m_externalIdHasBeenSet = false; Aws::String m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_lastUpdatedBy; bool m_lastUpdatedByHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws