/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace PrometheusService { namespace Model { LoggingConfigurationMetadata::LoggingConfigurationMetadata() : m_statusHasBeenSet(false), m_workspaceHasBeenSet(false), m_logGroupArnHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false) { } LoggingConfigurationMetadata::LoggingConfigurationMetadata(JsonView jsonValue) : m_statusHasBeenSet(false), m_workspaceHasBeenSet(false), m_logGroupArnHasBeenSet(false), m_createdAtHasBeenSet(false), m_modifiedAtHasBeenSet(false) { *this = jsonValue; } LoggingConfigurationMetadata& LoggingConfigurationMetadata::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("status")) { m_status = jsonValue.GetObject("status"); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("workspace")) { m_workspace = jsonValue.GetString("workspace"); m_workspaceHasBeenSet = true; } if(jsonValue.ValueExists("logGroupArn")) { m_logGroupArn = jsonValue.GetString("logGroupArn"); m_logGroupArnHasBeenSet = true; } if(jsonValue.ValueExists("createdAt")) { m_createdAt = jsonValue.GetDouble("createdAt"); m_createdAtHasBeenSet = true; } if(jsonValue.ValueExists("modifiedAt")) { m_modifiedAt = jsonValue.GetDouble("modifiedAt"); m_modifiedAtHasBeenSet = true; } return *this; } JsonValue LoggingConfigurationMetadata::Jsonize() const { JsonValue payload; if(m_statusHasBeenSet) { payload.WithObject("status", m_status.Jsonize()); } if(m_workspaceHasBeenSet) { payload.WithString("workspace", m_workspace); } if(m_logGroupArnHasBeenSet) { payload.WithString("logGroupArn", m_logGroupArn); } if(m_createdAtHasBeenSet) { payload.WithDouble("createdAt", m_createdAt.SecondsWithMSPrecision()); } if(m_modifiedAtHasBeenSet) { payload.WithDouble("modifiedAt", m_modifiedAt.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace PrometheusService } // namespace Aws