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-transcribe/source/model/ContentRedaction.cpp

77 lines
1.8 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/transcribe/model/ContentRedaction.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace TranscribeService
{
namespace Model
{
ContentRedaction::ContentRedaction() :
m_redactionType(RedactionType::NOT_SET),
m_redactionTypeHasBeenSet(false),
m_redactionOutput(RedactionOutput::NOT_SET),
m_redactionOutputHasBeenSet(false)
{
}
ContentRedaction::ContentRedaction(JsonView jsonValue) :
m_redactionType(RedactionType::NOT_SET),
m_redactionTypeHasBeenSet(false),
m_redactionOutput(RedactionOutput::NOT_SET),
m_redactionOutputHasBeenSet(false)
{
*this = jsonValue;
}
ContentRedaction& ContentRedaction::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("RedactionType"))
{
m_redactionType = RedactionTypeMapper::GetRedactionTypeForName(jsonValue.GetString("RedactionType"));
m_redactionTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("RedactionOutput"))
{
m_redactionOutput = RedactionOutputMapper::GetRedactionOutputForName(jsonValue.GetString("RedactionOutput"));
m_redactionOutputHasBeenSet = true;
}
return *this;
}
JsonValue ContentRedaction::Jsonize() const
{
JsonValue payload;
if(m_redactionTypeHasBeenSet)
{
payload.WithString("RedactionType", RedactionTypeMapper::GetNameForRedactionType(m_redactionType));
}
if(m_redactionOutputHasBeenSet)
{
payload.WithString("RedactionOutput", RedactionOutputMapper::GetNameForRedactionOutput(m_redactionOutput));
}
return payload;
}
} // namespace Model
} // namespace TranscribeService
} // namespace Aws