inline Aws::String ToString()

in GameLiftPlugin/Source/AWSSDK/Include/aws/core/utils/event/EventHeader.h [304:332]


                inline Aws::String ToString() const
                {
                    switch (m_eventHeaderType)
                    {
                        case EventHeaderType::BOOL_TRUE:
                        case EventHeaderType::BOOL_FALSE:
                            return Utils::StringUtils::to_string(GetEventHeaderValueAsBoolean());
                        case EventHeaderType::BYTE:
                            return Utils::StringUtils::to_string(GetEventHeaderValueAsByte());
                        case EventHeaderType::INT16:
                            return Utils::StringUtils::to_string(GetEventHeaderValueAsInt16());
                        case EventHeaderType::INT32:
                            return Utils::StringUtils::to_string(GetEventHeaderValueAsInt32());
                        case EventHeaderType::INT64:
                            return Utils::StringUtils::to_string(GetEventHeaderValueAsInt64());
                        case EventHeaderType::BYTE_BUF:
                            return Aws::String(reinterpret_cast<char*>(GetEventHeaderValueAsBytebuf().GetUnderlyingData()), GetEventHeaderValueAsBytebuf().GetLength());
                        case EventHeaderType::STRING:
                            return GetEventHeaderValueAsString();
                        case EventHeaderType::TIMESTAMP:
                            return Aws::Utils::DateTime(GetEventHeaderValueAsTimestamp()).ToGmtString(Aws::Utils::DateFormat::RFC822);
                        case EventHeaderType::UUID:
                            return GetEventHeaderValueAsUuid();
                        case EventHeaderType::UNKNOWN:
                        default:
                            AWS_LOGSTREAM_ERROR(CLASS_TAG, "Cannot transform EventHeader value to string: type is unknown");
                            return {};
                    }
                }