60 lines
971 B
C++
60 lines
971 B
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/guardduty/model/DomainDetails.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace GuardDuty
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
DomainDetails::DomainDetails() :
|
|
m_domainHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
DomainDetails::DomainDetails(JsonView jsonValue) :
|
|
m_domainHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
DomainDetails& DomainDetails::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("domain"))
|
|
{
|
|
m_domain = jsonValue.GetString("domain");
|
|
|
|
m_domainHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue DomainDetails::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_domainHasBeenSet)
|
|
{
|
|
payload.WithString("domain", m_domain);
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace GuardDuty
|
|
} // namespace Aws
|