240 lines
5.7 KiB
C++
240 lines
5.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/es/model/ElasticsearchDomainConfig.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
namespace Aws
|
|
{
|
|
namespace ElasticsearchService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
ElasticsearchDomainConfig::ElasticsearchDomainConfig() :
|
|
m_elasticsearchVersionHasBeenSet(false),
|
|
m_elasticsearchClusterConfigHasBeenSet(false),
|
|
m_eBSOptionsHasBeenSet(false),
|
|
m_accessPoliciesHasBeenSet(false),
|
|
m_snapshotOptionsHasBeenSet(false),
|
|
m_vPCOptionsHasBeenSet(false),
|
|
m_cognitoOptionsHasBeenSet(false),
|
|
m_encryptionAtRestOptionsHasBeenSet(false),
|
|
m_nodeToNodeEncryptionOptionsHasBeenSet(false),
|
|
m_advancedOptionsHasBeenSet(false),
|
|
m_logPublishingOptionsHasBeenSet(false),
|
|
m_domainEndpointOptionsHasBeenSet(false),
|
|
m_advancedSecurityOptionsHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
ElasticsearchDomainConfig::ElasticsearchDomainConfig(JsonView jsonValue) :
|
|
m_elasticsearchVersionHasBeenSet(false),
|
|
m_elasticsearchClusterConfigHasBeenSet(false),
|
|
m_eBSOptionsHasBeenSet(false),
|
|
m_accessPoliciesHasBeenSet(false),
|
|
m_snapshotOptionsHasBeenSet(false),
|
|
m_vPCOptionsHasBeenSet(false),
|
|
m_cognitoOptionsHasBeenSet(false),
|
|
m_encryptionAtRestOptionsHasBeenSet(false),
|
|
m_nodeToNodeEncryptionOptionsHasBeenSet(false),
|
|
m_advancedOptionsHasBeenSet(false),
|
|
m_logPublishingOptionsHasBeenSet(false),
|
|
m_domainEndpointOptionsHasBeenSet(false),
|
|
m_advancedSecurityOptionsHasBeenSet(false)
|
|
{
|
|
*this = jsonValue;
|
|
}
|
|
|
|
ElasticsearchDomainConfig& ElasticsearchDomainConfig::operator =(JsonView jsonValue)
|
|
{
|
|
if(jsonValue.ValueExists("ElasticsearchVersion"))
|
|
{
|
|
m_elasticsearchVersion = jsonValue.GetObject("ElasticsearchVersion");
|
|
|
|
m_elasticsearchVersionHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("ElasticsearchClusterConfig"))
|
|
{
|
|
m_elasticsearchClusterConfig = jsonValue.GetObject("ElasticsearchClusterConfig");
|
|
|
|
m_elasticsearchClusterConfigHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("EBSOptions"))
|
|
{
|
|
m_eBSOptions = jsonValue.GetObject("EBSOptions");
|
|
|
|
m_eBSOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("AccessPolicies"))
|
|
{
|
|
m_accessPolicies = jsonValue.GetObject("AccessPolicies");
|
|
|
|
m_accessPoliciesHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("SnapshotOptions"))
|
|
{
|
|
m_snapshotOptions = jsonValue.GetObject("SnapshotOptions");
|
|
|
|
m_snapshotOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("VPCOptions"))
|
|
{
|
|
m_vPCOptions = jsonValue.GetObject("VPCOptions");
|
|
|
|
m_vPCOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("CognitoOptions"))
|
|
{
|
|
m_cognitoOptions = jsonValue.GetObject("CognitoOptions");
|
|
|
|
m_cognitoOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("EncryptionAtRestOptions"))
|
|
{
|
|
m_encryptionAtRestOptions = jsonValue.GetObject("EncryptionAtRestOptions");
|
|
|
|
m_encryptionAtRestOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("NodeToNodeEncryptionOptions"))
|
|
{
|
|
m_nodeToNodeEncryptionOptions = jsonValue.GetObject("NodeToNodeEncryptionOptions");
|
|
|
|
m_nodeToNodeEncryptionOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("AdvancedOptions"))
|
|
{
|
|
m_advancedOptions = jsonValue.GetObject("AdvancedOptions");
|
|
|
|
m_advancedOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("LogPublishingOptions"))
|
|
{
|
|
m_logPublishingOptions = jsonValue.GetObject("LogPublishingOptions");
|
|
|
|
m_logPublishingOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("DomainEndpointOptions"))
|
|
{
|
|
m_domainEndpointOptions = jsonValue.GetObject("DomainEndpointOptions");
|
|
|
|
m_domainEndpointOptionsHasBeenSet = true;
|
|
}
|
|
|
|
if(jsonValue.ValueExists("AdvancedSecurityOptions"))
|
|
{
|
|
m_advancedSecurityOptions = jsonValue.GetObject("AdvancedSecurityOptions");
|
|
|
|
m_advancedSecurityOptionsHasBeenSet = true;
|
|
}
|
|
|
|
return *this;
|
|
}
|
|
|
|
JsonValue ElasticsearchDomainConfig::Jsonize() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_elasticsearchVersionHasBeenSet)
|
|
{
|
|
payload.WithObject("ElasticsearchVersion", m_elasticsearchVersion.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_elasticsearchClusterConfigHasBeenSet)
|
|
{
|
|
payload.WithObject("ElasticsearchClusterConfig", m_elasticsearchClusterConfig.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_eBSOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("EBSOptions", m_eBSOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_accessPoliciesHasBeenSet)
|
|
{
|
|
payload.WithObject("AccessPolicies", m_accessPolicies.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_snapshotOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("SnapshotOptions", m_snapshotOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_vPCOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("VPCOptions", m_vPCOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_cognitoOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("CognitoOptions", m_cognitoOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_encryptionAtRestOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("EncryptionAtRestOptions", m_encryptionAtRestOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_nodeToNodeEncryptionOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("NodeToNodeEncryptionOptions", m_nodeToNodeEncryptionOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_advancedOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("AdvancedOptions", m_advancedOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_logPublishingOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("LogPublishingOptions", m_logPublishingOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_domainEndpointOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("DomainEndpointOptions", m_domainEndpointOptions.Jsonize());
|
|
|
|
}
|
|
|
|
if(m_advancedSecurityOptionsHasBeenSet)
|
|
{
|
|
payload.WithObject("AdvancedSecurityOptions", m_advancedSecurityOptions.Jsonize());
|
|
|
|
}
|
|
|
|
return payload;
|
|
}
|
|
|
|
} // namespace Model
|
|
} // namespace ElasticsearchService
|
|
} // namespace Aws
|