This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mediapackage-vod/source/model/Authorization.cpp

75 lines
1.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/mediapackage-vod/model/Authorization.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace MediaPackageVod
{
namespace Model
{
Authorization::Authorization() :
m_cdnIdentifierSecretHasBeenSet(false),
m_secretsRoleArnHasBeenSet(false)
{
}
Authorization::Authorization(JsonView jsonValue) :
m_cdnIdentifierSecretHasBeenSet(false),
m_secretsRoleArnHasBeenSet(false)
{
*this = jsonValue;
}
Authorization& Authorization::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("cdnIdentifierSecret"))
{
m_cdnIdentifierSecret = jsonValue.GetString("cdnIdentifierSecret");
m_cdnIdentifierSecretHasBeenSet = true;
}
if(jsonValue.ValueExists("secretsRoleArn"))
{
m_secretsRoleArn = jsonValue.GetString("secretsRoleArn");
m_secretsRoleArnHasBeenSet = true;
}
return *this;
}
JsonValue Authorization::Jsonize() const
{
JsonValue payload;
if(m_cdnIdentifierSecretHasBeenSet)
{
payload.WithString("cdnIdentifierSecret", m_cdnIdentifierSecret);
}
if(m_secretsRoleArnHasBeenSet)
{
payload.WithString("secretsRoleArn", m_secretsRoleArn);
}
return payload;
}
} // namespace Model
} // namespace MediaPackageVod
} // namespace Aws