/** * 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 VPCLattice { namespace Model { AccessLogSubscriptionSummary::AccessLogSubscriptionSummary() : m_arnHasBeenSet(false), m_createdAtHasBeenSet(false), m_destinationArnHasBeenSet(false), m_idHasBeenSet(false), m_lastUpdatedAtHasBeenSet(false), m_resourceArnHasBeenSet(false), m_resourceIdHasBeenSet(false) { } AccessLogSubscriptionSummary::AccessLogSubscriptionSummary(JsonView jsonValue) : m_arnHasBeenSet(false), m_createdAtHasBeenSet(false), m_destinationArnHasBeenSet(false), m_idHasBeenSet(false), m_lastUpdatedAtHasBeenSet(false), m_resourceArnHasBeenSet(false), m_resourceIdHasBeenSet(false) { *this = jsonValue; } AccessLogSubscriptionSummary& AccessLogSubscriptionSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("createdAt")) { m_createdAt = jsonValue.GetString("createdAt"); m_createdAtHasBeenSet = true; } if(jsonValue.ValueExists("destinationArn")) { m_destinationArn = jsonValue.GetString("destinationArn"); m_destinationArnHasBeenSet = true; } if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("lastUpdatedAt")) { m_lastUpdatedAt = jsonValue.GetString("lastUpdatedAt"); m_lastUpdatedAtHasBeenSet = true; } if(jsonValue.ValueExists("resourceArn")) { m_resourceArn = jsonValue.GetString("resourceArn"); m_resourceArnHasBeenSet = true; } if(jsonValue.ValueExists("resourceId")) { m_resourceId = jsonValue.GetString("resourceId"); m_resourceIdHasBeenSet = true; } return *this; } JsonValue AccessLogSubscriptionSummary::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } if(m_createdAtHasBeenSet) { payload.WithString("createdAt", m_createdAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_destinationArnHasBeenSet) { payload.WithString("destinationArn", m_destinationArn); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_lastUpdatedAtHasBeenSet) { payload.WithString("lastUpdatedAt", m_lastUpdatedAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_resourceArnHasBeenSet) { payload.WithString("resourceArn", m_resourceArn); } if(m_resourceIdHasBeenSet) { payload.WithString("resourceId", m_resourceId); } return payload; } } // namespace Model } // namespace VPCLattice } // namespace Aws