feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ChangeType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
namespace ChangeTypeMapper
{
static const int IMMEDIATE_HASH = HashingUtils::HashString("IMMEDIATE");
static const int REQUIRES_REBOOT_HASH = HashingUtils::HashString("REQUIRES_REBOOT");
ChangeType GetChangeTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == IMMEDIATE_HASH)
{
return ChangeType::IMMEDIATE;
}
else if (hashCode == REQUIRES_REBOOT_HASH)
{
return ChangeType::REQUIRES_REBOOT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ChangeType>(hashCode);
}
return ChangeType::NOT_SET;
}
Aws::String GetNameForChangeType(ChangeType enumValue)
{
switch(enumValue)
{
case ChangeType::IMMEDIATE:
return "IMMEDIATE";
case ChangeType::REQUIRES_REBOOT:
return "REQUIRES_REBOOT";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ChangeTypeMapper
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,327 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Cluster.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Cluster::Cluster() :
m_clusterNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_clusterArnHasBeenSet(false),
m_totalNodes(0),
m_totalNodesHasBeenSet(false),
m_activeNodes(0),
m_activeNodesHasBeenSet(false),
m_nodeTypeHasBeenSet(false),
m_statusHasBeenSet(false),
m_clusterDiscoveryEndpointHasBeenSet(false),
m_nodeIdsToRemoveHasBeenSet(false),
m_nodesHasBeenSet(false),
m_preferredMaintenanceWindowHasBeenSet(false),
m_notificationConfigurationHasBeenSet(false),
m_subnetGroupHasBeenSet(false),
m_securityGroupsHasBeenSet(false),
m_iamRoleArnHasBeenSet(false),
m_parameterGroupHasBeenSet(false),
m_sSEDescriptionHasBeenSet(false)
{
}
Cluster::Cluster(JsonView jsonValue) :
m_clusterNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_clusterArnHasBeenSet(false),
m_totalNodes(0),
m_totalNodesHasBeenSet(false),
m_activeNodes(0),
m_activeNodesHasBeenSet(false),
m_nodeTypeHasBeenSet(false),
m_statusHasBeenSet(false),
m_clusterDiscoveryEndpointHasBeenSet(false),
m_nodeIdsToRemoveHasBeenSet(false),
m_nodesHasBeenSet(false),
m_preferredMaintenanceWindowHasBeenSet(false),
m_notificationConfigurationHasBeenSet(false),
m_subnetGroupHasBeenSet(false),
m_securityGroupsHasBeenSet(false),
m_iamRoleArnHasBeenSet(false),
m_parameterGroupHasBeenSet(false),
m_sSEDescriptionHasBeenSet(false)
{
*this = jsonValue;
}
Cluster& Cluster::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ClusterName"))
{
m_clusterName = jsonValue.GetString("ClusterName");
m_clusterNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("ClusterArn"))
{
m_clusterArn = jsonValue.GetString("ClusterArn");
m_clusterArnHasBeenSet = true;
}
if(jsonValue.ValueExists("TotalNodes"))
{
m_totalNodes = jsonValue.GetInteger("TotalNodes");
m_totalNodesHasBeenSet = true;
}
if(jsonValue.ValueExists("ActiveNodes"))
{
m_activeNodes = jsonValue.GetInteger("ActiveNodes");
m_activeNodesHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeType"))
{
m_nodeType = jsonValue.GetString("NodeType");
m_nodeTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("ClusterDiscoveryEndpoint"))
{
m_clusterDiscoveryEndpoint = jsonValue.GetObject("ClusterDiscoveryEndpoint");
m_clusterDiscoveryEndpointHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeIdsToRemove"))
{
Array<JsonView> nodeIdsToRemoveJsonList = jsonValue.GetArray("NodeIdsToRemove");
for(unsigned nodeIdsToRemoveIndex = 0; nodeIdsToRemoveIndex < nodeIdsToRemoveJsonList.GetLength(); ++nodeIdsToRemoveIndex)
{
m_nodeIdsToRemove.push_back(nodeIdsToRemoveJsonList[nodeIdsToRemoveIndex].AsString());
}
m_nodeIdsToRemoveHasBeenSet = true;
}
if(jsonValue.ValueExists("Nodes"))
{
Array<JsonView> nodesJsonList = jsonValue.GetArray("Nodes");
for(unsigned nodesIndex = 0; nodesIndex < nodesJsonList.GetLength(); ++nodesIndex)
{
m_nodes.push_back(nodesJsonList[nodesIndex].AsObject());
}
m_nodesHasBeenSet = true;
}
if(jsonValue.ValueExists("PreferredMaintenanceWindow"))
{
m_preferredMaintenanceWindow = jsonValue.GetString("PreferredMaintenanceWindow");
m_preferredMaintenanceWindowHasBeenSet = true;
}
if(jsonValue.ValueExists("NotificationConfiguration"))
{
m_notificationConfiguration = jsonValue.GetObject("NotificationConfiguration");
m_notificationConfigurationHasBeenSet = true;
}
if(jsonValue.ValueExists("SubnetGroup"))
{
m_subnetGroup = jsonValue.GetString("SubnetGroup");
m_subnetGroupHasBeenSet = true;
}
if(jsonValue.ValueExists("SecurityGroups"))
{
Array<JsonView> securityGroupsJsonList = jsonValue.GetArray("SecurityGroups");
for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex)
{
m_securityGroups.push_back(securityGroupsJsonList[securityGroupsIndex].AsObject());
}
m_securityGroupsHasBeenSet = true;
}
if(jsonValue.ValueExists("IamRoleArn"))
{
m_iamRoleArn = jsonValue.GetString("IamRoleArn");
m_iamRoleArnHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterGroup"))
{
m_parameterGroup = jsonValue.GetObject("ParameterGroup");
m_parameterGroupHasBeenSet = true;
}
if(jsonValue.ValueExists("SSEDescription"))
{
m_sSEDescription = jsonValue.GetObject("SSEDescription");
m_sSEDescriptionHasBeenSet = true;
}
return *this;
}
JsonValue Cluster::Jsonize() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_clusterArnHasBeenSet)
{
payload.WithString("ClusterArn", m_clusterArn);
}
if(m_totalNodesHasBeenSet)
{
payload.WithInteger("TotalNodes", m_totalNodes);
}
if(m_activeNodesHasBeenSet)
{
payload.WithInteger("ActiveNodes", m_activeNodes);
}
if(m_nodeTypeHasBeenSet)
{
payload.WithString("NodeType", m_nodeType);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_clusterDiscoveryEndpointHasBeenSet)
{
payload.WithObject("ClusterDiscoveryEndpoint", m_clusterDiscoveryEndpoint.Jsonize());
}
if(m_nodeIdsToRemoveHasBeenSet)
{
Array<JsonValue> nodeIdsToRemoveJsonList(m_nodeIdsToRemove.size());
for(unsigned nodeIdsToRemoveIndex = 0; nodeIdsToRemoveIndex < nodeIdsToRemoveJsonList.GetLength(); ++nodeIdsToRemoveIndex)
{
nodeIdsToRemoveJsonList[nodeIdsToRemoveIndex].AsString(m_nodeIdsToRemove[nodeIdsToRemoveIndex]);
}
payload.WithArray("NodeIdsToRemove", std::move(nodeIdsToRemoveJsonList));
}
if(m_nodesHasBeenSet)
{
Array<JsonValue> nodesJsonList(m_nodes.size());
for(unsigned nodesIndex = 0; nodesIndex < nodesJsonList.GetLength(); ++nodesIndex)
{
nodesJsonList[nodesIndex].AsObject(m_nodes[nodesIndex].Jsonize());
}
payload.WithArray("Nodes", std::move(nodesJsonList));
}
if(m_preferredMaintenanceWindowHasBeenSet)
{
payload.WithString("PreferredMaintenanceWindow", m_preferredMaintenanceWindow);
}
if(m_notificationConfigurationHasBeenSet)
{
payload.WithObject("NotificationConfiguration", m_notificationConfiguration.Jsonize());
}
if(m_subnetGroupHasBeenSet)
{
payload.WithString("SubnetGroup", m_subnetGroup);
}
if(m_securityGroupsHasBeenSet)
{
Array<JsonValue> securityGroupsJsonList(m_securityGroups.size());
for(unsigned securityGroupsIndex = 0; securityGroupsIndex < securityGroupsJsonList.GetLength(); ++securityGroupsIndex)
{
securityGroupsJsonList[securityGroupsIndex].AsObject(m_securityGroups[securityGroupsIndex].Jsonize());
}
payload.WithArray("SecurityGroups", std::move(securityGroupsJsonList));
}
if(m_iamRoleArnHasBeenSet)
{
payload.WithString("IamRoleArn", m_iamRoleArn);
}
if(m_parameterGroupHasBeenSet)
{
payload.WithObject("ParameterGroup", m_parameterGroup.Jsonize());
}
if(m_sSEDescriptionHasBeenSet)
{
payload.WithObject("SSEDescription", m_sSEDescription.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateClusterRequest::CreateClusterRequest() :
m_clusterNameHasBeenSet(false),
m_nodeTypeHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_replicationFactor(0),
m_replicationFactorHasBeenSet(false),
m_availabilityZonesHasBeenSet(false),
m_subnetGroupNameHasBeenSet(false),
m_securityGroupIdsHasBeenSet(false),
m_preferredMaintenanceWindowHasBeenSet(false),
m_notificationTopicArnHasBeenSet(false),
m_iamRoleArnHasBeenSet(false),
m_parameterGroupNameHasBeenSet(false),
m_tagsHasBeenSet(false),
m_sSESpecificationHasBeenSet(false)
{
}
Aws::String CreateClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_nodeTypeHasBeenSet)
{
payload.WithString("NodeType", m_nodeType);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_replicationFactorHasBeenSet)
{
payload.WithInteger("ReplicationFactor", m_replicationFactor);
}
if(m_availabilityZonesHasBeenSet)
{
Array<JsonValue> availabilityZonesJsonList(m_availabilityZones.size());
for(unsigned availabilityZonesIndex = 0; availabilityZonesIndex < availabilityZonesJsonList.GetLength(); ++availabilityZonesIndex)
{
availabilityZonesJsonList[availabilityZonesIndex].AsString(m_availabilityZones[availabilityZonesIndex]);
}
payload.WithArray("AvailabilityZones", std::move(availabilityZonesJsonList));
}
if(m_subnetGroupNameHasBeenSet)
{
payload.WithString("SubnetGroupName", m_subnetGroupName);
}
if(m_securityGroupIdsHasBeenSet)
{
Array<JsonValue> securityGroupIdsJsonList(m_securityGroupIds.size());
for(unsigned securityGroupIdsIndex = 0; securityGroupIdsIndex < securityGroupIdsJsonList.GetLength(); ++securityGroupIdsIndex)
{
securityGroupIdsJsonList[securityGroupIdsIndex].AsString(m_securityGroupIds[securityGroupIdsIndex]);
}
payload.WithArray("SecurityGroupIds", std::move(securityGroupIdsJsonList));
}
if(m_preferredMaintenanceWindowHasBeenSet)
{
payload.WithString("PreferredMaintenanceWindow", m_preferredMaintenanceWindow);
}
if(m_notificationTopicArnHasBeenSet)
{
payload.WithString("NotificationTopicArn", m_notificationTopicArn);
}
if(m_iamRoleArnHasBeenSet)
{
payload.WithString("IamRoleArn", m_iamRoleArn);
}
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
if(m_sSESpecificationHasBeenSet)
{
payload.WithObject("SSESpecification", m_sSESpecification.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.CreateCluster"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateClusterResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateClusterResult::CreateClusterResult()
{
}
CreateClusterResult::CreateClusterResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateClusterResult& CreateClusterResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateParameterGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateParameterGroupRequest::CreateParameterGroupRequest() :
m_parameterGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
Aws::String CreateParameterGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateParameterGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.CreateParameterGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateParameterGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateParameterGroupResult::CreateParameterGroupResult()
{
}
CreateParameterGroupResult::CreateParameterGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateParameterGroupResult& CreateParameterGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ParameterGroup"))
{
m_parameterGroup = jsonValue.GetObject("ParameterGroup");
}
return *this;
}

View File

@@ -0,0 +1,62 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateSubnetGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateSubnetGroupRequest::CreateSubnetGroupRequest() :
m_subnetGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_subnetIdsHasBeenSet(false)
{
}
Aws::String CreateSubnetGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_subnetGroupNameHasBeenSet)
{
payload.WithString("SubnetGroupName", m_subnetGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_subnetIdsHasBeenSet)
{
Array<JsonValue> subnetIdsJsonList(m_subnetIds.size());
for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex)
{
subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]);
}
payload.WithArray("SubnetIds", std::move(subnetIdsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateSubnetGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.CreateSubnetGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/CreateSubnetGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateSubnetGroupResult::CreateSubnetGroupResult()
{
}
CreateSubnetGroupResult::CreateSubnetGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateSubnetGroupResult& CreateSubnetGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("SubnetGroup"))
{
m_subnetGroup = jsonValue.GetObject("SubnetGroup");
}
return *this;
}

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DecreaseReplicationFactorRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DecreaseReplicationFactorRequest::DecreaseReplicationFactorRequest() :
m_clusterNameHasBeenSet(false),
m_newReplicationFactor(0),
m_newReplicationFactorHasBeenSet(false),
m_availabilityZonesHasBeenSet(false),
m_nodeIdsToRemoveHasBeenSet(false)
{
}
Aws::String DecreaseReplicationFactorRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_newReplicationFactorHasBeenSet)
{
payload.WithInteger("NewReplicationFactor", m_newReplicationFactor);
}
if(m_availabilityZonesHasBeenSet)
{
Array<JsonValue> availabilityZonesJsonList(m_availabilityZones.size());
for(unsigned availabilityZonesIndex = 0; availabilityZonesIndex < availabilityZonesJsonList.GetLength(); ++availabilityZonesIndex)
{
availabilityZonesJsonList[availabilityZonesIndex].AsString(m_availabilityZones[availabilityZonesIndex]);
}
payload.WithArray("AvailabilityZones", std::move(availabilityZonesJsonList));
}
if(m_nodeIdsToRemoveHasBeenSet)
{
Array<JsonValue> nodeIdsToRemoveJsonList(m_nodeIdsToRemove.size());
for(unsigned nodeIdsToRemoveIndex = 0; nodeIdsToRemoveIndex < nodeIdsToRemoveJsonList.GetLength(); ++nodeIdsToRemoveIndex)
{
nodeIdsToRemoveJsonList[nodeIdsToRemoveIndex].AsString(m_nodeIdsToRemove[nodeIdsToRemoveIndex]);
}
payload.WithArray("NodeIdsToRemove", std::move(nodeIdsToRemoveJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DecreaseReplicationFactorRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DecreaseReplicationFactor"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DecreaseReplicationFactorResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DecreaseReplicationFactorResult::DecreaseReplicationFactorResult()
{
}
DecreaseReplicationFactorResult::DecreaseReplicationFactorResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DecreaseReplicationFactorResult& DecreaseReplicationFactorResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteClusterRequest::DeleteClusterRequest() :
m_clusterNameHasBeenSet(false)
{
}
Aws::String DeleteClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DeleteCluster"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteClusterResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteClusterResult::DeleteClusterResult()
{
}
DeleteClusterResult::DeleteClusterResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteClusterResult& DeleteClusterResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteParameterGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteParameterGroupRequest::DeleteParameterGroupRequest() :
m_parameterGroupNameHasBeenSet(false)
{
}
Aws::String DeleteParameterGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteParameterGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DeleteParameterGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteParameterGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteParameterGroupResult::DeleteParameterGroupResult()
{
}
DeleteParameterGroupResult::DeleteParameterGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteParameterGroupResult& DeleteParameterGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("DeletionMessage"))
{
m_deletionMessage = jsonValue.GetString("DeletionMessage");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteSubnetGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteSubnetGroupRequest::DeleteSubnetGroupRequest() :
m_subnetGroupNameHasBeenSet(false)
{
}
Aws::String DeleteSubnetGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_subnetGroupNameHasBeenSet)
{
payload.WithString("SubnetGroupName", m_subnetGroupName);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DeleteSubnetGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DeleteSubnetGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DeleteSubnetGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteSubnetGroupResult::DeleteSubnetGroupResult()
{
}
DeleteSubnetGroupResult::DeleteSubnetGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteSubnetGroupResult& DeleteSubnetGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("DeletionMessage"))
{
m_deletionMessage = jsonValue.GetString("DeletionMessage");
}
return *this;
}

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeClustersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeClustersRequest::DescribeClustersRequest() :
m_clusterNamesHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeClustersRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNamesHasBeenSet)
{
Array<JsonValue> clusterNamesJsonList(m_clusterNames.size());
for(unsigned clusterNamesIndex = 0; clusterNamesIndex < clusterNamesJsonList.GetLength(); ++clusterNamesIndex)
{
clusterNamesJsonList[clusterNamesIndex].AsString(m_clusterNames[clusterNamesIndex]);
}
payload.WithArray("ClusterNames", std::move(clusterNamesJsonList));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeClustersRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeClusters"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeClustersResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeClustersResult::DescribeClustersResult()
{
}
DescribeClustersResult::DescribeClustersResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeClustersResult& DescribeClustersResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Clusters"))
{
Array<JsonView> clustersJsonList = jsonValue.GetArray("Clusters");
for(unsigned clustersIndex = 0; clustersIndex < clustersJsonList.GetLength(); ++clustersIndex)
{
m_clusters.push_back(clustersJsonList[clustersIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,51 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeDefaultParametersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeDefaultParametersRequest::DescribeDefaultParametersRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeDefaultParametersRequest::SerializePayload() const
{
JsonValue payload;
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeDefaultParametersRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeDefaultParameters"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeDefaultParametersResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeDefaultParametersResult::DescribeDefaultParametersResult()
{
}
DescribeDefaultParametersResult::DescribeDefaultParametersResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeDefaultParametersResult& DescribeDefaultParametersResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Parameters"))
{
Array<JsonView> parametersJsonList = jsonValue.GetArray("Parameters");
for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex)
{
m_parameters.push_back(parametersJsonList[parametersIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeEventsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeEventsRequest::DescribeEventsRequest() :
m_sourceNameHasBeenSet(false),
m_sourceType(SourceType::NOT_SET),
m_sourceTypeHasBeenSet(false),
m_startTimeHasBeenSet(false),
m_endTimeHasBeenSet(false),
m_duration(0),
m_durationHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeEventsRequest::SerializePayload() const
{
JsonValue payload;
if(m_sourceNameHasBeenSet)
{
payload.WithString("SourceName", m_sourceName);
}
if(m_sourceTypeHasBeenSet)
{
payload.WithString("SourceType", SourceTypeMapper::GetNameForSourceType(m_sourceType));
}
if(m_startTimeHasBeenSet)
{
payload.WithDouble("StartTime", m_startTime.SecondsWithMSPrecision());
}
if(m_endTimeHasBeenSet)
{
payload.WithDouble("EndTime", m_endTime.SecondsWithMSPrecision());
}
if(m_durationHasBeenSet)
{
payload.WithInteger("Duration", m_duration);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeEventsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeEvents"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeEventsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeEventsResult::DescribeEventsResult()
{
}
DescribeEventsResult::DescribeEventsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeEventsResult& DescribeEventsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Events"))
{
Array<JsonView> eventsJsonList = jsonValue.GetArray("Events");
for(unsigned eventsIndex = 0; eventsIndex < eventsJsonList.GetLength(); ++eventsIndex)
{
m_events.push_back(eventsJsonList[eventsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeParameterGroupsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeParameterGroupsRequest::DescribeParameterGroupsRequest() :
m_parameterGroupNamesHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeParameterGroupsRequest::SerializePayload() const
{
JsonValue payload;
if(m_parameterGroupNamesHasBeenSet)
{
Array<JsonValue> parameterGroupNamesJsonList(m_parameterGroupNames.size());
for(unsigned parameterGroupNamesIndex = 0; parameterGroupNamesIndex < parameterGroupNamesJsonList.GetLength(); ++parameterGroupNamesIndex)
{
parameterGroupNamesJsonList[parameterGroupNamesIndex].AsString(m_parameterGroupNames[parameterGroupNamesIndex]);
}
payload.WithArray("ParameterGroupNames", std::move(parameterGroupNamesJsonList));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeParameterGroupsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeParameterGroups"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeParameterGroupsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeParameterGroupsResult::DescribeParameterGroupsResult()
{
}
DescribeParameterGroupsResult::DescribeParameterGroupsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeParameterGroupsResult& DescribeParameterGroupsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("ParameterGroups"))
{
Array<JsonView> parameterGroupsJsonList = jsonValue.GetArray("ParameterGroups");
for(unsigned parameterGroupsIndex = 0; parameterGroupsIndex < parameterGroupsJsonList.GetLength(); ++parameterGroupsIndex)
{
m_parameterGroups.push_back(parameterGroupsJsonList[parameterGroupsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,65 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeParametersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeParametersRequest::DescribeParametersRequest() :
m_parameterGroupNameHasBeenSet(false),
m_sourceHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeParametersRequest::SerializePayload() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_sourceHasBeenSet)
{
payload.WithString("Source", m_source);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeParametersRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeParameters"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeParametersResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeParametersResult::DescribeParametersResult()
{
}
DescribeParametersResult::DescribeParametersResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeParametersResult& DescribeParametersResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Parameters"))
{
Array<JsonView> parametersJsonList = jsonValue.GetArray("Parameters");
for(unsigned parametersIndex = 0; parametersIndex < parametersJsonList.GetLength(); ++parametersIndex)
{
m_parameters.push_back(parametersJsonList[parametersIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeSubnetGroupsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeSubnetGroupsRequest::DescribeSubnetGroupsRequest() :
m_subnetGroupNamesHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeSubnetGroupsRequest::SerializePayload() const
{
JsonValue payload;
if(m_subnetGroupNamesHasBeenSet)
{
Array<JsonValue> subnetGroupNamesJsonList(m_subnetGroupNames.size());
for(unsigned subnetGroupNamesIndex = 0; subnetGroupNamesIndex < subnetGroupNamesJsonList.GetLength(); ++subnetGroupNamesIndex)
{
subnetGroupNamesJsonList[subnetGroupNamesIndex].AsString(m_subnetGroupNames[subnetGroupNamesIndex]);
}
payload.WithArray("SubnetGroupNames", std::move(subnetGroupNamesJsonList));
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeSubnetGroupsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.DescribeSubnetGroups"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/DescribeSubnetGroupsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeSubnetGroupsResult::DescribeSubnetGroupsResult()
{
}
DescribeSubnetGroupsResult::DescribeSubnetGroupsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeSubnetGroupsResult& DescribeSubnetGroupsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("SubnetGroups"))
{
Array<JsonView> subnetGroupsJsonList = jsonValue.GetArray("SubnetGroups");
for(unsigned subnetGroupsIndex = 0; subnetGroupsIndex < subnetGroupsJsonList.GetLength(); ++subnetGroupsIndex)
{
m_subnetGroups.push_back(subnetGroupsJsonList[subnetGroupsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Endpoint.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Endpoint::Endpoint() :
m_addressHasBeenSet(false),
m_port(0),
m_portHasBeenSet(false)
{
}
Endpoint::Endpoint(JsonView jsonValue) :
m_addressHasBeenSet(false),
m_port(0),
m_portHasBeenSet(false)
{
*this = jsonValue;
}
Endpoint& Endpoint::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Address"))
{
m_address = jsonValue.GetString("Address");
m_addressHasBeenSet = true;
}
if(jsonValue.ValueExists("Port"))
{
m_port = jsonValue.GetInteger("Port");
m_portHasBeenSet = true;
}
return *this;
}
JsonValue Endpoint::Jsonize() const
{
JsonValue payload;
if(m_addressHasBeenSet)
{
payload.WithString("Address", m_address);
}
if(m_portHasBeenSet)
{
payload.WithInteger("Port", m_port);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Event.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Event::Event() :
m_sourceNameHasBeenSet(false),
m_sourceType(SourceType::NOT_SET),
m_sourceTypeHasBeenSet(false),
m_messageHasBeenSet(false),
m_dateHasBeenSet(false)
{
}
Event::Event(JsonView jsonValue) :
m_sourceNameHasBeenSet(false),
m_sourceType(SourceType::NOT_SET),
m_sourceTypeHasBeenSet(false),
m_messageHasBeenSet(false),
m_dateHasBeenSet(false)
{
*this = jsonValue;
}
Event& Event::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SourceName"))
{
m_sourceName = jsonValue.GetString("SourceName");
m_sourceNameHasBeenSet = true;
}
if(jsonValue.ValueExists("SourceType"))
{
m_sourceType = SourceTypeMapper::GetSourceTypeForName(jsonValue.GetString("SourceType"));
m_sourceTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
if(jsonValue.ValueExists("Date"))
{
m_date = jsonValue.GetDouble("Date");
m_dateHasBeenSet = true;
}
return *this;
}
JsonValue Event::Jsonize() const
{
JsonValue payload;
if(m_sourceNameHasBeenSet)
{
payload.WithString("SourceName", m_sourceName);
}
if(m_sourceTypeHasBeenSet)
{
payload.WithString("SourceType", SourceTypeMapper::GetNameForSourceType(m_sourceType));
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
if(m_dateHasBeenSet)
{
payload.WithDouble("Date", m_date.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/IncreaseReplicationFactorRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
IncreaseReplicationFactorRequest::IncreaseReplicationFactorRequest() :
m_clusterNameHasBeenSet(false),
m_newReplicationFactor(0),
m_newReplicationFactorHasBeenSet(false),
m_availabilityZonesHasBeenSet(false)
{
}
Aws::String IncreaseReplicationFactorRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_newReplicationFactorHasBeenSet)
{
payload.WithInteger("NewReplicationFactor", m_newReplicationFactor);
}
if(m_availabilityZonesHasBeenSet)
{
Array<JsonValue> availabilityZonesJsonList(m_availabilityZones.size());
for(unsigned availabilityZonesIndex = 0; availabilityZonesIndex < availabilityZonesJsonList.GetLength(); ++availabilityZonesIndex)
{
availabilityZonesJsonList[availabilityZonesIndex].AsString(m_availabilityZones[availabilityZonesIndex]);
}
payload.WithArray("AvailabilityZones", std::move(availabilityZonesJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection IncreaseReplicationFactorRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.IncreaseReplicationFactor"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/IncreaseReplicationFactorResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
IncreaseReplicationFactorResult::IncreaseReplicationFactorResult()
{
}
IncreaseReplicationFactorResult::IncreaseReplicationFactorResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
IncreaseReplicationFactorResult& IncreaseReplicationFactorResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/IsModifiable.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
namespace IsModifiableMapper
{
static const int TRUE_HASH = HashingUtils::HashString("TRUE");
static const int FALSE_HASH = HashingUtils::HashString("FALSE");
static const int CONDITIONAL_HASH = HashingUtils::HashString("CONDITIONAL");
IsModifiable GetIsModifiableForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == TRUE_HASH)
{
return IsModifiable::TRUE;
}
else if (hashCode == FALSE_HASH)
{
return IsModifiable::FALSE;
}
else if (hashCode == CONDITIONAL_HASH)
{
return IsModifiable::CONDITIONAL;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<IsModifiable>(hashCode);
}
return IsModifiable::NOT_SET;
}
Aws::String GetNameForIsModifiable(IsModifiable enumValue)
{
switch(enumValue)
{
case IsModifiable::TRUE:
return "TRUE";
case IsModifiable::FALSE:
return "FALSE";
case IsModifiable::CONDITIONAL:
return "CONDITIONAL";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace IsModifiableMapper
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ListTagsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListTagsRequest::ListTagsRequest() :
m_resourceNameHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListTagsRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceNameHasBeenSet)
{
payload.WithString("ResourceName", m_resourceName);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListTagsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.ListTags"));
return headers;
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ListTagsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListTagsResult::ListTagsResult()
{
}
ListTagsResult::ListTagsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListTagsResult& ListTagsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Tags"))
{
Array<JsonView> tagsJsonList = jsonValue.GetArray("Tags");
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
m_tags.push_back(tagsJsonList[tagsIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Node.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Node::Node() :
m_nodeIdHasBeenSet(false),
m_endpointHasBeenSet(false),
m_nodeCreateTimeHasBeenSet(false),
m_availabilityZoneHasBeenSet(false),
m_nodeStatusHasBeenSet(false),
m_parameterGroupStatusHasBeenSet(false)
{
}
Node::Node(JsonView jsonValue) :
m_nodeIdHasBeenSet(false),
m_endpointHasBeenSet(false),
m_nodeCreateTimeHasBeenSet(false),
m_availabilityZoneHasBeenSet(false),
m_nodeStatusHasBeenSet(false),
m_parameterGroupStatusHasBeenSet(false)
{
*this = jsonValue;
}
Node& Node::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("NodeId"))
{
m_nodeId = jsonValue.GetString("NodeId");
m_nodeIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Endpoint"))
{
m_endpoint = jsonValue.GetObject("Endpoint");
m_endpointHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeCreateTime"))
{
m_nodeCreateTime = jsonValue.GetDouble("NodeCreateTime");
m_nodeCreateTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("AvailabilityZone"))
{
m_availabilityZone = jsonValue.GetString("AvailabilityZone");
m_availabilityZoneHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeStatus"))
{
m_nodeStatus = jsonValue.GetString("NodeStatus");
m_nodeStatusHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterGroupStatus"))
{
m_parameterGroupStatus = jsonValue.GetString("ParameterGroupStatus");
m_parameterGroupStatusHasBeenSet = true;
}
return *this;
}
JsonValue Node::Jsonize() const
{
JsonValue payload;
if(m_nodeIdHasBeenSet)
{
payload.WithString("NodeId", m_nodeId);
}
if(m_endpointHasBeenSet)
{
payload.WithObject("Endpoint", m_endpoint.Jsonize());
}
if(m_nodeCreateTimeHasBeenSet)
{
payload.WithDouble("NodeCreateTime", m_nodeCreateTime.SecondsWithMSPrecision());
}
if(m_availabilityZoneHasBeenSet)
{
payload.WithString("AvailabilityZone", m_availabilityZone);
}
if(m_nodeStatusHasBeenSet)
{
payload.WithString("NodeStatus", m_nodeStatus);
}
if(m_parameterGroupStatusHasBeenSet)
{
payload.WithString("ParameterGroupStatus", m_parameterGroupStatus);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/NodeTypeSpecificValue.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
NodeTypeSpecificValue::NodeTypeSpecificValue() :
m_nodeTypeHasBeenSet(false),
m_valueHasBeenSet(false)
{
}
NodeTypeSpecificValue::NodeTypeSpecificValue(JsonView jsonValue) :
m_nodeTypeHasBeenSet(false),
m_valueHasBeenSet(false)
{
*this = jsonValue;
}
NodeTypeSpecificValue& NodeTypeSpecificValue::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("NodeType"))
{
m_nodeType = jsonValue.GetString("NodeType");
m_nodeTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("Value"))
{
m_value = jsonValue.GetString("Value");
m_valueHasBeenSet = true;
}
return *this;
}
JsonValue NodeTypeSpecificValue::Jsonize() const
{
JsonValue payload;
if(m_nodeTypeHasBeenSet)
{
payload.WithString("NodeType", m_nodeType);
}
if(m_valueHasBeenSet)
{
payload.WithString("Value", m_value);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/NotificationConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
NotificationConfiguration::NotificationConfiguration() :
m_topicArnHasBeenSet(false),
m_topicStatusHasBeenSet(false)
{
}
NotificationConfiguration::NotificationConfiguration(JsonView jsonValue) :
m_topicArnHasBeenSet(false),
m_topicStatusHasBeenSet(false)
{
*this = jsonValue;
}
NotificationConfiguration& NotificationConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("TopicArn"))
{
m_topicArn = jsonValue.GetString("TopicArn");
m_topicArnHasBeenSet = true;
}
if(jsonValue.ValueExists("TopicStatus"))
{
m_topicStatus = jsonValue.GetString("TopicStatus");
m_topicStatusHasBeenSet = true;
}
return *this;
}
JsonValue NotificationConfiguration::Jsonize() const
{
JsonValue payload;
if(m_topicArnHasBeenSet)
{
payload.WithString("TopicArn", m_topicArn);
}
if(m_topicStatusHasBeenSet)
{
payload.WithString("TopicStatus", m_topicStatus);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Parameter.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Parameter::Parameter() :
m_parameterNameHasBeenSet(false),
m_parameterType(ParameterType::NOT_SET),
m_parameterTypeHasBeenSet(false),
m_parameterValueHasBeenSet(false),
m_nodeTypeSpecificValuesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_sourceHasBeenSet(false),
m_dataTypeHasBeenSet(false),
m_allowedValuesHasBeenSet(false),
m_isModifiable(IsModifiable::NOT_SET),
m_isModifiableHasBeenSet(false),
m_changeType(ChangeType::NOT_SET),
m_changeTypeHasBeenSet(false)
{
}
Parameter::Parameter(JsonView jsonValue) :
m_parameterNameHasBeenSet(false),
m_parameterType(ParameterType::NOT_SET),
m_parameterTypeHasBeenSet(false),
m_parameterValueHasBeenSet(false),
m_nodeTypeSpecificValuesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_sourceHasBeenSet(false),
m_dataTypeHasBeenSet(false),
m_allowedValuesHasBeenSet(false),
m_isModifiable(IsModifiable::NOT_SET),
m_isModifiableHasBeenSet(false),
m_changeType(ChangeType::NOT_SET),
m_changeTypeHasBeenSet(false)
{
*this = jsonValue;
}
Parameter& Parameter::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ParameterName"))
{
m_parameterName = jsonValue.GetString("ParameterName");
m_parameterNameHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterType"))
{
m_parameterType = ParameterTypeMapper::GetParameterTypeForName(jsonValue.GetString("ParameterType"));
m_parameterTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterValue"))
{
m_parameterValue = jsonValue.GetString("ParameterValue");
m_parameterValueHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeTypeSpecificValues"))
{
Array<JsonView> nodeTypeSpecificValuesJsonList = jsonValue.GetArray("NodeTypeSpecificValues");
for(unsigned nodeTypeSpecificValuesIndex = 0; nodeTypeSpecificValuesIndex < nodeTypeSpecificValuesJsonList.GetLength(); ++nodeTypeSpecificValuesIndex)
{
m_nodeTypeSpecificValues.push_back(nodeTypeSpecificValuesJsonList[nodeTypeSpecificValuesIndex].AsObject());
}
m_nodeTypeSpecificValuesHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Source"))
{
m_source = jsonValue.GetString("Source");
m_sourceHasBeenSet = true;
}
if(jsonValue.ValueExists("DataType"))
{
m_dataType = jsonValue.GetString("DataType");
m_dataTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("AllowedValues"))
{
m_allowedValues = jsonValue.GetString("AllowedValues");
m_allowedValuesHasBeenSet = true;
}
if(jsonValue.ValueExists("IsModifiable"))
{
m_isModifiable = IsModifiableMapper::GetIsModifiableForName(jsonValue.GetString("IsModifiable"));
m_isModifiableHasBeenSet = true;
}
if(jsonValue.ValueExists("ChangeType"))
{
m_changeType = ChangeTypeMapper::GetChangeTypeForName(jsonValue.GetString("ChangeType"));
m_changeTypeHasBeenSet = true;
}
return *this;
}
JsonValue Parameter::Jsonize() const
{
JsonValue payload;
if(m_parameterNameHasBeenSet)
{
payload.WithString("ParameterName", m_parameterName);
}
if(m_parameterTypeHasBeenSet)
{
payload.WithString("ParameterType", ParameterTypeMapper::GetNameForParameterType(m_parameterType));
}
if(m_parameterValueHasBeenSet)
{
payload.WithString("ParameterValue", m_parameterValue);
}
if(m_nodeTypeSpecificValuesHasBeenSet)
{
Array<JsonValue> nodeTypeSpecificValuesJsonList(m_nodeTypeSpecificValues.size());
for(unsigned nodeTypeSpecificValuesIndex = 0; nodeTypeSpecificValuesIndex < nodeTypeSpecificValuesJsonList.GetLength(); ++nodeTypeSpecificValuesIndex)
{
nodeTypeSpecificValuesJsonList[nodeTypeSpecificValuesIndex].AsObject(m_nodeTypeSpecificValues[nodeTypeSpecificValuesIndex].Jsonize());
}
payload.WithArray("NodeTypeSpecificValues", std::move(nodeTypeSpecificValuesJsonList));
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_sourceHasBeenSet)
{
payload.WithString("Source", m_source);
}
if(m_dataTypeHasBeenSet)
{
payload.WithString("DataType", m_dataType);
}
if(m_allowedValuesHasBeenSet)
{
payload.WithString("AllowedValues", m_allowedValues);
}
if(m_isModifiableHasBeenSet)
{
payload.WithString("IsModifiable", IsModifiableMapper::GetNameForIsModifiable(m_isModifiable));
}
if(m_changeTypeHasBeenSet)
{
payload.WithString("ChangeType", ChangeTypeMapper::GetNameForChangeType(m_changeType));
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ParameterGroup.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
ParameterGroup::ParameterGroup() :
m_parameterGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
ParameterGroup::ParameterGroup(JsonView jsonValue) :
m_parameterGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
*this = jsonValue;
}
ParameterGroup& ParameterGroup::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ParameterGroupName"))
{
m_parameterGroupName = jsonValue.GetString("ParameterGroupName");
m_parameterGroupNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
return *this;
}
JsonValue ParameterGroup::Jsonize() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ParameterGroupStatus.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
ParameterGroupStatus::ParameterGroupStatus() :
m_parameterGroupNameHasBeenSet(false),
m_parameterApplyStatusHasBeenSet(false),
m_nodeIdsToRebootHasBeenSet(false)
{
}
ParameterGroupStatus::ParameterGroupStatus(JsonView jsonValue) :
m_parameterGroupNameHasBeenSet(false),
m_parameterApplyStatusHasBeenSet(false),
m_nodeIdsToRebootHasBeenSet(false)
{
*this = jsonValue;
}
ParameterGroupStatus& ParameterGroupStatus::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ParameterGroupName"))
{
m_parameterGroupName = jsonValue.GetString("ParameterGroupName");
m_parameterGroupNameHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterApplyStatus"))
{
m_parameterApplyStatus = jsonValue.GetString("ParameterApplyStatus");
m_parameterApplyStatusHasBeenSet = true;
}
if(jsonValue.ValueExists("NodeIdsToReboot"))
{
Array<JsonView> nodeIdsToRebootJsonList = jsonValue.GetArray("NodeIdsToReboot");
for(unsigned nodeIdsToRebootIndex = 0; nodeIdsToRebootIndex < nodeIdsToRebootJsonList.GetLength(); ++nodeIdsToRebootIndex)
{
m_nodeIdsToReboot.push_back(nodeIdsToRebootJsonList[nodeIdsToRebootIndex].AsString());
}
m_nodeIdsToRebootHasBeenSet = true;
}
return *this;
}
JsonValue ParameterGroupStatus::Jsonize() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_parameterApplyStatusHasBeenSet)
{
payload.WithString("ParameterApplyStatus", m_parameterApplyStatus);
}
if(m_nodeIdsToRebootHasBeenSet)
{
Array<JsonValue> nodeIdsToRebootJsonList(m_nodeIdsToReboot.size());
for(unsigned nodeIdsToRebootIndex = 0; nodeIdsToRebootIndex < nodeIdsToRebootJsonList.GetLength(); ++nodeIdsToRebootIndex)
{
nodeIdsToRebootJsonList[nodeIdsToRebootIndex].AsString(m_nodeIdsToReboot[nodeIdsToRebootIndex]);
}
payload.WithArray("NodeIdsToReboot", std::move(nodeIdsToRebootJsonList));
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ParameterNameValue.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
ParameterNameValue::ParameterNameValue() :
m_parameterNameHasBeenSet(false),
m_parameterValueHasBeenSet(false)
{
}
ParameterNameValue::ParameterNameValue(JsonView jsonValue) :
m_parameterNameHasBeenSet(false),
m_parameterValueHasBeenSet(false)
{
*this = jsonValue;
}
ParameterNameValue& ParameterNameValue::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ParameterName"))
{
m_parameterName = jsonValue.GetString("ParameterName");
m_parameterNameHasBeenSet = true;
}
if(jsonValue.ValueExists("ParameterValue"))
{
m_parameterValue = jsonValue.GetString("ParameterValue");
m_parameterValueHasBeenSet = true;
}
return *this;
}
JsonValue ParameterNameValue::Jsonize() const
{
JsonValue payload;
if(m_parameterNameHasBeenSet)
{
payload.WithString("ParameterName", m_parameterName);
}
if(m_parameterValueHasBeenSet)
{
payload.WithString("ParameterValue", m_parameterValue);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/ParameterType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
namespace ParameterTypeMapper
{
static const int DEFAULT_HASH = HashingUtils::HashString("DEFAULT");
static const int NODE_TYPE_SPECIFIC_HASH = HashingUtils::HashString("NODE_TYPE_SPECIFIC");
ParameterType GetParameterTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == DEFAULT_HASH)
{
return ParameterType::DEFAULT;
}
else if (hashCode == NODE_TYPE_SPECIFIC_HASH)
{
return ParameterType::NODE_TYPE_SPECIFIC;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ParameterType>(hashCode);
}
return ParameterType::NOT_SET;
}
Aws::String GetNameForParameterType(ParameterType enumValue)
{
switch(enumValue)
{
case ParameterType::DEFAULT:
return "DEFAULT";
case ParameterType::NODE_TYPE_SPECIFIC:
return "NODE_TYPE_SPECIFIC";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ParameterTypeMapper
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/RebootNodeRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
RebootNodeRequest::RebootNodeRequest() :
m_clusterNameHasBeenSet(false),
m_nodeIdHasBeenSet(false)
{
}
Aws::String RebootNodeRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_nodeIdHasBeenSet)
{
payload.WithString("NodeId", m_nodeId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection RebootNodeRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.RebootNode"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/RebootNodeResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
RebootNodeResult::RebootNodeResult()
{
}
RebootNodeResult::RebootNodeResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
RebootNodeResult& RebootNodeResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,60 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SSEDescription.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
SSEDescription::SSEDescription() :
m_status(SSEStatus::NOT_SET),
m_statusHasBeenSet(false)
{
}
SSEDescription::SSEDescription(JsonView jsonValue) :
m_status(SSEStatus::NOT_SET),
m_statusHasBeenSet(false)
{
*this = jsonValue;
}
SSEDescription& SSEDescription::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Status"))
{
m_status = SSEStatusMapper::GetSSEStatusForName(jsonValue.GetString("Status"));
m_statusHasBeenSet = true;
}
return *this;
}
JsonValue SSEDescription::Jsonize() const
{
JsonValue payload;
if(m_statusHasBeenSet)
{
payload.WithString("Status", SSEStatusMapper::GetNameForSSEStatus(m_status));
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SSESpecification.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
SSESpecification::SSESpecification() :
m_enabled(false),
m_enabledHasBeenSet(false)
{
}
SSESpecification::SSESpecification(JsonView jsonValue) :
m_enabled(false),
m_enabledHasBeenSet(false)
{
*this = jsonValue;
}
SSESpecification& SSESpecification::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Enabled"))
{
m_enabled = jsonValue.GetBool("Enabled");
m_enabledHasBeenSet = true;
}
return *this;
}
JsonValue SSESpecification::Jsonize() const
{
JsonValue payload;
if(m_enabledHasBeenSet)
{
payload.WithBool("Enabled", m_enabled);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SSEStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
namespace SSEStatusMapper
{
static const int ENABLING_HASH = HashingUtils::HashString("ENABLING");
static const int ENABLED_HASH = HashingUtils::HashString("ENABLED");
static const int DISABLING_HASH = HashingUtils::HashString("DISABLING");
static const int DISABLED_HASH = HashingUtils::HashString("DISABLED");
SSEStatus GetSSEStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ENABLING_HASH)
{
return SSEStatus::ENABLING;
}
else if (hashCode == ENABLED_HASH)
{
return SSEStatus::ENABLED;
}
else if (hashCode == DISABLING_HASH)
{
return SSEStatus::DISABLING;
}
else if (hashCode == DISABLED_HASH)
{
return SSEStatus::DISABLED;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SSEStatus>(hashCode);
}
return SSEStatus::NOT_SET;
}
Aws::String GetNameForSSEStatus(SSEStatus enumValue)
{
switch(enumValue)
{
case SSEStatus::ENABLING:
return "ENABLING";
case SSEStatus::ENABLED:
return "ENABLED";
case SSEStatus::DISABLING:
return "DISABLING";
case SSEStatus::DISABLED:
return "DISABLED";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace SSEStatusMapper
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SecurityGroupMembership.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
SecurityGroupMembership::SecurityGroupMembership() :
m_securityGroupIdentifierHasBeenSet(false),
m_statusHasBeenSet(false)
{
}
SecurityGroupMembership::SecurityGroupMembership(JsonView jsonValue) :
m_securityGroupIdentifierHasBeenSet(false),
m_statusHasBeenSet(false)
{
*this = jsonValue;
}
SecurityGroupMembership& SecurityGroupMembership::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SecurityGroupIdentifier"))
{
m_securityGroupIdentifier = jsonValue.GetString("SecurityGroupIdentifier");
m_securityGroupIdentifierHasBeenSet = true;
}
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
return *this;
}
JsonValue SecurityGroupMembership::Jsonize() const
{
JsonValue payload;
if(m_securityGroupIdentifierHasBeenSet)
{
payload.WithString("SecurityGroupIdentifier", m_securityGroupIdentifier);
}
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SourceType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
namespace SourceTypeMapper
{
static const int CLUSTER_HASH = HashingUtils::HashString("CLUSTER");
static const int PARAMETER_GROUP_HASH = HashingUtils::HashString("PARAMETER_GROUP");
static const int SUBNET_GROUP_HASH = HashingUtils::HashString("SUBNET_GROUP");
SourceType GetSourceTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CLUSTER_HASH)
{
return SourceType::CLUSTER;
}
else if (hashCode == PARAMETER_GROUP_HASH)
{
return SourceType::PARAMETER_GROUP;
}
else if (hashCode == SUBNET_GROUP_HASH)
{
return SourceType::SUBNET_GROUP;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SourceType>(hashCode);
}
return SourceType::NOT_SET;
}
Aws::String GetNameForSourceType(SourceType enumValue)
{
switch(enumValue)
{
case SourceType::CLUSTER:
return "CLUSTER";
case SourceType::PARAMETER_GROUP:
return "PARAMETER_GROUP";
case SourceType::SUBNET_GROUP:
return "SUBNET_GROUP";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace SourceTypeMapper
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Subnet.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Subnet::Subnet() :
m_subnetIdentifierHasBeenSet(false),
m_subnetAvailabilityZoneHasBeenSet(false)
{
}
Subnet::Subnet(JsonView jsonValue) :
m_subnetIdentifierHasBeenSet(false),
m_subnetAvailabilityZoneHasBeenSet(false)
{
*this = jsonValue;
}
Subnet& Subnet::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SubnetIdentifier"))
{
m_subnetIdentifier = jsonValue.GetString("SubnetIdentifier");
m_subnetIdentifierHasBeenSet = true;
}
if(jsonValue.ValueExists("SubnetAvailabilityZone"))
{
m_subnetAvailabilityZone = jsonValue.GetString("SubnetAvailabilityZone");
m_subnetAvailabilityZoneHasBeenSet = true;
}
return *this;
}
JsonValue Subnet::Jsonize() const
{
JsonValue payload;
if(m_subnetIdentifierHasBeenSet)
{
payload.WithString("SubnetIdentifier", m_subnetIdentifier);
}
if(m_subnetAvailabilityZoneHasBeenSet)
{
payload.WithString("SubnetAvailabilityZone", m_subnetAvailabilityZone);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/SubnetGroup.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
SubnetGroup::SubnetGroup() :
m_subnetGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_vpcIdHasBeenSet(false),
m_subnetsHasBeenSet(false)
{
}
SubnetGroup::SubnetGroup(JsonView jsonValue) :
m_subnetGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_vpcIdHasBeenSet(false),
m_subnetsHasBeenSet(false)
{
*this = jsonValue;
}
SubnetGroup& SubnetGroup::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SubnetGroupName"))
{
m_subnetGroupName = jsonValue.GetString("SubnetGroupName");
m_subnetGroupNameHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("VpcId"))
{
m_vpcId = jsonValue.GetString("VpcId");
m_vpcIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Subnets"))
{
Array<JsonView> subnetsJsonList = jsonValue.GetArray("Subnets");
for(unsigned subnetsIndex = 0; subnetsIndex < subnetsJsonList.GetLength(); ++subnetsIndex)
{
m_subnets.push_back(subnetsJsonList[subnetsIndex].AsObject());
}
m_subnetsHasBeenSet = true;
}
return *this;
}
JsonValue SubnetGroup::Jsonize() const
{
JsonValue payload;
if(m_subnetGroupNameHasBeenSet)
{
payload.WithString("SubnetGroupName", m_subnetGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_vpcIdHasBeenSet)
{
payload.WithString("VpcId", m_vpcId);
}
if(m_subnetsHasBeenSet)
{
Array<JsonValue> subnetsJsonList(m_subnets.size());
for(unsigned subnetsIndex = 0; subnetsIndex < subnetsJsonList.GetLength(); ++subnetsIndex)
{
subnetsJsonList[subnetsIndex].AsObject(m_subnets[subnetsIndex].Jsonize());
}
payload.WithArray("Subnets", std::move(subnetsJsonList));
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/Tag.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DAX
{
namespace Model
{
Tag::Tag() :
m_keyHasBeenSet(false),
m_valueHasBeenSet(false)
{
}
Tag::Tag(JsonView jsonValue) :
m_keyHasBeenSet(false),
m_valueHasBeenSet(false)
{
*this = jsonValue;
}
Tag& Tag::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
if(jsonValue.ValueExists("Value"))
{
m_value = jsonValue.GetString("Value");
m_valueHasBeenSet = true;
}
return *this;
}
JsonValue Tag::Jsonize() const
{
JsonValue payload;
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
if(m_valueHasBeenSet)
{
payload.WithString("Value", m_value);
}
return payload;
}
} // namespace Model
} // namespace DAX
} // namespace Aws

View File

@@ -0,0 +1,55 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/TagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
TagResourceRequest::TagResourceRequest() :
m_resourceNameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String TagResourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceNameHasBeenSet)
{
payload.WithString("ResourceName", m_resourceName);
}
if(m_tagsHasBeenSet)
{
Array<JsonValue> tagsJsonList(m_tags.size());
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
}
payload.WithArray("Tags", std::move(tagsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection TagResourceRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.TagResource"));
return headers;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/TagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
TagResourceResult::TagResourceResult()
{
}
TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Tags"))
{
Array<JsonView> tagsJsonList = jsonValue.GetArray("Tags");
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
m_tags.push_back(tagsJsonList[tagsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,55 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UntagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UntagResourceRequest::UntagResourceRequest() :
m_resourceNameHasBeenSet(false),
m_tagKeysHasBeenSet(false)
{
}
Aws::String UntagResourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_resourceNameHasBeenSet)
{
payload.WithString("ResourceName", m_resourceName);
}
if(m_tagKeysHasBeenSet)
{
Array<JsonValue> tagKeysJsonList(m_tagKeys.size());
for(unsigned tagKeysIndex = 0; tagKeysIndex < tagKeysJsonList.GetLength(); ++tagKeysIndex)
{
tagKeysJsonList[tagKeysIndex].AsString(m_tagKeys[tagKeysIndex]);
}
payload.WithArray("TagKeys", std::move(tagKeysJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UntagResourceRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.UntagResource"));
return headers;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UntagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UntagResourceResult::UntagResourceResult()
{
}
UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Tags"))
{
Array<JsonView> tagsJsonList = jsonValue.GetArray("Tags");
for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
{
m_tags.push_back(tagsJsonList[tagsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateClusterRequest::UpdateClusterRequest() :
m_clusterNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_preferredMaintenanceWindowHasBeenSet(false),
m_notificationTopicArnHasBeenSet(false),
m_notificationTopicStatusHasBeenSet(false),
m_parameterGroupNameHasBeenSet(false),
m_securityGroupIdsHasBeenSet(false)
{
}
Aws::String UpdateClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterNameHasBeenSet)
{
payload.WithString("ClusterName", m_clusterName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_preferredMaintenanceWindowHasBeenSet)
{
payload.WithString("PreferredMaintenanceWindow", m_preferredMaintenanceWindow);
}
if(m_notificationTopicArnHasBeenSet)
{
payload.WithString("NotificationTopicArn", m_notificationTopicArn);
}
if(m_notificationTopicStatusHasBeenSet)
{
payload.WithString("NotificationTopicStatus", m_notificationTopicStatus);
}
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_securityGroupIdsHasBeenSet)
{
Array<JsonValue> securityGroupIdsJsonList(m_securityGroupIds.size());
for(unsigned securityGroupIdsIndex = 0; securityGroupIdsIndex < securityGroupIdsJsonList.GetLength(); ++securityGroupIdsIndex)
{
securityGroupIdsJsonList[securityGroupIdsIndex].AsString(m_securityGroupIds[securityGroupIdsIndex]);
}
payload.WithArray("SecurityGroupIds", std::move(securityGroupIdsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.UpdateCluster"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateClusterResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateClusterResult::UpdateClusterResult()
{
}
UpdateClusterResult::UpdateClusterResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateClusterResult& UpdateClusterResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Cluster"))
{
m_cluster = jsonValue.GetObject("Cluster");
}
return *this;
}

View File

@@ -0,0 +1,55 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateParameterGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateParameterGroupRequest::UpdateParameterGroupRequest() :
m_parameterGroupNameHasBeenSet(false),
m_parameterNameValuesHasBeenSet(false)
{
}
Aws::String UpdateParameterGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_parameterGroupNameHasBeenSet)
{
payload.WithString("ParameterGroupName", m_parameterGroupName);
}
if(m_parameterNameValuesHasBeenSet)
{
Array<JsonValue> parameterNameValuesJsonList(m_parameterNameValues.size());
for(unsigned parameterNameValuesIndex = 0; parameterNameValuesIndex < parameterNameValuesJsonList.GetLength(); ++parameterNameValuesIndex)
{
parameterNameValuesJsonList[parameterNameValuesIndex].AsObject(m_parameterNameValues[parameterNameValuesIndex].Jsonize());
}
payload.WithArray("ParameterNameValues", std::move(parameterNameValuesJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateParameterGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.UpdateParameterGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateParameterGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateParameterGroupResult::UpdateParameterGroupResult()
{
}
UpdateParameterGroupResult::UpdateParameterGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateParameterGroupResult& UpdateParameterGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ParameterGroup"))
{
m_parameterGroup = jsonValue.GetObject("ParameterGroup");
}
return *this;
}

View File

@@ -0,0 +1,62 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateSubnetGroupRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateSubnetGroupRequest::UpdateSubnetGroupRequest() :
m_subnetGroupNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_subnetIdsHasBeenSet(false)
{
}
Aws::String UpdateSubnetGroupRequest::SerializePayload() const
{
JsonValue payload;
if(m_subnetGroupNameHasBeenSet)
{
payload.WithString("SubnetGroupName", m_subnetGroupName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_subnetIdsHasBeenSet)
{
Array<JsonValue> subnetIdsJsonList(m_subnetIds.size());
for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex)
{
subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]);
}
payload.WithArray("SubnetIds", std::move(subnetIdsJsonList));
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateSubnetGroupRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.UpdateSubnetGroup"));
return headers;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dax/model/UpdateSubnetGroupResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DAX::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateSubnetGroupResult::UpdateSubnetGroupResult()
{
}
UpdateSubnetGroupResult::UpdateSubnetGroupResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateSubnetGroupResult& UpdateSubnetGroupResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("SubnetGroup"))
{
m_subnetGroup = jsonValue.GetObject("SubnetGroup");
}
return *this;
}