/** * 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 DataExchange { namespace Model { ExportAssetToSignedUrlResponseDetails::ExportAssetToSignedUrlResponseDetails() : m_assetIdHasBeenSet(false), m_dataSetIdHasBeenSet(false), m_revisionIdHasBeenSet(false), m_signedUrlHasBeenSet(false), m_signedUrlExpiresAtHasBeenSet(false) { } ExportAssetToSignedUrlResponseDetails::ExportAssetToSignedUrlResponseDetails(JsonView jsonValue) : m_assetIdHasBeenSet(false), m_dataSetIdHasBeenSet(false), m_revisionIdHasBeenSet(false), m_signedUrlHasBeenSet(false), m_signedUrlExpiresAtHasBeenSet(false) { *this = jsonValue; } ExportAssetToSignedUrlResponseDetails& ExportAssetToSignedUrlResponseDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("AssetId")) { m_assetId = jsonValue.GetString("AssetId"); m_assetIdHasBeenSet = true; } if(jsonValue.ValueExists("DataSetId")) { m_dataSetId = jsonValue.GetString("DataSetId"); m_dataSetIdHasBeenSet = true; } if(jsonValue.ValueExists("RevisionId")) { m_revisionId = jsonValue.GetString("RevisionId"); m_revisionIdHasBeenSet = true; } if(jsonValue.ValueExists("SignedUrl")) { m_signedUrl = jsonValue.GetString("SignedUrl"); m_signedUrlHasBeenSet = true; } if(jsonValue.ValueExists("SignedUrlExpiresAt")) { m_signedUrlExpiresAt = jsonValue.GetString("SignedUrlExpiresAt"); m_signedUrlExpiresAtHasBeenSet = true; } return *this; } JsonValue ExportAssetToSignedUrlResponseDetails::Jsonize() const { JsonValue payload; if(m_assetIdHasBeenSet) { payload.WithString("AssetId", m_assetId); } if(m_dataSetIdHasBeenSet) { payload.WithString("DataSetId", m_dataSetId); } if(m_revisionIdHasBeenSet) { payload.WithString("RevisionId", m_revisionId); } if(m_signedUrlHasBeenSet) { payload.WithString("SignedUrl", m_signedUrl); } if(m_signedUrlExpiresAtHasBeenSet) { payload.WithString("SignedUrlExpiresAt", m_signedUrlExpiresAt.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } return payload; } } // namespace Model } // namespace DataExchange } // namespace Aws