/** * 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 Glacier { namespace Model { OutputLocation::OutputLocation() : m_s3HasBeenSet(false) { } OutputLocation::OutputLocation(JsonView jsonValue) : m_s3HasBeenSet(false) { *this = jsonValue; } OutputLocation& OutputLocation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("S3")) { m_s3 = jsonValue.GetObject("S3"); m_s3HasBeenSet = true; } return *this; } JsonValue OutputLocation::Jsonize() const { JsonValue payload; if(m_s3HasBeenSet) { payload.WithObject("S3", m_s3.Jsonize()); } return payload; } } // namespace Model } // namespace Glacier } // namespace Aws