/** * 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 IVS { namespace Model { /** *

Object specifying a stream’s events. For a list of events, see Using * Amazon EventBridge with Amazon IVS.

See Also:

AWS API * Reference

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

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline const Aws::Utils::DateTime& GetEventTime() const{ return m_eventTime; } /** *

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; } /** *

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline void SetEventTime(const Aws::Utils::DateTime& value) { m_eventTimeHasBeenSet = true; m_eventTime = value; } /** *

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline void SetEventTime(Aws::Utils::DateTime&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::move(value); } /** *

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline StreamEvent& WithEventTime(const Aws::Utils::DateTime& value) { SetEventTime(value); return *this;} /** *

Time when the event occurred. This is an ISO 8601 timestamp; note that * this is returned as a string.

*/ inline StreamEvent& WithEventTime(Aws::Utils::DateTime&& value) { SetEventTime(std::move(value)); return *this;} /** *

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Name that identifies the stream event within a type.

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

Logical group for certain events.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

Logical group for certain events.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Logical group for certain events.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Logical group for certain events.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Logical group for certain events.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

Logical group for certain events.

*/ inline StreamEvent& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

Logical group for certain events.

*/ inline StreamEvent& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

Logical group for certain events.

*/ inline StreamEvent& WithType(const char* value) { SetType(value); return *this;} private: Aws::Utils::DateTime m_eventTime; bool m_eventTimeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws