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-glue/source/model/UpdateGrokClassifierRequest.cpp

105 lines
2.0 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/glue/model/UpdateGrokClassifierRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Glue
{
namespace Model
{
UpdateGrokClassifierRequest::UpdateGrokClassifierRequest() :
m_nameHasBeenSet(false),
m_classificationHasBeenSet(false),
m_grokPatternHasBeenSet(false),
m_customPatternsHasBeenSet(false)
{
}
UpdateGrokClassifierRequest::UpdateGrokClassifierRequest(JsonView jsonValue) :
m_nameHasBeenSet(false),
m_classificationHasBeenSet(false),
m_grokPatternHasBeenSet(false),
m_customPatternsHasBeenSet(false)
{
*this = jsonValue;
}
UpdateGrokClassifierRequest& UpdateGrokClassifierRequest::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Classification"))
{
m_classification = jsonValue.GetString("Classification");
m_classificationHasBeenSet = true;
}
if(jsonValue.ValueExists("GrokPattern"))
{
m_grokPattern = jsonValue.GetString("GrokPattern");
m_grokPatternHasBeenSet = true;
}
if(jsonValue.ValueExists("CustomPatterns"))
{
m_customPatterns = jsonValue.GetString("CustomPatterns");
m_customPatternsHasBeenSet = true;
}
return *this;
}
JsonValue UpdateGrokClassifierRequest::Jsonize() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_classificationHasBeenSet)
{
payload.WithString("Classification", m_classification);
}
if(m_grokPatternHasBeenSet)
{
payload.WithString("GrokPattern", m_grokPattern);
}
if(m_customPatternsHasBeenSet)
{
payload.WithString("CustomPatterns", m_customPatterns);
}
return payload;
}
} // namespace Model
} // namespace Glue
} // namespace Aws