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

A complex type that contains a Timestamp value and * Message for changes that you make to an accelerator in Global * Accelerator. Messages stored here provide progress or error information when you * update an accelerator from IPv4 to dual-stack, or from dual-stack to IPv4. * Global Accelerator stores a maximum of ten event messages.

See * Also:

AWS * API Reference

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

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline AcceleratorEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline AcceleratorEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A string that contains an Event message describing changes or * errors when you update an accelerator in Global Accelerator from IPv4 to * dual-stack, or dual-stack to IPv4.

*/ inline AcceleratorEvent& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline AcceleratorEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

A timestamp for when you update an accelerator in Global Accelerator from * IPv4 to dual-stack, or dual-stack to IPv4.

*/ inline AcceleratorEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace GlobalAccelerator } // namespace Aws