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,256 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/Address.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
Address::Address() :
m_addressIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_companyHasBeenSet(false),
m_street1HasBeenSet(false),
m_street2HasBeenSet(false),
m_street3HasBeenSet(false),
m_cityHasBeenSet(false),
m_stateOrProvinceHasBeenSet(false),
m_prefectureOrDistrictHasBeenSet(false),
m_landmarkHasBeenSet(false),
m_countryHasBeenSet(false),
m_postalCodeHasBeenSet(false),
m_phoneNumberHasBeenSet(false),
m_isRestricted(false),
m_isRestrictedHasBeenSet(false)
{
}
Address::Address(JsonView jsonValue) :
m_addressIdHasBeenSet(false),
m_nameHasBeenSet(false),
m_companyHasBeenSet(false),
m_street1HasBeenSet(false),
m_street2HasBeenSet(false),
m_street3HasBeenSet(false),
m_cityHasBeenSet(false),
m_stateOrProvinceHasBeenSet(false),
m_prefectureOrDistrictHasBeenSet(false),
m_landmarkHasBeenSet(false),
m_countryHasBeenSet(false),
m_postalCodeHasBeenSet(false),
m_phoneNumberHasBeenSet(false),
m_isRestricted(false),
m_isRestrictedHasBeenSet(false)
{
*this = jsonValue;
}
Address& Address::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AddressId"))
{
m_addressId = jsonValue.GetString("AddressId");
m_addressIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Company"))
{
m_company = jsonValue.GetString("Company");
m_companyHasBeenSet = true;
}
if(jsonValue.ValueExists("Street1"))
{
m_street1 = jsonValue.GetString("Street1");
m_street1HasBeenSet = true;
}
if(jsonValue.ValueExists("Street2"))
{
m_street2 = jsonValue.GetString("Street2");
m_street2HasBeenSet = true;
}
if(jsonValue.ValueExists("Street3"))
{
m_street3 = jsonValue.GetString("Street3");
m_street3HasBeenSet = true;
}
if(jsonValue.ValueExists("City"))
{
m_city = jsonValue.GetString("City");
m_cityHasBeenSet = true;
}
if(jsonValue.ValueExists("StateOrProvince"))
{
m_stateOrProvince = jsonValue.GetString("StateOrProvince");
m_stateOrProvinceHasBeenSet = true;
}
if(jsonValue.ValueExists("PrefectureOrDistrict"))
{
m_prefectureOrDistrict = jsonValue.GetString("PrefectureOrDistrict");
m_prefectureOrDistrictHasBeenSet = true;
}
if(jsonValue.ValueExists("Landmark"))
{
m_landmark = jsonValue.GetString("Landmark");
m_landmarkHasBeenSet = true;
}
if(jsonValue.ValueExists("Country"))
{
m_country = jsonValue.GetString("Country");
m_countryHasBeenSet = true;
}
if(jsonValue.ValueExists("PostalCode"))
{
m_postalCode = jsonValue.GetString("PostalCode");
m_postalCodeHasBeenSet = true;
}
if(jsonValue.ValueExists("PhoneNumber"))
{
m_phoneNumber = jsonValue.GetString("PhoneNumber");
m_phoneNumberHasBeenSet = true;
}
if(jsonValue.ValueExists("IsRestricted"))
{
m_isRestricted = jsonValue.GetBool("IsRestricted");
m_isRestrictedHasBeenSet = true;
}
return *this;
}
JsonValue Address::Jsonize() const
{
JsonValue payload;
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_companyHasBeenSet)
{
payload.WithString("Company", m_company);
}
if(m_street1HasBeenSet)
{
payload.WithString("Street1", m_street1);
}
if(m_street2HasBeenSet)
{
payload.WithString("Street2", m_street2);
}
if(m_street3HasBeenSet)
{
payload.WithString("Street3", m_street3);
}
if(m_cityHasBeenSet)
{
payload.WithString("City", m_city);
}
if(m_stateOrProvinceHasBeenSet)
{
payload.WithString("StateOrProvince", m_stateOrProvince);
}
if(m_prefectureOrDistrictHasBeenSet)
{
payload.WithString("PrefectureOrDistrict", m_prefectureOrDistrict);
}
if(m_landmarkHasBeenSet)
{
payload.WithString("Landmark", m_landmark);
}
if(m_countryHasBeenSet)
{
payload.WithString("Country", m_country);
}
if(m_postalCodeHasBeenSet)
{
payload.WithString("PostalCode", m_postalCode);
}
if(m_phoneNumberHasBeenSet)
{
payload.WithString("PhoneNumber", m_phoneNumber);
}
if(m_isRestrictedHasBeenSet)
{
payload.WithBool("IsRestricted", m_isRestricted);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

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

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/CancelClusterResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CancelClusterResult::CancelClusterResult()
{
}
CancelClusterResult::CancelClusterResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CancelClusterResult& CancelClusterResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
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/snowball/model/CancelJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CancelJobRequest::CancelJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String CancelJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CancelJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.CancelJob"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/CancelJobResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CancelJobResult::CancelJobResult()
{
}
CancelJobResult::CancelJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CancelJobResult& CancelJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/ClusterListEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
ClusterListEntry::ClusterListEntry() :
m_clusterIdHasBeenSet(false),
m_clusterState(ClusterState::NOT_SET),
m_clusterStateHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
ClusterListEntry::ClusterListEntry(JsonView jsonValue) :
m_clusterIdHasBeenSet(false),
m_clusterState(ClusterState::NOT_SET),
m_clusterStateHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
*this = jsonValue;
}
ClusterListEntry& ClusterListEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ClusterId"))
{
m_clusterId = jsonValue.GetString("ClusterId");
m_clusterIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ClusterState"))
{
m_clusterState = ClusterStateMapper::GetClusterStateForName(jsonValue.GetString("ClusterState"));
m_clusterStateHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetDouble("CreationDate");
m_creationDateHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
return *this;
}
JsonValue ClusterListEntry::Jsonize() const
{
JsonValue payload;
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_clusterStateHasBeenSet)
{
payload.WithString("ClusterState", ClusterStateMapper::GetNameForClusterState(m_clusterState));
}
if(m_creationDateHasBeenSet)
{
payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,257 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/ClusterMetadata.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
ClusterMetadata::ClusterMetadata() :
m_clusterIdHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_clusterState(ClusterState::NOT_SET),
m_clusterStateHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_notificationHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false)
{
}
ClusterMetadata::ClusterMetadata(JsonView jsonValue) :
m_clusterIdHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_clusterState(ClusterState::NOT_SET),
m_clusterStateHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_notificationHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false)
{
*this = jsonValue;
}
ClusterMetadata& ClusterMetadata::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ClusterId"))
{
m_clusterId = jsonValue.GetString("ClusterId");
m_clusterIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("KmsKeyARN"))
{
m_kmsKeyARN = jsonValue.GetString("KmsKeyARN");
m_kmsKeyARNHasBeenSet = true;
}
if(jsonValue.ValueExists("RoleARN"))
{
m_roleARN = jsonValue.GetString("RoleARN");
m_roleARNHasBeenSet = true;
}
if(jsonValue.ValueExists("ClusterState"))
{
m_clusterState = ClusterStateMapper::GetClusterStateForName(jsonValue.GetString("ClusterState"));
m_clusterStateHasBeenSet = true;
}
if(jsonValue.ValueExists("JobType"))
{
m_jobType = JobTypeMapper::GetJobTypeForName(jsonValue.GetString("JobType"));
m_jobTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("SnowballType"))
{
m_snowballType = SnowballTypeMapper::GetSnowballTypeForName(jsonValue.GetString("SnowballType"));
m_snowballTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetDouble("CreationDate");
m_creationDateHasBeenSet = true;
}
if(jsonValue.ValueExists("Resources"))
{
m_resources = jsonValue.GetObject("Resources");
m_resourcesHasBeenSet = true;
}
if(jsonValue.ValueExists("AddressId"))
{
m_addressId = jsonValue.GetString("AddressId");
m_addressIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ShippingOption"))
{
m_shippingOption = ShippingOptionMapper::GetShippingOptionForName(jsonValue.GetString("ShippingOption"));
m_shippingOptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Notification"))
{
m_notification = jsonValue.GetObject("Notification");
m_notificationHasBeenSet = true;
}
if(jsonValue.ValueExists("ForwardingAddressId"))
{
m_forwardingAddressId = jsonValue.GetString("ForwardingAddressId");
m_forwardingAddressIdHasBeenSet = true;
}
if(jsonValue.ValueExists("TaxDocuments"))
{
m_taxDocuments = jsonValue.GetObject("TaxDocuments");
m_taxDocumentsHasBeenSet = true;
}
return *this;
}
JsonValue ClusterMetadata::Jsonize() const
{
JsonValue payload;
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_kmsKeyARNHasBeenSet)
{
payload.WithString("KmsKeyARN", m_kmsKeyARN);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_clusterStateHasBeenSet)
{
payload.WithString("ClusterState", ClusterStateMapper::GetNameForClusterState(m_clusterState));
}
if(m_jobTypeHasBeenSet)
{
payload.WithString("JobType", JobTypeMapper::GetNameForJobType(m_jobType));
}
if(m_snowballTypeHasBeenSet)
{
payload.WithString("SnowballType", SnowballTypeMapper::GetNameForSnowballType(m_snowballType));
}
if(m_creationDateHasBeenSet)
{
payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
if(m_taxDocumentsHasBeenSet)
{
payload.WithObject("TaxDocuments", m_taxDocuments.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/ClusterState.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 Snowball
{
namespace Model
{
namespace ClusterStateMapper
{
static const int AwaitingQuorum_HASH = HashingUtils::HashString("AwaitingQuorum");
static const int Pending_HASH = HashingUtils::HashString("Pending");
static const int InUse_HASH = HashingUtils::HashString("InUse");
static const int Complete_HASH = HashingUtils::HashString("Complete");
static const int Cancelled_HASH = HashingUtils::HashString("Cancelled");
ClusterState GetClusterStateForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == AwaitingQuorum_HASH)
{
return ClusterState::AwaitingQuorum;
}
else if (hashCode == Pending_HASH)
{
return ClusterState::Pending;
}
else if (hashCode == InUse_HASH)
{
return ClusterState::InUse;
}
else if (hashCode == Complete_HASH)
{
return ClusterState::Complete;
}
else if (hashCode == Cancelled_HASH)
{
return ClusterState::Cancelled;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ClusterState>(hashCode);
}
return ClusterState::NOT_SET;
}
Aws::String GetNameForClusterState(ClusterState enumValue)
{
switch(enumValue)
{
case ClusterState::AwaitingQuorum:
return "AwaitingQuorum";
case ClusterState::Pending:
return "Pending";
case ClusterState::InUse:
return "InUse";
case ClusterState::Complete:
return "Complete";
case ClusterState::Cancelled:
return "Cancelled";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ClusterStateMapper
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/CompatibleImage.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
CompatibleImage::CompatibleImage() :
m_amiIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
}
CompatibleImage::CompatibleImage(JsonView jsonValue) :
m_amiIdHasBeenSet(false),
m_nameHasBeenSet(false)
{
*this = jsonValue;
}
CompatibleImage& CompatibleImage::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AmiId"))
{
m_amiId = jsonValue.GetString("AmiId");
m_amiIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
return *this;
}
JsonValue CompatibleImage::Jsonize() const
{
JsonValue payload;
if(m_amiIdHasBeenSet)
{
payload.WithString("AmiId", m_amiId);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/CreateAddressRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateAddressRequest::CreateAddressRequest() :
m_addressHasBeenSet(false)
{
}
Aws::String CreateAddressRequest::SerializePayload() const
{
JsonValue payload;
if(m_addressHasBeenSet)
{
payload.WithObject("Address", m_address.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateAddressRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.CreateAddress"));
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/snowball/model/CreateAddressResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateAddressResult::CreateAddressResult()
{
}
CreateAddressResult::CreateAddressResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateAddressResult& CreateAddressResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("AddressId"))
{
m_addressId = jsonValue.GetString("AddressId");
}
return *this;
}

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/CreateClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateClusterRequest::CreateClusterRequest() :
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_notificationHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false)
{
}
Aws::String CreateClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobTypeHasBeenSet)
{
payload.WithString("JobType", JobTypeMapper::GetNameForJobType(m_jobType));
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_kmsKeyARNHasBeenSet)
{
payload.WithString("KmsKeyARN", m_kmsKeyARN);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_snowballTypeHasBeenSet)
{
payload.WithString("SnowballType", SnowballTypeMapper::GetNameForSnowballType(m_snowballType));
}
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
if(m_taxDocumentsHasBeenSet)
{
payload.WithObject("TaxDocuments", m_taxDocuments.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.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/snowball/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::Snowball::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("ClusterId"))
{
m_clusterId = jsonValue.GetString("ClusterId");
}
return *this;
}

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/CreateJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateJobRequest::CreateJobRequest() :
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_snowballCapacityPreference(SnowballCapacity::NOT_SET),
m_snowballCapacityPreferenceHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_notificationHasBeenSet(false),
m_clusterIdHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false),
m_deviceConfigurationHasBeenSet(false)
{
}
Aws::String CreateJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobTypeHasBeenSet)
{
payload.WithString("JobType", JobTypeMapper::GetNameForJobType(m_jobType));
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_kmsKeyARNHasBeenSet)
{
payload.WithString("KmsKeyARN", m_kmsKeyARN);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_snowballCapacityPreferenceHasBeenSet)
{
payload.WithString("SnowballCapacityPreference", SnowballCapacityMapper::GetNameForSnowballCapacity(m_snowballCapacityPreference));
}
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_snowballTypeHasBeenSet)
{
payload.WithString("SnowballType", SnowballTypeMapper::GetNameForSnowballType(m_snowballType));
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
if(m_taxDocumentsHasBeenSet)
{
payload.WithObject("TaxDocuments", m_taxDocuments.Jsonize());
}
if(m_deviceConfigurationHasBeenSet)
{
payload.WithObject("DeviceConfiguration", m_deviceConfiguration.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.CreateJob"));
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/snowball/model/CreateJobResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateJobResult::CreateJobResult()
{
}
CreateJobResult::CreateJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateJobResult& CreateJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("JobId"))
{
m_jobId = jsonValue.GetString("JobId");
}
return *this;
}

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/DataTransfer.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
DataTransfer::DataTransfer() :
m_bytesTransferred(0),
m_bytesTransferredHasBeenSet(false),
m_objectsTransferred(0),
m_objectsTransferredHasBeenSet(false),
m_totalBytes(0),
m_totalBytesHasBeenSet(false),
m_totalObjects(0),
m_totalObjectsHasBeenSet(false)
{
}
DataTransfer::DataTransfer(JsonView jsonValue) :
m_bytesTransferred(0),
m_bytesTransferredHasBeenSet(false),
m_objectsTransferred(0),
m_objectsTransferredHasBeenSet(false),
m_totalBytes(0),
m_totalBytesHasBeenSet(false),
m_totalObjects(0),
m_totalObjectsHasBeenSet(false)
{
*this = jsonValue;
}
DataTransfer& DataTransfer::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BytesTransferred"))
{
m_bytesTransferred = jsonValue.GetInt64("BytesTransferred");
m_bytesTransferredHasBeenSet = true;
}
if(jsonValue.ValueExists("ObjectsTransferred"))
{
m_objectsTransferred = jsonValue.GetInt64("ObjectsTransferred");
m_objectsTransferredHasBeenSet = true;
}
if(jsonValue.ValueExists("TotalBytes"))
{
m_totalBytes = jsonValue.GetInt64("TotalBytes");
m_totalBytesHasBeenSet = true;
}
if(jsonValue.ValueExists("TotalObjects"))
{
m_totalObjects = jsonValue.GetInt64("TotalObjects");
m_totalObjectsHasBeenSet = true;
}
return *this;
}
JsonValue DataTransfer::Jsonize() const
{
JsonValue payload;
if(m_bytesTransferredHasBeenSet)
{
payload.WithInt64("BytesTransferred", m_bytesTransferred);
}
if(m_objectsTransferredHasBeenSet)
{
payload.WithInt64("ObjectsTransferred", m_objectsTransferred);
}
if(m_totalBytesHasBeenSet)
{
payload.WithInt64("TotalBytes", m_totalBytes);
}
if(m_totalObjectsHasBeenSet)
{
payload.WithInt64("TotalObjects", m_totalObjects);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/DescribeAddressRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeAddressRequest::DescribeAddressRequest() :
m_addressIdHasBeenSet(false)
{
}
Aws::String DescribeAddressRequest::SerializePayload() const
{
JsonValue payload;
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeAddressRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.DescribeAddress"));
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/snowball/model/DescribeAddressResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeAddressResult::DescribeAddressResult()
{
}
DescribeAddressResult::DescribeAddressResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeAddressResult& DescribeAddressResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Address"))
{
m_address = jsonValue.GetObject("Address");
}
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/snowball/model/DescribeAddressesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeAddressesRequest::DescribeAddressesRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String DescribeAddressesRequest::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 DescribeAddressesRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.DescribeAddresses"));
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/snowball/model/DescribeAddressesResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeAddressesResult::DescribeAddressesResult()
{
}
DescribeAddressesResult::DescribeAddressesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeAddressesResult& DescribeAddressesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Addresses"))
{
Array<JsonView> addressesJsonList = jsonValue.GetArray("Addresses");
for(unsigned addressesIndex = 0; addressesIndex < addressesJsonList.GetLength(); ++addressesIndex)
{
m_addresses.push_back(addressesJsonList[addressesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
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/snowball/model/DescribeClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeClusterRequest::DescribeClusterRequest() :
m_clusterIdHasBeenSet(false)
{
}
Aws::String DescribeClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.DescribeCluster"));
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/snowball/model/DescribeClusterResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeClusterResult::DescribeClusterResult()
{
}
DescribeClusterResult::DescribeClusterResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeClusterResult& DescribeClusterResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ClusterMetadata"))
{
m_clusterMetadata = jsonValue.GetObject("ClusterMetadata");
}
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/snowball/model/DescribeJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeJobRequest::DescribeJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String DescribeJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection DescribeJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.DescribeJob"));
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/snowball/model/DescribeJobResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeJobResult::DescribeJobResult()
{
}
DescribeJobResult::DescribeJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeJobResult& DescribeJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("JobMetadata"))
{
m_jobMetadata = jsonValue.GetObject("JobMetadata");
}
if(jsonValue.ValueExists("SubJobMetadata"))
{
Array<JsonView> subJobMetadataJsonList = jsonValue.GetArray("SubJobMetadata");
for(unsigned subJobMetadataIndex = 0; subJobMetadataIndex < subJobMetadataJsonList.GetLength(); ++subJobMetadataIndex)
{
m_subJobMetadata.push_back(subJobMetadataJsonList[subJobMetadataIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/DeviceConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
DeviceConfiguration::DeviceConfiguration() :
m_snowconeDeviceConfigurationHasBeenSet(false)
{
}
DeviceConfiguration::DeviceConfiguration(JsonView jsonValue) :
m_snowconeDeviceConfigurationHasBeenSet(false)
{
*this = jsonValue;
}
DeviceConfiguration& DeviceConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SnowconeDeviceConfiguration"))
{
m_snowconeDeviceConfiguration = jsonValue.GetObject("SnowconeDeviceConfiguration");
m_snowconeDeviceConfigurationHasBeenSet = true;
}
return *this;
}
JsonValue DeviceConfiguration::Jsonize() const
{
JsonValue payload;
if(m_snowconeDeviceConfigurationHasBeenSet)
{
payload.WithObject("SnowconeDeviceConfiguration", m_snowconeDeviceConfiguration.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/Ec2AmiResource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
Ec2AmiResource::Ec2AmiResource() :
m_amiIdHasBeenSet(false),
m_snowballAmiIdHasBeenSet(false)
{
}
Ec2AmiResource::Ec2AmiResource(JsonView jsonValue) :
m_amiIdHasBeenSet(false),
m_snowballAmiIdHasBeenSet(false)
{
*this = jsonValue;
}
Ec2AmiResource& Ec2AmiResource::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AmiId"))
{
m_amiId = jsonValue.GetString("AmiId");
m_amiIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SnowballAmiId"))
{
m_snowballAmiId = jsonValue.GetString("SnowballAmiId");
m_snowballAmiIdHasBeenSet = true;
}
return *this;
}
JsonValue Ec2AmiResource::Jsonize() const
{
JsonValue payload;
if(m_amiIdHasBeenSet)
{
payload.WithString("AmiId", m_amiId);
}
if(m_snowballAmiIdHasBeenSet)
{
payload.WithString("SnowballAmiId", m_snowballAmiId);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/EventTriggerDefinition.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
EventTriggerDefinition::EventTriggerDefinition() :
m_eventResourceARNHasBeenSet(false)
{
}
EventTriggerDefinition::EventTriggerDefinition(JsonView jsonValue) :
m_eventResourceARNHasBeenSet(false)
{
*this = jsonValue;
}
EventTriggerDefinition& EventTriggerDefinition::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("EventResourceARN"))
{
m_eventResourceARN = jsonValue.GetString("EventResourceARN");
m_eventResourceARNHasBeenSet = true;
}
return *this;
}
JsonValue EventTriggerDefinition::Jsonize() const
{
JsonValue payload;
if(m_eventResourceARNHasBeenSet)
{
payload.WithString("EventResourceARN", m_eventResourceARN);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/GetJobManifestRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetJobManifestRequest::GetJobManifestRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String GetJobManifestRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetJobManifestRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.GetJobManifest"));
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/snowball/model/GetJobManifestResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetJobManifestResult::GetJobManifestResult()
{
}
GetJobManifestResult::GetJobManifestResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetJobManifestResult& GetJobManifestResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ManifestURI"))
{
m_manifestURI = jsonValue.GetString("ManifestURI");
}
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/snowball/model/GetJobUnlockCodeRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetJobUnlockCodeRequest::GetJobUnlockCodeRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String GetJobUnlockCodeRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetJobUnlockCodeRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.GetJobUnlockCode"));
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/snowball/model/GetJobUnlockCodeResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetJobUnlockCodeResult::GetJobUnlockCodeResult()
{
}
GetJobUnlockCodeResult::GetJobUnlockCodeResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetJobUnlockCodeResult& GetJobUnlockCodeResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("UnlockCode"))
{
m_unlockCode = jsonValue.GetString("UnlockCode");
}
return *this;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/GetSnowballUsageRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetSnowballUsageRequest::GetSnowballUsageRequest()
{
}
Aws::String GetSnowballUsageRequest::SerializePayload() const
{
return "{}";
}
Aws::Http::HeaderValueCollection GetSnowballUsageRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.GetSnowballUsage"));
return headers;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/GetSnowballUsageResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetSnowballUsageResult::GetSnowballUsageResult() :
m_snowballLimit(0),
m_snowballsInUse(0)
{
}
GetSnowballUsageResult::GetSnowballUsageResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_snowballLimit(0),
m_snowballsInUse(0)
{
*this = result;
}
GetSnowballUsageResult& GetSnowballUsageResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("SnowballLimit"))
{
m_snowballLimit = jsonValue.GetInteger("SnowballLimit");
}
if(jsonValue.ValueExists("SnowballsInUse"))
{
m_snowballsInUse = jsonValue.GetInteger("SnowballsInUse");
}
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/snowball/model/GetSoftwareUpdatesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetSoftwareUpdatesRequest::GetSoftwareUpdatesRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String GetSoftwareUpdatesRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection GetSoftwareUpdatesRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.GetSoftwareUpdates"));
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/snowball/model/GetSoftwareUpdatesResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetSoftwareUpdatesResult::GetSoftwareUpdatesResult()
{
}
GetSoftwareUpdatesResult::GetSoftwareUpdatesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetSoftwareUpdatesResult& GetSoftwareUpdatesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("UpdatesURI"))
{
m_updatesURI = jsonValue.GetString("UpdatesURI");
}
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/INDTaxDocuments.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
INDTaxDocuments::INDTaxDocuments() :
m_gSTINHasBeenSet(false)
{
}
INDTaxDocuments::INDTaxDocuments(JsonView jsonValue) :
m_gSTINHasBeenSet(false)
{
*this = jsonValue;
}
INDTaxDocuments& INDTaxDocuments::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("GSTIN"))
{
m_gSTIN = jsonValue.GetString("GSTIN");
m_gSTINHasBeenSet = true;
}
return *this;
}
JsonValue INDTaxDocuments::Jsonize() const
{
JsonValue payload;
if(m_gSTINHasBeenSet)
{
payload.WithString("GSTIN", m_gSTIN);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/InvalidResourceException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
InvalidResourceException::InvalidResourceException() :
m_messageHasBeenSet(false),
m_resourceTypeHasBeenSet(false)
{
}
InvalidResourceException::InvalidResourceException(JsonView jsonValue) :
m_messageHasBeenSet(false),
m_resourceTypeHasBeenSet(false)
{
*this = jsonValue;
}
InvalidResourceException& InvalidResourceException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
if(jsonValue.ValueExists("ResourceType"))
{
m_resourceType = jsonValue.GetString("ResourceType");
m_resourceTypeHasBeenSet = true;
}
return *this;
}
JsonValue InvalidResourceException::Jsonize() const
{
JsonValue payload;
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
if(m_resourceTypeHasBeenSet)
{
payload.WithString("ResourceType", m_resourceType);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/JobListEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
JobListEntry::JobListEntry() :
m_jobIdHasBeenSet(false),
m_jobState(JobState::NOT_SET),
m_jobStateHasBeenSet(false),
m_isMaster(false),
m_isMasterHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
}
JobListEntry::JobListEntry(JsonView jsonValue) :
m_jobIdHasBeenSet(false),
m_jobState(JobState::NOT_SET),
m_jobStateHasBeenSet(false),
m_isMaster(false),
m_isMasterHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_descriptionHasBeenSet(false)
{
*this = jsonValue;
}
JobListEntry& JobListEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("JobId"))
{
m_jobId = jsonValue.GetString("JobId");
m_jobIdHasBeenSet = true;
}
if(jsonValue.ValueExists("JobState"))
{
m_jobState = JobStateMapper::GetJobStateForName(jsonValue.GetString("JobState"));
m_jobStateHasBeenSet = true;
}
if(jsonValue.ValueExists("IsMaster"))
{
m_isMaster = jsonValue.GetBool("IsMaster");
m_isMasterHasBeenSet = true;
}
if(jsonValue.ValueExists("JobType"))
{
m_jobType = JobTypeMapper::GetJobTypeForName(jsonValue.GetString("JobType"));
m_jobTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("SnowballType"))
{
m_snowballType = SnowballTypeMapper::GetSnowballTypeForName(jsonValue.GetString("SnowballType"));
m_snowballTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetDouble("CreationDate");
m_creationDateHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
return *this;
}
JsonValue JobListEntry::Jsonize() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
if(m_jobStateHasBeenSet)
{
payload.WithString("JobState", JobStateMapper::GetNameForJobState(m_jobState));
}
if(m_isMasterHasBeenSet)
{
payload.WithBool("IsMaster", m_isMaster);
}
if(m_jobTypeHasBeenSet)
{
payload.WithString("JobType", JobTypeMapper::GetNameForJobType(m_jobType));
}
if(m_snowballTypeHasBeenSet)
{
payload.WithString("SnowballType", SnowballTypeMapper::GetNameForSnowballType(m_snowballType));
}
if(m_creationDateHasBeenSet)
{
payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/JobLogs.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
JobLogs::JobLogs() :
m_jobCompletionReportURIHasBeenSet(false),
m_jobSuccessLogURIHasBeenSet(false),
m_jobFailureLogURIHasBeenSet(false)
{
}
JobLogs::JobLogs(JsonView jsonValue) :
m_jobCompletionReportURIHasBeenSet(false),
m_jobSuccessLogURIHasBeenSet(false),
m_jobFailureLogURIHasBeenSet(false)
{
*this = jsonValue;
}
JobLogs& JobLogs::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("JobCompletionReportURI"))
{
m_jobCompletionReportURI = jsonValue.GetString("JobCompletionReportURI");
m_jobCompletionReportURIHasBeenSet = true;
}
if(jsonValue.ValueExists("JobSuccessLogURI"))
{
m_jobSuccessLogURI = jsonValue.GetString("JobSuccessLogURI");
m_jobSuccessLogURIHasBeenSet = true;
}
if(jsonValue.ValueExists("JobFailureLogURI"))
{
m_jobFailureLogURI = jsonValue.GetString("JobFailureLogURI");
m_jobFailureLogURIHasBeenSet = true;
}
return *this;
}
JsonValue JobLogs::Jsonize() const
{
JsonValue payload;
if(m_jobCompletionReportURIHasBeenSet)
{
payload.WithString("JobCompletionReportURI", m_jobCompletionReportURI);
}
if(m_jobSuccessLogURIHasBeenSet)
{
payload.WithString("JobSuccessLogURI", m_jobSuccessLogURI);
}
if(m_jobFailureLogURIHasBeenSet)
{
payload.WithString("JobFailureLogURI", m_jobFailureLogURI);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,332 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/JobMetadata.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
JobMetadata::JobMetadata() :
m_jobIdHasBeenSet(false),
m_jobState(JobState::NOT_SET),
m_jobStateHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingDetailsHasBeenSet(false),
m_snowballCapacityPreference(SnowballCapacity::NOT_SET),
m_snowballCapacityPreferenceHasBeenSet(false),
m_notificationHasBeenSet(false),
m_dataTransferProgressHasBeenSet(false),
m_jobLogInfoHasBeenSet(false),
m_clusterIdHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false),
m_deviceConfigurationHasBeenSet(false)
{
}
JobMetadata::JobMetadata(JsonView jsonValue) :
m_jobIdHasBeenSet(false),
m_jobState(JobState::NOT_SET),
m_jobStateHasBeenSet(false),
m_jobType(JobType::NOT_SET),
m_jobTypeHasBeenSet(false),
m_snowballType(SnowballType::NOT_SET),
m_snowballTypeHasBeenSet(false),
m_creationDateHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_kmsKeyARNHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingDetailsHasBeenSet(false),
m_snowballCapacityPreference(SnowballCapacity::NOT_SET),
m_snowballCapacityPreferenceHasBeenSet(false),
m_notificationHasBeenSet(false),
m_dataTransferProgressHasBeenSet(false),
m_jobLogInfoHasBeenSet(false),
m_clusterIdHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false),
m_taxDocumentsHasBeenSet(false),
m_deviceConfigurationHasBeenSet(false)
{
*this = jsonValue;
}
JobMetadata& JobMetadata::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("JobId"))
{
m_jobId = jsonValue.GetString("JobId");
m_jobIdHasBeenSet = true;
}
if(jsonValue.ValueExists("JobState"))
{
m_jobState = JobStateMapper::GetJobStateForName(jsonValue.GetString("JobState"));
m_jobStateHasBeenSet = true;
}
if(jsonValue.ValueExists("JobType"))
{
m_jobType = JobTypeMapper::GetJobTypeForName(jsonValue.GetString("JobType"));
m_jobTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("SnowballType"))
{
m_snowballType = SnowballTypeMapper::GetSnowballTypeForName(jsonValue.GetString("SnowballType"));
m_snowballTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetDouble("CreationDate");
m_creationDateHasBeenSet = true;
}
if(jsonValue.ValueExists("Resources"))
{
m_resources = jsonValue.GetObject("Resources");
m_resourcesHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("KmsKeyARN"))
{
m_kmsKeyARN = jsonValue.GetString("KmsKeyARN");
m_kmsKeyARNHasBeenSet = true;
}
if(jsonValue.ValueExists("RoleARN"))
{
m_roleARN = jsonValue.GetString("RoleARN");
m_roleARNHasBeenSet = true;
}
if(jsonValue.ValueExists("AddressId"))
{
m_addressId = jsonValue.GetString("AddressId");
m_addressIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ShippingDetails"))
{
m_shippingDetails = jsonValue.GetObject("ShippingDetails");
m_shippingDetailsHasBeenSet = true;
}
if(jsonValue.ValueExists("SnowballCapacityPreference"))
{
m_snowballCapacityPreference = SnowballCapacityMapper::GetSnowballCapacityForName(jsonValue.GetString("SnowballCapacityPreference"));
m_snowballCapacityPreferenceHasBeenSet = true;
}
if(jsonValue.ValueExists("Notification"))
{
m_notification = jsonValue.GetObject("Notification");
m_notificationHasBeenSet = true;
}
if(jsonValue.ValueExists("DataTransferProgress"))
{
m_dataTransferProgress = jsonValue.GetObject("DataTransferProgress");
m_dataTransferProgressHasBeenSet = true;
}
if(jsonValue.ValueExists("JobLogInfo"))
{
m_jobLogInfo = jsonValue.GetObject("JobLogInfo");
m_jobLogInfoHasBeenSet = true;
}
if(jsonValue.ValueExists("ClusterId"))
{
m_clusterId = jsonValue.GetString("ClusterId");
m_clusterIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ForwardingAddressId"))
{
m_forwardingAddressId = jsonValue.GetString("ForwardingAddressId");
m_forwardingAddressIdHasBeenSet = true;
}
if(jsonValue.ValueExists("TaxDocuments"))
{
m_taxDocuments = jsonValue.GetObject("TaxDocuments");
m_taxDocumentsHasBeenSet = true;
}
if(jsonValue.ValueExists("DeviceConfiguration"))
{
m_deviceConfiguration = jsonValue.GetObject("DeviceConfiguration");
m_deviceConfigurationHasBeenSet = true;
}
return *this;
}
JsonValue JobMetadata::Jsonize() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
if(m_jobStateHasBeenSet)
{
payload.WithString("JobState", JobStateMapper::GetNameForJobState(m_jobState));
}
if(m_jobTypeHasBeenSet)
{
payload.WithString("JobType", JobTypeMapper::GetNameForJobType(m_jobType));
}
if(m_snowballTypeHasBeenSet)
{
payload.WithString("SnowballType", SnowballTypeMapper::GetNameForSnowballType(m_snowballType));
}
if(m_creationDateHasBeenSet)
{
payload.WithDouble("CreationDate", m_creationDate.SecondsWithMSPrecision());
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_kmsKeyARNHasBeenSet)
{
payload.WithString("KmsKeyARN", m_kmsKeyARN);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_shippingDetailsHasBeenSet)
{
payload.WithObject("ShippingDetails", m_shippingDetails.Jsonize());
}
if(m_snowballCapacityPreferenceHasBeenSet)
{
payload.WithString("SnowballCapacityPreference", SnowballCapacityMapper::GetNameForSnowballCapacity(m_snowballCapacityPreference));
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_dataTransferProgressHasBeenSet)
{
payload.WithObject("DataTransferProgress", m_dataTransferProgress.Jsonize());
}
if(m_jobLogInfoHasBeenSet)
{
payload.WithObject("JobLogInfo", m_jobLogInfo.Jsonize());
}
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
if(m_taxDocumentsHasBeenSet)
{
payload.WithObject("TaxDocuments", m_taxDocuments.Jsonize());
}
if(m_deviceConfigurationHasBeenSet)
{
payload.WithObject("DeviceConfiguration", m_deviceConfiguration.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/JobResource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
JobResource::JobResource() :
m_s3ResourcesHasBeenSet(false),
m_lambdaResourcesHasBeenSet(false),
m_ec2AmiResourcesHasBeenSet(false)
{
}
JobResource::JobResource(JsonView jsonValue) :
m_s3ResourcesHasBeenSet(false),
m_lambdaResourcesHasBeenSet(false),
m_ec2AmiResourcesHasBeenSet(false)
{
*this = jsonValue;
}
JobResource& JobResource::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("S3Resources"))
{
Array<JsonView> s3ResourcesJsonList = jsonValue.GetArray("S3Resources");
for(unsigned s3ResourcesIndex = 0; s3ResourcesIndex < s3ResourcesJsonList.GetLength(); ++s3ResourcesIndex)
{
m_s3Resources.push_back(s3ResourcesJsonList[s3ResourcesIndex].AsObject());
}
m_s3ResourcesHasBeenSet = true;
}
if(jsonValue.ValueExists("LambdaResources"))
{
Array<JsonView> lambdaResourcesJsonList = jsonValue.GetArray("LambdaResources");
for(unsigned lambdaResourcesIndex = 0; lambdaResourcesIndex < lambdaResourcesJsonList.GetLength(); ++lambdaResourcesIndex)
{
m_lambdaResources.push_back(lambdaResourcesJsonList[lambdaResourcesIndex].AsObject());
}
m_lambdaResourcesHasBeenSet = true;
}
if(jsonValue.ValueExists("Ec2AmiResources"))
{
Array<JsonView> ec2AmiResourcesJsonList = jsonValue.GetArray("Ec2AmiResources");
for(unsigned ec2AmiResourcesIndex = 0; ec2AmiResourcesIndex < ec2AmiResourcesJsonList.GetLength(); ++ec2AmiResourcesIndex)
{
m_ec2AmiResources.push_back(ec2AmiResourcesJsonList[ec2AmiResourcesIndex].AsObject());
}
m_ec2AmiResourcesHasBeenSet = true;
}
return *this;
}
JsonValue JobResource::Jsonize() const
{
JsonValue payload;
if(m_s3ResourcesHasBeenSet)
{
Array<JsonValue> s3ResourcesJsonList(m_s3Resources.size());
for(unsigned s3ResourcesIndex = 0; s3ResourcesIndex < s3ResourcesJsonList.GetLength(); ++s3ResourcesIndex)
{
s3ResourcesJsonList[s3ResourcesIndex].AsObject(m_s3Resources[s3ResourcesIndex].Jsonize());
}
payload.WithArray("S3Resources", std::move(s3ResourcesJsonList));
}
if(m_lambdaResourcesHasBeenSet)
{
Array<JsonValue> lambdaResourcesJsonList(m_lambdaResources.size());
for(unsigned lambdaResourcesIndex = 0; lambdaResourcesIndex < lambdaResourcesJsonList.GetLength(); ++lambdaResourcesIndex)
{
lambdaResourcesJsonList[lambdaResourcesIndex].AsObject(m_lambdaResources[lambdaResourcesIndex].Jsonize());
}
payload.WithArray("LambdaResources", std::move(lambdaResourcesJsonList));
}
if(m_ec2AmiResourcesHasBeenSet)
{
Array<JsonValue> ec2AmiResourcesJsonList(m_ec2AmiResources.size());
for(unsigned ec2AmiResourcesIndex = 0; ec2AmiResourcesIndex < ec2AmiResourcesJsonList.GetLength(); ++ec2AmiResourcesIndex)
{
ec2AmiResourcesJsonList[ec2AmiResourcesIndex].AsObject(m_ec2AmiResources[ec2AmiResourcesIndex].Jsonize());
}
payload.WithArray("Ec2AmiResources", std::move(ec2AmiResourcesJsonList));
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/JobState.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 Snowball
{
namespace Model
{
namespace JobStateMapper
{
static const int New_HASH = HashingUtils::HashString("New");
static const int PreparingAppliance_HASH = HashingUtils::HashString("PreparingAppliance");
static const int PreparingShipment_HASH = HashingUtils::HashString("PreparingShipment");
static const int InTransitToCustomer_HASH = HashingUtils::HashString("InTransitToCustomer");
static const int WithCustomer_HASH = HashingUtils::HashString("WithCustomer");
static const int InTransitToAWS_HASH = HashingUtils::HashString("InTransitToAWS");
static const int WithAWSSortingFacility_HASH = HashingUtils::HashString("WithAWSSortingFacility");
static const int WithAWS_HASH = HashingUtils::HashString("WithAWS");
static const int InProgress_HASH = HashingUtils::HashString("InProgress");
static const int Complete_HASH = HashingUtils::HashString("Complete");
static const int Cancelled_HASH = HashingUtils::HashString("Cancelled");
static const int Listing_HASH = HashingUtils::HashString("Listing");
static const int Pending_HASH = HashingUtils::HashString("Pending");
JobState GetJobStateForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == New_HASH)
{
return JobState::New;
}
else if (hashCode == PreparingAppliance_HASH)
{
return JobState::PreparingAppliance;
}
else if (hashCode == PreparingShipment_HASH)
{
return JobState::PreparingShipment;
}
else if (hashCode == InTransitToCustomer_HASH)
{
return JobState::InTransitToCustomer;
}
else if (hashCode == WithCustomer_HASH)
{
return JobState::WithCustomer;
}
else if (hashCode == InTransitToAWS_HASH)
{
return JobState::InTransitToAWS;
}
else if (hashCode == WithAWSSortingFacility_HASH)
{
return JobState::WithAWSSortingFacility;
}
else if (hashCode == WithAWS_HASH)
{
return JobState::WithAWS;
}
else if (hashCode == InProgress_HASH)
{
return JobState::InProgress;
}
else if (hashCode == Complete_HASH)
{
return JobState::Complete;
}
else if (hashCode == Cancelled_HASH)
{
return JobState::Cancelled;
}
else if (hashCode == Listing_HASH)
{
return JobState::Listing;
}
else if (hashCode == Pending_HASH)
{
return JobState::Pending;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<JobState>(hashCode);
}
return JobState::NOT_SET;
}
Aws::String GetNameForJobState(JobState enumValue)
{
switch(enumValue)
{
case JobState::New:
return "New";
case JobState::PreparingAppliance:
return "PreparingAppliance";
case JobState::PreparingShipment:
return "PreparingShipment";
case JobState::InTransitToCustomer:
return "InTransitToCustomer";
case JobState::WithCustomer:
return "WithCustomer";
case JobState::InTransitToAWS:
return "InTransitToAWS";
case JobState::WithAWSSortingFacility:
return "WithAWSSortingFacility";
case JobState::WithAWS:
return "WithAWS";
case JobState::InProgress:
return "InProgress";
case JobState::Complete:
return "Complete";
case JobState::Cancelled:
return "Cancelled";
case JobState::Listing:
return "Listing";
case JobState::Pending:
return "Pending";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace JobStateMapper
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/JobType.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 Snowball
{
namespace Model
{
namespace JobTypeMapper
{
static const int IMPORT_HASH = HashingUtils::HashString("IMPORT");
static const int EXPORT_HASH = HashingUtils::HashString("EXPORT");
static const int LOCAL_USE_HASH = HashingUtils::HashString("LOCAL_USE");
JobType GetJobTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == IMPORT_HASH)
{
return JobType::IMPORT;
}
else if (hashCode == EXPORT_HASH)
{
return JobType::EXPORT;
}
else if (hashCode == LOCAL_USE_HASH)
{
return JobType::LOCAL_USE;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<JobType>(hashCode);
}
return JobType::NOT_SET;
}
Aws::String GetNameForJobType(JobType enumValue)
{
switch(enumValue)
{
case JobType::IMPORT:
return "IMPORT";
case JobType::EXPORT:
return "EXPORT";
case JobType::LOCAL_USE:
return "LOCAL_USE";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace JobTypeMapper
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/KeyRange.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
KeyRange::KeyRange() :
m_beginMarkerHasBeenSet(false),
m_endMarkerHasBeenSet(false)
{
}
KeyRange::KeyRange(JsonView jsonValue) :
m_beginMarkerHasBeenSet(false),
m_endMarkerHasBeenSet(false)
{
*this = jsonValue;
}
KeyRange& KeyRange::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BeginMarker"))
{
m_beginMarker = jsonValue.GetString("BeginMarker");
m_beginMarkerHasBeenSet = true;
}
if(jsonValue.ValueExists("EndMarker"))
{
m_endMarker = jsonValue.GetString("EndMarker");
m_endMarkerHasBeenSet = true;
}
return *this;
}
JsonValue KeyRange::Jsonize() const
{
JsonValue payload;
if(m_beginMarkerHasBeenSet)
{
payload.WithString("BeginMarker", m_beginMarker);
}
if(m_endMarkerHasBeenSet)
{
payload.WithString("EndMarker", m_endMarker);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/LambdaResource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
LambdaResource::LambdaResource() :
m_lambdaArnHasBeenSet(false),
m_eventTriggersHasBeenSet(false)
{
}
LambdaResource::LambdaResource(JsonView jsonValue) :
m_lambdaArnHasBeenSet(false),
m_eventTriggersHasBeenSet(false)
{
*this = jsonValue;
}
LambdaResource& LambdaResource::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("LambdaArn"))
{
m_lambdaArn = jsonValue.GetString("LambdaArn");
m_lambdaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("EventTriggers"))
{
Array<JsonView> eventTriggersJsonList = jsonValue.GetArray("EventTriggers");
for(unsigned eventTriggersIndex = 0; eventTriggersIndex < eventTriggersJsonList.GetLength(); ++eventTriggersIndex)
{
m_eventTriggers.push_back(eventTriggersJsonList[eventTriggersIndex].AsObject());
}
m_eventTriggersHasBeenSet = true;
}
return *this;
}
JsonValue LambdaResource::Jsonize() const
{
JsonValue payload;
if(m_lambdaArnHasBeenSet)
{
payload.WithString("LambdaArn", m_lambdaArn);
}
if(m_eventTriggersHasBeenSet)
{
Array<JsonValue> eventTriggersJsonList(m_eventTriggers.size());
for(unsigned eventTriggersIndex = 0; eventTriggersIndex < eventTriggersJsonList.GetLength(); ++eventTriggersIndex)
{
eventTriggersJsonList[eventTriggersIndex].AsObject(m_eventTriggers[eventTriggersIndex].Jsonize());
}
payload.WithArray("EventTriggers", std::move(eventTriggersJsonList));
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,58 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/ListClusterJobsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListClusterJobsRequest::ListClusterJobsRequest() :
m_clusterIdHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListClusterJobsRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("MaxResults", m_maxResults);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("NextToken", m_nextToken);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection ListClusterJobsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.ListClusterJobs"));
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/snowball/model/ListClusterJobsResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListClusterJobsResult::ListClusterJobsResult()
{
}
ListClusterJobsResult::ListClusterJobsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListClusterJobsResult& ListClusterJobsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("JobListEntries"))
{
Array<JsonView> jobListEntriesJsonList = jsonValue.GetArray("JobListEntries");
for(unsigned jobListEntriesIndex = 0; jobListEntriesIndex < jobListEntriesJsonList.GetLength(); ++jobListEntriesIndex)
{
m_jobListEntries.push_back(jobListEntriesJsonList[jobListEntriesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
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/snowball/model/ListClustersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListClustersRequest::ListClustersRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListClustersRequest::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 ListClustersRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.ListClusters"));
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/snowball/model/ListClustersResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListClustersResult::ListClustersResult()
{
}
ListClustersResult::ListClustersResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListClustersResult& ListClustersResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("ClusterListEntries"))
{
Array<JsonView> clusterListEntriesJsonList = jsonValue.GetArray("ClusterListEntries");
for(unsigned clusterListEntriesIndex = 0; clusterListEntriesIndex < clusterListEntriesJsonList.GetLength(); ++clusterListEntriesIndex)
{
m_clusterListEntries.push_back(clusterListEntriesJsonList[clusterListEntriesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
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/snowball/model/ListCompatibleImagesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListCompatibleImagesRequest::ListCompatibleImagesRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListCompatibleImagesRequest::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 ListCompatibleImagesRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.ListCompatibleImages"));
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/snowball/model/ListCompatibleImagesResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListCompatibleImagesResult::ListCompatibleImagesResult()
{
}
ListCompatibleImagesResult::ListCompatibleImagesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListCompatibleImagesResult& ListCompatibleImagesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("CompatibleImages"))
{
Array<JsonView> compatibleImagesJsonList = jsonValue.GetArray("CompatibleImages");
for(unsigned compatibleImagesIndex = 0; compatibleImagesIndex < compatibleImagesJsonList.GetLength(); ++compatibleImagesIndex)
{
m_compatibleImages.push_back(compatibleImagesJsonList[compatibleImagesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
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/snowball/model/ListJobsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListJobsRequest::ListJobsRequest() :
m_maxResults(0),
m_maxResultsHasBeenSet(false),
m_nextTokenHasBeenSet(false)
{
}
Aws::String ListJobsRequest::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 ListJobsRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.ListJobs"));
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/snowball/model/ListJobsResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListJobsResult::ListJobsResult()
{
}
ListJobsResult::ListJobsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListJobsResult& ListJobsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("JobListEntries"))
{
Array<JsonView> jobListEntriesJsonList = jsonValue.GetArray("JobListEntries");
for(unsigned jobListEntriesIndex = 0; jobListEntriesIndex < jobListEntriesJsonList.GetLength(); ++jobListEntriesIndex)
{
m_jobListEntries.push_back(jobListEntriesJsonList[jobListEntriesIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/Notification.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
Notification::Notification() :
m_snsTopicARNHasBeenSet(false),
m_jobStatesToNotifyHasBeenSet(false),
m_notifyAll(false),
m_notifyAllHasBeenSet(false)
{
}
Notification::Notification(JsonView jsonValue) :
m_snsTopicARNHasBeenSet(false),
m_jobStatesToNotifyHasBeenSet(false),
m_notifyAll(false),
m_notifyAllHasBeenSet(false)
{
*this = jsonValue;
}
Notification& Notification::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SnsTopicARN"))
{
m_snsTopicARN = jsonValue.GetString("SnsTopicARN");
m_snsTopicARNHasBeenSet = true;
}
if(jsonValue.ValueExists("JobStatesToNotify"))
{
Array<JsonView> jobStatesToNotifyJsonList = jsonValue.GetArray("JobStatesToNotify");
for(unsigned jobStatesToNotifyIndex = 0; jobStatesToNotifyIndex < jobStatesToNotifyJsonList.GetLength(); ++jobStatesToNotifyIndex)
{
m_jobStatesToNotify.push_back(JobStateMapper::GetJobStateForName(jobStatesToNotifyJsonList[jobStatesToNotifyIndex].AsString()));
}
m_jobStatesToNotifyHasBeenSet = true;
}
if(jsonValue.ValueExists("NotifyAll"))
{
m_notifyAll = jsonValue.GetBool("NotifyAll");
m_notifyAllHasBeenSet = true;
}
return *this;
}
JsonValue Notification::Jsonize() const
{
JsonValue payload;
if(m_snsTopicARNHasBeenSet)
{
payload.WithString("SnsTopicARN", m_snsTopicARN);
}
if(m_jobStatesToNotifyHasBeenSet)
{
Array<JsonValue> jobStatesToNotifyJsonList(m_jobStatesToNotify.size());
for(unsigned jobStatesToNotifyIndex = 0; jobStatesToNotifyIndex < jobStatesToNotifyJsonList.GetLength(); ++jobStatesToNotifyIndex)
{
jobStatesToNotifyJsonList[jobStatesToNotifyIndex].AsString(JobStateMapper::GetNameForJobState(m_jobStatesToNotify[jobStatesToNotifyIndex]));
}
payload.WithArray("JobStatesToNotify", std::move(jobStatesToNotifyJsonList));
}
if(m_notifyAllHasBeenSet)
{
payload.WithBool("NotifyAll", m_notifyAll);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/S3Resource.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
S3Resource::S3Resource() :
m_bucketArnHasBeenSet(false),
m_keyRangeHasBeenSet(false)
{
}
S3Resource::S3Resource(JsonView jsonValue) :
m_bucketArnHasBeenSet(false),
m_keyRangeHasBeenSet(false)
{
*this = jsonValue;
}
S3Resource& S3Resource::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("BucketArn"))
{
m_bucketArn = jsonValue.GetString("BucketArn");
m_bucketArnHasBeenSet = true;
}
if(jsonValue.ValueExists("KeyRange"))
{
m_keyRange = jsonValue.GetObject("KeyRange");
m_keyRangeHasBeenSet = true;
}
return *this;
}
JsonValue S3Resource::Jsonize() const
{
JsonValue payload;
if(m_bucketArnHasBeenSet)
{
payload.WithString("BucketArn", m_bucketArn);
}
if(m_keyRangeHasBeenSet)
{
payload.WithObject("KeyRange", m_keyRange.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/Shipment.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
Shipment::Shipment() :
m_statusHasBeenSet(false),
m_trackingNumberHasBeenSet(false)
{
}
Shipment::Shipment(JsonView jsonValue) :
m_statusHasBeenSet(false),
m_trackingNumberHasBeenSet(false)
{
*this = jsonValue;
}
Shipment& Shipment::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Status"))
{
m_status = jsonValue.GetString("Status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("TrackingNumber"))
{
m_trackingNumber = jsonValue.GetString("TrackingNumber");
m_trackingNumberHasBeenSet = true;
}
return *this;
}
JsonValue Shipment::Jsonize() const
{
JsonValue payload;
if(m_statusHasBeenSet)
{
payload.WithString("Status", m_status);
}
if(m_trackingNumberHasBeenSet)
{
payload.WithString("TrackingNumber", m_trackingNumber);
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/ShippingDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
ShippingDetails::ShippingDetails() :
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_inboundShipmentHasBeenSet(false),
m_outboundShipmentHasBeenSet(false)
{
}
ShippingDetails::ShippingDetails(JsonView jsonValue) :
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_inboundShipmentHasBeenSet(false),
m_outboundShipmentHasBeenSet(false)
{
*this = jsonValue;
}
ShippingDetails& ShippingDetails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("ShippingOption"))
{
m_shippingOption = ShippingOptionMapper::GetShippingOptionForName(jsonValue.GetString("ShippingOption"));
m_shippingOptionHasBeenSet = true;
}
if(jsonValue.ValueExists("InboundShipment"))
{
m_inboundShipment = jsonValue.GetObject("InboundShipment");
m_inboundShipmentHasBeenSet = true;
}
if(jsonValue.ValueExists("OutboundShipment"))
{
m_outboundShipment = jsonValue.GetObject("OutboundShipment");
m_outboundShipmentHasBeenSet = true;
}
return *this;
}
JsonValue ShippingDetails::Jsonize() const
{
JsonValue payload;
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_inboundShipmentHasBeenSet)
{
payload.WithObject("InboundShipment", m_inboundShipment.Jsonize());
}
if(m_outboundShipmentHasBeenSet)
{
payload.WithObject("OutboundShipment", m_outboundShipment.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // 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/snowball/model/ShippingOption.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 Snowball
{
namespace Model
{
namespace ShippingOptionMapper
{
static const int SECOND_DAY_HASH = HashingUtils::HashString("SECOND_DAY");
static const int NEXT_DAY_HASH = HashingUtils::HashString("NEXT_DAY");
static const int EXPRESS_HASH = HashingUtils::HashString("EXPRESS");
static const int STANDARD_HASH = HashingUtils::HashString("STANDARD");
ShippingOption GetShippingOptionForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == SECOND_DAY_HASH)
{
return ShippingOption::SECOND_DAY;
}
else if (hashCode == NEXT_DAY_HASH)
{
return ShippingOption::NEXT_DAY;
}
else if (hashCode == EXPRESS_HASH)
{
return ShippingOption::EXPRESS;
}
else if (hashCode == STANDARD_HASH)
{
return ShippingOption::STANDARD;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ShippingOption>(hashCode);
}
return ShippingOption::NOT_SET;
}
Aws::String GetNameForShippingOption(ShippingOption enumValue)
{
switch(enumValue)
{
case ShippingOption::SECOND_DAY:
return "SECOND_DAY";
case ShippingOption::NEXT_DAY:
return "NEXT_DAY";
case ShippingOption::EXPRESS:
return "EXPRESS";
case ShippingOption::STANDARD:
return "STANDARD";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ShippingOptionMapper
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/SnowballCapacity.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 Snowball
{
namespace Model
{
namespace SnowballCapacityMapper
{
static const int T50_HASH = HashingUtils::HashString("T50");
static const int T80_HASH = HashingUtils::HashString("T80");
static const int T100_HASH = HashingUtils::HashString("T100");
static const int T42_HASH = HashingUtils::HashString("T42");
static const int T98_HASH = HashingUtils::HashString("T98");
static const int T8_HASH = HashingUtils::HashString("T8");
static const int NoPreference_HASH = HashingUtils::HashString("NoPreference");
SnowballCapacity GetSnowballCapacityForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == T50_HASH)
{
return SnowballCapacity::T50;
}
else if (hashCode == T80_HASH)
{
return SnowballCapacity::T80;
}
else if (hashCode == T100_HASH)
{
return SnowballCapacity::T100;
}
else if (hashCode == T42_HASH)
{
return SnowballCapacity::T42;
}
else if (hashCode == T98_HASH)
{
return SnowballCapacity::T98;
}
else if (hashCode == T8_HASH)
{
return SnowballCapacity::T8;
}
else if (hashCode == NoPreference_HASH)
{
return SnowballCapacity::NoPreference;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SnowballCapacity>(hashCode);
}
return SnowballCapacity::NOT_SET;
}
Aws::String GetNameForSnowballCapacity(SnowballCapacity enumValue)
{
switch(enumValue)
{
case SnowballCapacity::T50:
return "T50";
case SnowballCapacity::T80:
return "T80";
case SnowballCapacity::T100:
return "T100";
case SnowballCapacity::T42:
return "T42";
case SnowballCapacity::T98:
return "T98";
case SnowballCapacity::T8:
return "T8";
case SnowballCapacity::NoPreference:
return "NoPreference";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace SnowballCapacityMapper
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/SnowballType.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 Snowball
{
namespace Model
{
namespace SnowballTypeMapper
{
static const int STANDARD_HASH = HashingUtils::HashString("STANDARD");
static const int EDGE_HASH = HashingUtils::HashString("EDGE");
static const int EDGE_C_HASH = HashingUtils::HashString("EDGE_C");
static const int EDGE_CG_HASH = HashingUtils::HashString("EDGE_CG");
static const int EDGE_S_HASH = HashingUtils::HashString("EDGE_S");
static const int SNC1_HDD_HASH = HashingUtils::HashString("SNC1_HDD");
SnowballType GetSnowballTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == STANDARD_HASH)
{
return SnowballType::STANDARD;
}
else if (hashCode == EDGE_HASH)
{
return SnowballType::EDGE;
}
else if (hashCode == EDGE_C_HASH)
{
return SnowballType::EDGE_C;
}
else if (hashCode == EDGE_CG_HASH)
{
return SnowballType::EDGE_CG;
}
else if (hashCode == EDGE_S_HASH)
{
return SnowballType::EDGE_S;
}
else if (hashCode == SNC1_HDD_HASH)
{
return SnowballType::SNC1_HDD;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<SnowballType>(hashCode);
}
return SnowballType::NOT_SET;
}
Aws::String GetNameForSnowballType(SnowballType enumValue)
{
switch(enumValue)
{
case SnowballType::STANDARD:
return "STANDARD";
case SnowballType::EDGE:
return "EDGE";
case SnowballType::EDGE_C:
return "EDGE_C";
case SnowballType::EDGE_CG:
return "EDGE_CG";
case SnowballType::EDGE_S:
return "EDGE_S";
case SnowballType::SNC1_HDD:
return "SNC1_HDD";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace SnowballTypeMapper
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/SnowconeDeviceConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
SnowconeDeviceConfiguration::SnowconeDeviceConfiguration() :
m_wirelessConnectionHasBeenSet(false)
{
}
SnowconeDeviceConfiguration::SnowconeDeviceConfiguration(JsonView jsonValue) :
m_wirelessConnectionHasBeenSet(false)
{
*this = jsonValue;
}
SnowconeDeviceConfiguration& SnowconeDeviceConfiguration::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("WirelessConnection"))
{
m_wirelessConnection = jsonValue.GetObject("WirelessConnection");
m_wirelessConnectionHasBeenSet = true;
}
return *this;
}
JsonValue SnowconeDeviceConfiguration::Jsonize() const
{
JsonValue payload;
if(m_wirelessConnectionHasBeenSet)
{
payload.WithObject("WirelessConnection", m_wirelessConnection.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/TaxDocuments.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Snowball
{
namespace Model
{
TaxDocuments::TaxDocuments() :
m_iNDHasBeenSet(false)
{
}
TaxDocuments::TaxDocuments(JsonView jsonValue) :
m_iNDHasBeenSet(false)
{
*this = jsonValue;
}
TaxDocuments& TaxDocuments::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("IND"))
{
m_iND = jsonValue.GetObject("IND");
m_iNDHasBeenSet = true;
}
return *this;
}
JsonValue TaxDocuments::Jsonize() const
{
JsonValue payload;
if(m_iNDHasBeenSet)
{
payload.WithObject("IND", m_iND.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace Snowball
} // namespace Aws

View File

@@ -0,0 +1,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/UpdateClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateClusterRequest::UpdateClusterRequest() :
m_clusterIdHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_notificationHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false)
{
}
Aws::String UpdateClusterRequest::SerializePayload() const
{
JsonValue payload;
if(m_clusterIdHasBeenSet)
{
payload.WithString("ClusterId", m_clusterId);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateClusterRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.UpdateCluster"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/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::Snowball::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)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/UpdateJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateJobRequest::UpdateJobRequest() :
m_jobIdHasBeenSet(false),
m_roleARNHasBeenSet(false),
m_notificationHasBeenSet(false),
m_resourcesHasBeenSet(false),
m_addressIdHasBeenSet(false),
m_shippingOption(ShippingOption::NOT_SET),
m_shippingOptionHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_snowballCapacityPreference(SnowballCapacity::NOT_SET),
m_snowballCapacityPreferenceHasBeenSet(false),
m_forwardingAddressIdHasBeenSet(false)
{
}
Aws::String UpdateJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_jobIdHasBeenSet)
{
payload.WithString("JobId", m_jobId);
}
if(m_roleARNHasBeenSet)
{
payload.WithString("RoleARN", m_roleARN);
}
if(m_notificationHasBeenSet)
{
payload.WithObject("Notification", m_notification.Jsonize());
}
if(m_resourcesHasBeenSet)
{
payload.WithObject("Resources", m_resources.Jsonize());
}
if(m_addressIdHasBeenSet)
{
payload.WithString("AddressId", m_addressId);
}
if(m_shippingOptionHasBeenSet)
{
payload.WithString("ShippingOption", ShippingOptionMapper::GetNameForShippingOption(m_shippingOption));
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_snowballCapacityPreferenceHasBeenSet)
{
payload.WithString("SnowballCapacityPreference", SnowballCapacityMapper::GetNameForSnowballCapacity(m_snowballCapacityPreference));
}
if(m_forwardingAddressIdHasBeenSet)
{
payload.WithString("ForwardingAddressId", m_forwardingAddressId);
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection UpdateJobRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSIESnowballJobManagementService.UpdateJob"));
return headers;
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/snowball/model/UpdateJobResult.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::Snowball::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateJobResult::UpdateJobResult()
{
}
UpdateJobResult::UpdateJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateJobResult& UpdateJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

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