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

Provides information about an event tracker.

See Also:

AWS * API Reference

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

The name of the event tracker.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the event tracker.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the event tracker.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the event tracker.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the event tracker.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the event tracker.

*/ inline EventTracker& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the event tracker.

*/ inline EventTracker& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the event tracker.

*/ inline EventTracker& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the event tracker.

*/ inline const Aws::String& GetEventTrackerArn() const{ return m_eventTrackerArn; } /** *

The ARN of the event tracker.

*/ inline bool EventTrackerArnHasBeenSet() const { return m_eventTrackerArnHasBeenSet; } /** *

The ARN of the event tracker.

*/ inline void SetEventTrackerArn(const Aws::String& value) { m_eventTrackerArnHasBeenSet = true; m_eventTrackerArn = value; } /** *

The ARN of the event tracker.

*/ inline void SetEventTrackerArn(Aws::String&& value) { m_eventTrackerArnHasBeenSet = true; m_eventTrackerArn = std::move(value); } /** *

The ARN of the event tracker.

*/ inline void SetEventTrackerArn(const char* value) { m_eventTrackerArnHasBeenSet = true; m_eventTrackerArn.assign(value); } /** *

The ARN of the event tracker.

*/ inline EventTracker& WithEventTrackerArn(const Aws::String& value) { SetEventTrackerArn(value); return *this;} /** *

The ARN of the event tracker.

*/ inline EventTracker& WithEventTrackerArn(Aws::String&& value) { SetEventTrackerArn(std::move(value)); return *this;} /** *

The ARN of the event tracker.

*/ inline EventTracker& WithEventTrackerArn(const char* value) { SetEventTrackerArn(value); return *this;} /** *

The Amazon Web Services account that owns the event tracker.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account that owns the event tracker.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account that owns the event tracker.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account that owns the event tracker.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account that owns the event tracker.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account that owns the event tracker.

*/ inline EventTracker& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account that owns the event tracker.

*/ inline EventTracker& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account that owns the event tracker.

*/ inline EventTracker& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline const Aws::String& GetTrackingId() const{ return m_trackingId; } /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline bool TrackingIdHasBeenSet() const { return m_trackingIdHasBeenSet; } /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline void SetTrackingId(const Aws::String& value) { m_trackingIdHasBeenSet = true; m_trackingId = value; } /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline void SetTrackingId(Aws::String&& value) { m_trackingIdHasBeenSet = true; m_trackingId = std::move(value); } /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline void SetTrackingId(const char* value) { m_trackingIdHasBeenSet = true; m_trackingId.assign(value); } /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline EventTracker& WithTrackingId(const Aws::String& value) { SetTrackingId(value); return *this;} /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline EventTracker& WithTrackingId(Aws::String&& value) { SetTrackingId(std::move(value)); return *this;} /** *

The ID of the event tracker. Include this ID in requests to the PutEvents * API.

*/ inline EventTracker& WithTrackingId(const char* value) { SetTrackingId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; } /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline EventTracker& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline EventTracker& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset group that receives the event * data.

*/ inline EventTracker& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;} /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline EventTracker& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline EventTracker& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the event tracker.

An event tracker can be in one of the * following states:

  • CREATE PENDING > CREATE IN_PROGRESS > * ACTIVE -or- CREATE FAILED

  • DELETE PENDING > DELETE * IN_PROGRESS

*/ inline EventTracker& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline EventTracker& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time (in Unix format) that the event tracker was created.

*/ inline EventTracker& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline EventTracker& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The date and time (in Unix time) that the event tracker was last updated.

*/ inline EventTracker& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_eventTrackerArn; bool m_eventTrackerArnHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_trackingId; bool m_trackingIdHasBeenSet = false; Aws::String m_datasetGroupArn; bool m_datasetGroupArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws