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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/SchemasEndpoint.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws;
using namespace Aws::Schemas;
namespace Aws
{
namespace Schemas
{
namespace SchemasEndpoint
{
static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1");
static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1");
static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1");
static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1");
Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)
{
// Fallback to us-east-1 if global endpoint does not exists.
Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName;
auto hash = Aws::Utils::HashingUtils::HashString(region.c_str());
Aws::StringStream ss;
ss << "schemas" << ".";
if(useDualStack)
{
ss << "dualstack.";
}
ss << region;
if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH)
{
ss << ".amazonaws.com.cn";
}
else if (hash == US_ISO_EAST_1_HASH)
{
ss << ".c2s.ic.gov";
}
else if (hash == US_ISOB_EAST_1_HASH)
{
ss << ".sc2s.sgov.gov";
}
else
{
ss << ".amazonaws.com";
}
return ss.str();
}
} // namespace SchemasEndpoint
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,22 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/schemas/SchemasErrorMarshaller.h>
#include <aws/schemas/SchemasErrors.h>
using namespace Aws::Client;
using namespace Aws::Schemas;
AWSError<CoreErrors> SchemasErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = SchemasErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}

View File

@@ -0,0 +1,148 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/schemas/SchemasErrors.h>
#include <aws/schemas/model/ServiceUnavailableException.h>
#include <aws/schemas/model/ConflictException.h>
#include <aws/schemas/model/NotFoundException.h>
#include <aws/schemas/model/UnauthorizedException.h>
#include <aws/schemas/model/ForbiddenException.h>
#include <aws/schemas/model/PreconditionFailedException.h>
#include <aws/schemas/model/GoneException.h>
#include <aws/schemas/model/TooManyRequestsException.h>
#include <aws/schemas/model/BadRequestException.h>
#include <aws/schemas/model/InternalServerErrorException.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::Schemas;
using namespace Aws::Schemas::Model;
namespace Aws
{
namespace Schemas
{
template<> AWS_SCHEMAS_API ServiceUnavailableException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::SERVICE_UNAVAILABLE);
return ServiceUnavailableException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API ConflictException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::CONFLICT);
return ConflictException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API NotFoundException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::NOT_FOUND);
return NotFoundException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API UnauthorizedException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::UNAUTHORIZED);
return UnauthorizedException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API ForbiddenException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::FORBIDDEN);
return ForbiddenException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API PreconditionFailedException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::PRECONDITION_FAILED);
return PreconditionFailedException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API GoneException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::GONE);
return GoneException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API TooManyRequestsException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::TOO_MANY_REQUESTS);
return TooManyRequestsException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API BadRequestException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::BAD_REQUEST);
return BadRequestException(this->GetJsonPayload().View());
}
template<> AWS_SCHEMAS_API InternalServerErrorException SchemasError::GetModeledError()
{
assert(this->GetErrorType() == SchemasErrors::INTERNAL_SERVER_ERROR);
return InternalServerErrorException(this->GetJsonPayload().View());
}
namespace SchemasErrorMapper
{
static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException");
static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException");
static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException");
static const int FORBIDDEN_HASH = HashingUtils::HashString("ForbiddenException");
static const int PRECONDITION_FAILED_HASH = HashingUtils::HashString("PreconditionFailedException");
static const int GONE_HASH = HashingUtils::HashString("GoneException");
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException");
static const int INTERNAL_SERVER_ERROR_HASH = HashingUtils::HashString("InternalServerErrorException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::CONFLICT), false);
}
else if (hashCode == NOT_FOUND_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::NOT_FOUND), false);
}
else if (hashCode == UNAUTHORIZED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::UNAUTHORIZED), false);
}
else if (hashCode == FORBIDDEN_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::FORBIDDEN), false);
}
else if (hashCode == PRECONDITION_FAILED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::PRECONDITION_FAILED), false);
}
else if (hashCode == GONE_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::GONE), false);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::TOO_MANY_REQUESTS), true);
}
else if (hashCode == BAD_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::BAD_REQUEST), false);
}
else if (hashCode == INTERNAL_SERVER_ERROR_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(SchemasErrors::INTERNAL_SERVER_ERROR), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace SchemasErrorMapper
} // namespace Schemas
} // 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/schemas/model/BadRequestException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
BadRequestException::BadRequestException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
BadRequestException::BadRequestException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
BadRequestException& BadRequestException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue BadRequestException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/CodeGenerationStatus.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 Schemas
{
namespace Model
{
namespace CodeGenerationStatusMapper
{
static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS");
static const int CREATE_COMPLETE_HASH = HashingUtils::HashString("CREATE_COMPLETE");
static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED");
CodeGenerationStatus GetCodeGenerationStatusForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == CREATE_IN_PROGRESS_HASH)
{
return CodeGenerationStatus::CREATE_IN_PROGRESS;
}
else if (hashCode == CREATE_COMPLETE_HASH)
{
return CodeGenerationStatus::CREATE_COMPLETE;
}
else if (hashCode == CREATE_FAILED_HASH)
{
return CodeGenerationStatus::CREATE_FAILED;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<CodeGenerationStatus>(hashCode);
}
return CodeGenerationStatus::NOT_SET;
}
Aws::String GetNameForCodeGenerationStatus(CodeGenerationStatus enumValue)
{
switch(enumValue)
{
case CodeGenerationStatus::CREATE_IN_PROGRESS:
return "CREATE_IN_PROGRESS";
case CodeGenerationStatus::CREATE_COMPLETE:
return "CREATE_COMPLETE";
case CodeGenerationStatus::CREATE_FAILED:
return "CREATE_FAILED";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace CodeGenerationStatusMapper
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/ConflictException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
ConflictException::ConflictException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
ConflictException::ConflictException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
ConflictException& ConflictException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue ConflictException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateDiscovererRequest::CreateDiscovererRequest() :
m_descriptionHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateDiscovererRequest::SerializePayload() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_sourceArnHasBeenSet)
{
payload.WithString("SourceArn", m_sourceArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateDiscovererResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateDiscovererResult::CreateDiscovererResult() :
m_state(DiscovererState::NOT_SET)
{
}
CreateDiscovererResult::CreateDiscovererResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(DiscovererState::NOT_SET)
{
*this = result;
}
CreateDiscovererResult& CreateDiscovererResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("DiscovererArn"))
{
m_discovererArn = jsonValue.GetString("DiscovererArn");
}
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
}
if(jsonValue.ValueExists("SourceArn"))
{
m_sourceArn = jsonValue.GetString("SourceArn");
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateRegistryRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRegistryRequest::CreateRegistryRequest() :
m_descriptionHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateRegistryRequest::SerializePayload() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateRegistryResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRegistryResult::CreateRegistryResult()
{
}
CreateRegistryResult::CreateRegistryResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateRegistryResult& CreateRegistryResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("RegistryArn"))
{
m_registryArn = jsonValue.GetString("RegistryArn");
}
if(jsonValue.ValueExists("RegistryName"))
{
m_registryName = jsonValue.GetString("RegistryName");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateSchemaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateSchemaRequest::CreateSchemaRequest() :
m_contentHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_tagsHasBeenSet(false),
m_type(Type::NOT_SET),
m_typeHasBeenSet(false)
{
}
Aws::String CreateSchemaRequest::SerializePayload() const
{
JsonValue payload;
if(m_contentHasBeenSet)
{
payload.WithString("Content", m_content);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", TypeMapper::GetNameForType(m_type));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/CreateSchemaResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateSchemaResult::CreateSchemaResult()
{
}
CreateSchemaResult::CreateSchemaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateSchemaResult& CreateSchemaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
}
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("Type"))
{
m_type = jsonValue.GetString("Type");
}
if(jsonValue.ValueExists("VersionCreatedDate"))
{
m_versionCreatedDate = jsonValue.GetString("VersionCreatedDate");
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DeleteDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteDiscovererRequest::DeleteDiscovererRequest() :
m_discovererIdHasBeenSet(false)
{
}
Aws::String DeleteDiscovererRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DeleteRegistryRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteRegistryRequest::DeleteRegistryRequest() :
m_registryNameHasBeenSet(false)
{
}
Aws::String DeleteRegistryRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DeleteResourcePolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
DeleteResourcePolicyRequest::DeleteResourcePolicyRequest() :
m_registryNameHasBeenSet(false)
{
}
Aws::String DeleteResourcePolicyRequest::SerializePayload() const
{
return {};
}
void DeleteResourcePolicyRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_registryNameHasBeenSet)
{
ss << m_registryName;
uri.AddQueryStringParameter("registryName", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,28 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DeleteSchemaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteSchemaRequest::DeleteSchemaRequest() :
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false)
{
}
Aws::String DeleteSchemaRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DeleteSchemaVersionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteSchemaVersionRequest::DeleteSchemaVersionRequest() :
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
Aws::String DeleteSchemaVersionRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,44 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeCodeBindingRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
DescribeCodeBindingRequest::DescribeCodeBindingRequest() :
m_languageHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
Aws::String DescribeCodeBindingRequest::SerializePayload() const
{
return {};
}
void DescribeCodeBindingRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_schemaVersionHasBeenSet)
{
ss << m_schemaVersion;
uri.AddQueryStringParameter("schemaVersion", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,60 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeCodeBindingResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeCodeBindingResult::DescribeCodeBindingResult() :
m_status(CodeGenerationStatus::NOT_SET)
{
}
DescribeCodeBindingResult::DescribeCodeBindingResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_status(CodeGenerationStatus::NOT_SET)
{
*this = result;
}
DescribeCodeBindingResult& DescribeCodeBindingResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetString("CreationDate");
}
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
}
if(jsonValue.ValueExists("Status"))
{
m_status = CodeGenerationStatusMapper::GetCodeGenerationStatusForName(jsonValue.GetString("Status"));
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeDiscovererRequest::DescribeDiscovererRequest() :
m_discovererIdHasBeenSet(false)
{
}
Aws::String DescribeDiscovererRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeDiscovererResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeDiscovererResult::DescribeDiscovererResult() :
m_state(DiscovererState::NOT_SET)
{
}
DescribeDiscovererResult::DescribeDiscovererResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(DiscovererState::NOT_SET)
{
*this = result;
}
DescribeDiscovererResult& DescribeDiscovererResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("DiscovererArn"))
{
m_discovererArn = jsonValue.GetString("DiscovererArn");
}
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
}
if(jsonValue.ValueExists("SourceArn"))
{
m_sourceArn = jsonValue.GetString("SourceArn");
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeRegistryRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DescribeRegistryRequest::DescribeRegistryRequest() :
m_registryNameHasBeenSet(false)
{
}
Aws::String DescribeRegistryRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeRegistryResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeRegistryResult::DescribeRegistryResult()
{
}
DescribeRegistryResult::DescribeRegistryResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeRegistryResult& DescribeRegistryResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("RegistryArn"))
{
m_registryArn = jsonValue.GetString("RegistryArn");
}
if(jsonValue.ValueExists("RegistryName"))
{
m_registryName = jsonValue.GetString("RegistryName");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
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/schemas/model/DescribeSchemaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
DescribeSchemaRequest::DescribeSchemaRequest() :
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
Aws::String DescribeSchemaRequest::SerializePayload() const
{
return {};
}
void DescribeSchemaRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_schemaVersionHasBeenSet)
{
ss << m_schemaVersion;
uri.AddQueryStringParameter("schemaVersion", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DescribeSchemaResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeSchemaResult::DescribeSchemaResult()
{
}
DescribeSchemaResult::DescribeSchemaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeSchemaResult& DescribeSchemaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Content"))
{
m_content = jsonValue.GetString("Content");
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
}
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("Type"))
{
m_type = jsonValue.GetString("Type");
}
if(jsonValue.ValueExists("VersionCreatedDate"))
{
m_versionCreatedDate = jsonValue.GetString("VersionCreatedDate");
}
return *this;
}

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DiscovererState.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 Schemas
{
namespace Model
{
namespace DiscovererStateMapper
{
static const int STARTED_HASH = HashingUtils::HashString("STARTED");
static const int STOPPED_HASH = HashingUtils::HashString("STOPPED");
DiscovererState GetDiscovererStateForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == STARTED_HASH)
{
return DiscovererState::STARTED;
}
else if (hashCode == STOPPED_HASH)
{
return DiscovererState::STOPPED;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<DiscovererState>(hashCode);
}
return DiscovererState::NOT_SET;
}
Aws::String GetNameForDiscovererState(DiscovererState enumValue)
{
switch(enumValue)
{
case DiscovererState::STARTED:
return "STARTED";
case DiscovererState::STOPPED:
return "STOPPED";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace DiscovererStateMapper
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/DiscovererSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
DiscovererSummary::DiscovererSummary() :
m_discovererArnHasBeenSet(false),
m_discovererIdHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_state(DiscovererState::NOT_SET),
m_stateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
DiscovererSummary::DiscovererSummary(JsonView jsonValue) :
m_discovererArnHasBeenSet(false),
m_discovererIdHasBeenSet(false),
m_sourceArnHasBeenSet(false),
m_state(DiscovererState::NOT_SET),
m_stateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
DiscovererSummary& DiscovererSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("DiscovererArn"))
{
m_discovererArn = jsonValue.GetString("DiscovererArn");
m_discovererArnHasBeenSet = true;
}
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
m_discovererIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SourceArn"))
{
m_sourceArn = jsonValue.GetString("SourceArn");
m_sourceArnHasBeenSet = true;
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
m_stateHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue DiscovererSummary::Jsonize() const
{
JsonValue payload;
if(m_discovererArnHasBeenSet)
{
payload.WithString("DiscovererArn", m_discovererArn);
}
if(m_discovererIdHasBeenSet)
{
payload.WithString("DiscovererId", m_discovererId);
}
if(m_sourceArnHasBeenSet)
{
payload.WithString("SourceArn", m_sourceArn);
}
if(m_stateHasBeenSet)
{
payload.WithString("State", DiscovererStateMapper::GetNameForDiscovererState(m_state));
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/ForbiddenException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
ForbiddenException::ForbiddenException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
ForbiddenException::ForbiddenException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
ForbiddenException& ForbiddenException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue ForbiddenException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,44 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetCodeBindingSourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
GetCodeBindingSourceRequest::GetCodeBindingSourceRequest() :
m_languageHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
Aws::String GetCodeBindingSourceRequest::SerializePayload() const
{
return {};
}
void GetCodeBindingSourceRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_schemaVersionHasBeenSet)
{
ss << m_schemaVersion;
uri.AddQueryStringParameter("schemaVersion", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetCodeBindingSourceResult.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/HashingUtils.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Stream;
using namespace Aws::Utils;
using namespace Aws;
GetCodeBindingSourceResult::GetCodeBindingSourceResult()
{
}
GetCodeBindingSourceResult::GetCodeBindingSourceResult(GetCodeBindingSourceResult&& toMove) :
m_body(std::move(toMove.m_body))
{
}
GetCodeBindingSourceResult& GetCodeBindingSourceResult::operator=(GetCodeBindingSourceResult&& toMove)
{
if(this == &toMove)
{
return *this;
}
m_body = std::move(toMove.m_body);
return *this;
}
GetCodeBindingSourceResult::GetCodeBindingSourceResult(Aws::AmazonWebServiceResult<ResponseStream>&& result)
{
*this = std::move(result);
}
GetCodeBindingSourceResult& GetCodeBindingSourceResult::operator =(Aws::AmazonWebServiceResult<ResponseStream>&& result)
{
m_body = result.TakeOwnershipOfPayload();
return *this;
}

View File

@@ -0,0 +1,47 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetDiscoveredSchemaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetDiscoveredSchemaRequest::GetDiscoveredSchemaRequest() :
m_eventsHasBeenSet(false),
m_type(Type::NOT_SET),
m_typeHasBeenSet(false)
{
}
Aws::String GetDiscoveredSchemaRequest::SerializePayload() const
{
JsonValue payload;
if(m_eventsHasBeenSet)
{
Array<JsonValue> eventsJsonList(m_events.size());
for(unsigned eventsIndex = 0; eventsIndex < eventsJsonList.GetLength(); ++eventsIndex)
{
eventsJsonList[eventsIndex].AsString(m_events[eventsIndex]);
}
payload.WithArray("Events", std::move(eventsJsonList));
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", TypeMapper::GetNameForType(m_type));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetDiscoveredSchemaResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetDiscoveredSchemaResult::GetDiscoveredSchemaResult()
{
}
GetDiscoveredSchemaResult::GetDiscoveredSchemaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetDiscoveredSchemaResult& GetDiscoveredSchemaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Content"))
{
m_content = jsonValue.GetString("Content");
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetResourcePolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
GetResourcePolicyRequest::GetResourcePolicyRequest() :
m_registryNameHasBeenSet(false)
{
}
Aws::String GetResourcePolicyRequest::SerializePayload() const
{
return {};
}
void GetResourcePolicyRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_registryNameHasBeenSet)
{
ss << m_registryName;
uri.AddQueryStringParameter("registryName", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GetResourcePolicyResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetResourcePolicyResult::GetResourcePolicyResult()
{
}
GetResourcePolicyResult::GetResourcePolicyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetResourcePolicyResult& GetResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Policy"))
{
m_policy = jsonValue.GetString("Policy");
}
if(jsonValue.ValueExists("RevisionId"))
{
m_revisionId = jsonValue.GetString("RevisionId");
}
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/GoneException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
GoneException::GoneException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
GoneException::GoneException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
GoneException& GoneException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue GoneException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/InternalServerErrorException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
InternalServerErrorException::InternalServerErrorException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
InternalServerErrorException::InternalServerErrorException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
InternalServerErrorException& InternalServerErrorException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue InternalServerErrorException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListDiscoverersRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListDiscoverersRequest::ListDiscoverersRequest() :
m_discovererIdPrefixHasBeenSet(false),
m_limit(0),
m_limitHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_sourceArnPrefixHasBeenSet(false)
{
}
Aws::String ListDiscoverersRequest::SerializePayload() const
{
return {};
}
void ListDiscoverersRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_discovererIdPrefixHasBeenSet)
{
ss << m_discovererIdPrefix;
uri.AddQueryStringParameter("discovererIdPrefix", ss.str());
ss.str("");
}
if(m_limitHasBeenSet)
{
ss << m_limit;
uri.AddQueryStringParameter("limit", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_sourceArnPrefixHasBeenSet)
{
ss << m_sourceArnPrefix;
uri.AddQueryStringParameter("sourceArnPrefix", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListDiscoverersResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListDiscoverersResult::ListDiscoverersResult()
{
}
ListDiscoverersResult::ListDiscoverersResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListDiscoverersResult& ListDiscoverersResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Discoverers"))
{
Array<JsonView> discoverersJsonList = jsonValue.GetArray("Discoverers");
for(unsigned discoverersIndex = 0; discoverersIndex < discoverersJsonList.GetLength(); ++discoverersIndex)
{
m_discoverers.push_back(discoverersJsonList[discoverersIndex].AsObject());
}
}
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
return *this;
}

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListRegistriesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListRegistriesRequest::ListRegistriesRequest() :
m_limit(0),
m_limitHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_registryNamePrefixHasBeenSet(false),
m_scopeHasBeenSet(false)
{
}
Aws::String ListRegistriesRequest::SerializePayload() const
{
return {};
}
void ListRegistriesRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_limitHasBeenSet)
{
ss << m_limit;
uri.AddQueryStringParameter("limit", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_registryNamePrefixHasBeenSet)
{
ss << m_registryNamePrefix;
uri.AddQueryStringParameter("registryNamePrefix", ss.str());
ss.str("");
}
if(m_scopeHasBeenSet)
{
ss << m_scope;
uri.AddQueryStringParameter("scope", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListRegistriesResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListRegistriesResult::ListRegistriesResult()
{
}
ListRegistriesResult::ListRegistriesResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListRegistriesResult& ListRegistriesResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Registries"))
{
Array<JsonView> registriesJsonList = jsonValue.GetArray("Registries");
for(unsigned registriesIndex = 0; registriesIndex < registriesJsonList.GetLength(); ++registriesIndex)
{
m_registries.push_back(registriesJsonList[registriesIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,52 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListSchemaVersionsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListSchemaVersionsRequest::ListSchemaVersionsRequest() :
m_limit(0),
m_limitHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false)
{
}
Aws::String ListSchemaVersionsRequest::SerializePayload() const
{
return {};
}
void ListSchemaVersionsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_limitHasBeenSet)
{
ss << m_limit;
uri.AddQueryStringParameter("limit", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListSchemaVersionsResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListSchemaVersionsResult::ListSchemaVersionsResult()
{
}
ListSchemaVersionsResult::ListSchemaVersionsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListSchemaVersionsResult& ListSchemaVersionsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("SchemaVersions"))
{
Array<JsonView> schemaVersionsJsonList = jsonValue.GetArray("SchemaVersions");
for(unsigned schemaVersionsIndex = 0; schemaVersionsIndex < schemaVersionsJsonList.GetLength(); ++schemaVersionsIndex)
{
m_schemaVersions.push_back(schemaVersionsJsonList[schemaVersionsIndex].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/schemas/model/ListSchemasRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListSchemasRequest::ListSchemasRequest() :
m_limit(0),
m_limitHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNamePrefixHasBeenSet(false)
{
}
Aws::String ListSchemasRequest::SerializePayload() const
{
return {};
}
void ListSchemasRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_limitHasBeenSet)
{
ss << m_limit;
uri.AddQueryStringParameter("limit", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_schemaNamePrefixHasBeenSet)
{
ss << m_schemaNamePrefix;
uri.AddQueryStringParameter("schemaNamePrefix", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListSchemasResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListSchemasResult::ListSchemasResult()
{
}
ListSchemasResult::ListSchemasResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListSchemasResult& ListSchemasResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Schemas"))
{
Array<JsonView> schemasJsonList = jsonValue.GetArray("Schemas");
for(unsigned schemasIndex = 0; schemasIndex < schemasJsonList.GetLength(); ++schemasIndex)
{
m_schemas.push_back(schemasJsonList[schemasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListTagsForResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListTagsForResourceRequest::ListTagsForResourceRequest() :
m_resourceArnHasBeenSet(false)
{
}
Aws::String ListTagsForResourceRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ListTagsForResourceResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListTagsForResourceResult::ListTagsForResourceResult()
{
}
ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/NotFoundException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
NotFoundException::NotFoundException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
NotFoundException::NotFoundException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
NotFoundException& NotFoundException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue NotFoundException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/PreconditionFailedException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
PreconditionFailedException::PreconditionFailedException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
PreconditionFailedException::PreconditionFailedException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
PreconditionFailedException& PreconditionFailedException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue PreconditionFailedException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,44 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/PutCodeBindingRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
PutCodeBindingRequest::PutCodeBindingRequest() :
m_languageHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
Aws::String PutCodeBindingRequest::SerializePayload() const
{
return {};
}
void PutCodeBindingRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_schemaVersionHasBeenSet)
{
ss << m_schemaVersion;
uri.AddQueryStringParameter("schemaVersion", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,60 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/PutCodeBindingResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
PutCodeBindingResult::PutCodeBindingResult() :
m_status(CodeGenerationStatus::NOT_SET)
{
}
PutCodeBindingResult::PutCodeBindingResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_status(CodeGenerationStatus::NOT_SET)
{
*this = result;
}
PutCodeBindingResult& PutCodeBindingResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("CreationDate"))
{
m_creationDate = jsonValue.GetString("CreationDate");
}
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
}
if(jsonValue.ValueExists("Status"))
{
m_status = CodeGenerationStatusMapper::GetCodeGenerationStatusForName(jsonValue.GetString("Status"));
}
return *this;
}

View File

@@ -0,0 +1,57 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/PutResourcePolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
PutResourcePolicyRequest::PutResourcePolicyRequest() :
m_policyHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_revisionIdHasBeenSet(false)
{
}
Aws::String PutResourcePolicyRequest::SerializePayload() const
{
JsonValue payload;
if(m_policyHasBeenSet)
{
payload.WithString("Policy", m_policy);
}
if(m_revisionIdHasBeenSet)
{
payload.WithString("RevisionId", m_revisionId);
}
return payload.View().WriteReadable();
}
void PutResourcePolicyRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_registryNameHasBeenSet)
{
ss << m_registryName;
uri.AddQueryStringParameter("registryName", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/PutResourcePolicyResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
PutResourcePolicyResult::PutResourcePolicyResult()
{
}
PutResourcePolicyResult::PutResourcePolicyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
PutResourcePolicyResult& PutResourcePolicyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Policy"))
{
m_policy = jsonValue.GetString("Policy");
}
if(jsonValue.ValueExists("RevisionId"))
{
m_revisionId = jsonValue.GetString("RevisionId");
}
return *this;
}

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/RegistrySummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
RegistrySummary::RegistrySummary() :
m_registryArnHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
RegistrySummary::RegistrySummary(JsonView jsonValue) :
m_registryArnHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
RegistrySummary& RegistrySummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("RegistryArn"))
{
m_registryArn = jsonValue.GetString("RegistryArn");
m_registryArnHasBeenSet = true;
}
if(jsonValue.ValueExists("RegistryName"))
{
m_registryName = jsonValue.GetString("RegistryName");
m_registryNameHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue RegistrySummary::Jsonize() const
{
JsonValue payload;
if(m_registryArnHasBeenSet)
{
payload.WithString("RegistryArn", m_registryArn);
}
if(m_registryNameHasBeenSet)
{
payload.WithString("RegistryName", m_registryName);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/SchemaSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
SchemaSummary::SchemaSummary() :
m_lastModifiedHasBeenSet(false),
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_tagsHasBeenSet(false),
m_versionCount(0),
m_versionCountHasBeenSet(false)
{
}
SchemaSummary::SchemaSummary(JsonView jsonValue) :
m_lastModifiedHasBeenSet(false),
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_tagsHasBeenSet(false),
m_versionCount(0),
m_versionCountHasBeenSet(false)
{
*this = jsonValue;
}
SchemaSummary& SchemaSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
m_lastModifiedHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
m_schemaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
m_schemaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
if(jsonValue.ValueExists("VersionCount"))
{
m_versionCount = jsonValue.GetInt64("VersionCount");
m_versionCountHasBeenSet = true;
}
return *this;
}
JsonValue SchemaSummary::Jsonize() const
{
JsonValue payload;
if(m_lastModifiedHasBeenSet)
{
payload.WithString("LastModified", m_lastModified.ToGmtString(DateFormat::ISO_8601));
}
if(m_schemaArnHasBeenSet)
{
payload.WithString("SchemaArn", m_schemaArn);
}
if(m_schemaNameHasBeenSet)
{
payload.WithString("SchemaName", m_schemaName);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
if(m_versionCountHasBeenSet)
{
payload.WithInt64("VersionCount", m_versionCount);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/SchemaVersionSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
SchemaVersionSummary::SchemaVersionSummary() :
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
SchemaVersionSummary::SchemaVersionSummary(JsonView jsonValue) :
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
*this = jsonValue;
}
SchemaVersionSummary& SchemaVersionSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
m_schemaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
m_schemaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
m_schemaVersionHasBeenSet = true;
}
return *this;
}
JsonValue SchemaVersionSummary::Jsonize() const
{
JsonValue payload;
if(m_schemaArnHasBeenSet)
{
payload.WithString("SchemaArn", m_schemaArn);
}
if(m_schemaNameHasBeenSet)
{
payload.WithString("SchemaName", m_schemaName);
}
if(m_schemaVersionHasBeenSet)
{
payload.WithString("SchemaVersion", m_schemaVersion);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/SearchSchemaSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
SearchSchemaSummary::SearchSchemaSummary() :
m_registryNameHasBeenSet(false),
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionsHasBeenSet(false)
{
}
SearchSchemaSummary::SearchSchemaSummary(JsonView jsonValue) :
m_registryNameHasBeenSet(false),
m_schemaArnHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_schemaVersionsHasBeenSet(false)
{
*this = jsonValue;
}
SearchSchemaSummary& SearchSchemaSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("RegistryName"))
{
m_registryName = jsonValue.GetString("RegistryName");
m_registryNameHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
m_schemaArnHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
m_schemaNameHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaVersions"))
{
Array<JsonView> schemaVersionsJsonList = jsonValue.GetArray("SchemaVersions");
for(unsigned schemaVersionsIndex = 0; schemaVersionsIndex < schemaVersionsJsonList.GetLength(); ++schemaVersionsIndex)
{
m_schemaVersions.push_back(schemaVersionsJsonList[schemaVersionsIndex].AsObject());
}
m_schemaVersionsHasBeenSet = true;
}
return *this;
}
JsonValue SearchSchemaSummary::Jsonize() const
{
JsonValue payload;
if(m_registryNameHasBeenSet)
{
payload.WithString("RegistryName", m_registryName);
}
if(m_schemaArnHasBeenSet)
{
payload.WithString("SchemaArn", m_schemaArn);
}
if(m_schemaNameHasBeenSet)
{
payload.WithString("SchemaName", m_schemaName);
}
if(m_schemaVersionsHasBeenSet)
{
Array<JsonValue> schemaVersionsJsonList(m_schemaVersions.size());
for(unsigned schemaVersionsIndex = 0; schemaVersionsIndex < schemaVersionsJsonList.GetLength(); ++schemaVersionsIndex)
{
schemaVersionsJsonList[schemaVersionsIndex].AsObject(m_schemaVersions[schemaVersionsIndex].Jsonize());
}
payload.WithArray("SchemaVersions", std::move(schemaVersionsJsonList));
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/SearchSchemaVersionSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
SearchSchemaVersionSummary::SearchSchemaVersionSummary() :
m_createdDateHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
}
SearchSchemaVersionSummary::SearchSchemaVersionSummary(JsonView jsonValue) :
m_createdDateHasBeenSet(false),
m_schemaVersionHasBeenSet(false)
{
*this = jsonValue;
}
SearchSchemaVersionSummary& SearchSchemaVersionSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("CreatedDate"))
{
m_createdDate = jsonValue.GetString("CreatedDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
m_schemaVersionHasBeenSet = true;
}
return *this;
}
JsonValue SearchSchemaVersionSummary::Jsonize() const
{
JsonValue payload;
if(m_createdDateHasBeenSet)
{
payload.WithString("CreatedDate", m_createdDate.ToGmtString(DateFormat::ISO_8601));
}
if(m_schemaVersionHasBeenSet)
{
payload.WithString("SchemaVersion", m_schemaVersion);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/SearchSchemasRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
SearchSchemasRequest::SearchSchemasRequest() :
m_keywordsHasBeenSet(false),
m_limit(0),
m_limitHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_registryNameHasBeenSet(false)
{
}
Aws::String SearchSchemasRequest::SerializePayload() const
{
return {};
}
void SearchSchemasRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_keywordsHasBeenSet)
{
ss << m_keywords;
uri.AddQueryStringParameter("keywords", ss.str());
ss.str("");
}
if(m_limitHasBeenSet)
{
ss << m_limit;
uri.AddQueryStringParameter("limit", ss.str());
ss.str("");
}
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/SearchSchemasResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
SearchSchemasResult::SearchSchemasResult()
{
}
SearchSchemasResult::SearchSchemasResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
SearchSchemasResult& SearchSchemasResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("NextToken"))
{
m_nextToken = jsonValue.GetString("NextToken");
}
if(jsonValue.ValueExists("Schemas"))
{
Array<JsonView> schemasJsonList = jsonValue.GetArray("Schemas");
for(unsigned schemasIndex = 0; schemasIndex < schemasJsonList.GetLength(); ++schemasIndex)
{
m_schemas.push_back(schemasJsonList[schemasIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/ServiceUnavailableException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
ServiceUnavailableException::ServiceUnavailableException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
ServiceUnavailableException::ServiceUnavailableException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
ServiceUnavailableException& ServiceUnavailableException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue ServiceUnavailableException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/StartDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StartDiscovererRequest::StartDiscovererRequest() :
m_discovererIdHasBeenSet(false)
{
}
Aws::String StartDiscovererRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/StartDiscovererResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
StartDiscovererResult::StartDiscovererResult() :
m_state(DiscovererState::NOT_SET)
{
}
StartDiscovererResult::StartDiscovererResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(DiscovererState::NOT_SET)
{
*this = result;
}
StartDiscovererResult& StartDiscovererResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
}
return *this;
}

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/StopDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StopDiscovererRequest::StopDiscovererRequest() :
m_discovererIdHasBeenSet(false)
{
}
Aws::String StopDiscovererRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/StopDiscovererResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
StopDiscovererResult::StopDiscovererResult() :
m_state(DiscovererState::NOT_SET)
{
}
StopDiscovererResult::StopDiscovererResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(DiscovererState::NOT_SET)
{
*this = result;
}
StopDiscovererResult& StopDiscovererResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
}
return *this;
}

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/TagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
TagResourceRequest::TagResourceRequest() :
m_resourceArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String TagResourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/TooManyRequestsException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
TooManyRequestsException::TooManyRequestsException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
TooManyRequestsException::TooManyRequestsException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
TooManyRequestsException& TooManyRequestsException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue TooManyRequestsException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/Type.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 Schemas
{
namespace Model
{
namespace TypeMapper
{
static const int OpenApi3_HASH = HashingUtils::HashString("OpenApi3");
Type GetTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == OpenApi3_HASH)
{
return Type::OpenApi3;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<Type>(hashCode);
}
return Type::NOT_SET;
}
Aws::String GetNameForType(Type enumValue)
{
switch(enumValue)
{
case Type::OpenApi3:
return "OpenApi3";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace TypeMapper
} // namespace Model
} // namespace Schemas
} // 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/schemas/model/UnauthorizedException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Schemas
{
namespace Model
{
UnauthorizedException::UnauthorizedException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
UnauthorizedException::UnauthorizedException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
UnauthorizedException& UnauthorizedException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Code"))
{
m_code = jsonValue.GetString("Code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue UnauthorizedException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("Code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
return payload;
}
} // namespace Model
} // namespace Schemas
} // namespace Aws

View File

@@ -0,0 +1,45 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UntagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
UntagResourceRequest::UntagResourceRequest() :
m_resourceArnHasBeenSet(false),
m_tagKeysHasBeenSet(false)
{
}
Aws::String UntagResourceRequest::SerializePayload() const
{
return {};
}
void UntagResourceRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_tagKeysHasBeenSet)
{
for(const auto& item : m_tagKeys)
{
ss << item;
uri.AddQueryStringParameter("tagKeys", ss.str());
ss.str("");
}
}
}

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UpdateDiscovererRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateDiscovererRequest::UpdateDiscovererRequest() :
m_descriptionHasBeenSet(false),
m_discovererIdHasBeenSet(false)
{
}
Aws::String UpdateDiscovererRequest::SerializePayload() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,75 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UpdateDiscovererResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateDiscovererResult::UpdateDiscovererResult() :
m_state(DiscovererState::NOT_SET)
{
}
UpdateDiscovererResult::UpdateDiscovererResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(DiscovererState::NOT_SET)
{
*this = result;
}
UpdateDiscovererResult& UpdateDiscovererResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("DiscovererArn"))
{
m_discovererArn = jsonValue.GetString("DiscovererArn");
}
if(jsonValue.ValueExists("DiscovererId"))
{
m_discovererId = jsonValue.GetString("DiscovererId");
}
if(jsonValue.ValueExists("SourceArn"))
{
m_sourceArn = jsonValue.GetString("SourceArn");
}
if(jsonValue.ValueExists("State"))
{
m_state = DiscovererStateMapper::GetDiscovererStateForName(jsonValue.GetString("State"));
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UpdateRegistryRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateRegistryRequest::UpdateRegistryRequest() :
m_descriptionHasBeenSet(false),
m_registryNameHasBeenSet(false)
{
}
Aws::String UpdateRegistryRequest::SerializePayload() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UpdateRegistryResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateRegistryResult::UpdateRegistryResult()
{
}
UpdateRegistryResult::UpdateRegistryResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateRegistryResult& UpdateRegistryResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("RegistryArn"))
{
m_registryArn = jsonValue.GetString("RegistryArn");
}
if(jsonValue.ValueExists("RegistryName"))
{
m_registryName = jsonValue.GetString("RegistryName");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
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/schemas/model/UpdateSchemaRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateSchemaRequest::UpdateSchemaRequest() :
m_clientTokenId(Aws::Utils::UUID::RandomUUID()),
m_clientTokenIdHasBeenSet(true),
m_contentHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_registryNameHasBeenSet(false),
m_schemaNameHasBeenSet(false),
m_type(Type::NOT_SET),
m_typeHasBeenSet(false)
{
}
Aws::String UpdateSchemaRequest::SerializePayload() const
{
JsonValue payload;
if(m_clientTokenIdHasBeenSet)
{
payload.WithString("ClientTokenId", m_clientTokenId);
}
if(m_contentHasBeenSet)
{
payload.WithString("Content", m_content);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", TypeMapper::GetNameForType(m_type));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/schemas/model/UpdateSchemaResult.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::Schemas::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateSchemaResult::UpdateSchemaResult()
{
}
UpdateSchemaResult::UpdateSchemaResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateSchemaResult& UpdateSchemaResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("LastModified"))
{
m_lastModified = jsonValue.GetString("LastModified");
}
if(jsonValue.ValueExists("SchemaArn"))
{
m_schemaArn = jsonValue.GetString("SchemaArn");
}
if(jsonValue.ValueExists("SchemaName"))
{
m_schemaName = jsonValue.GetString("SchemaName");
}
if(jsonValue.ValueExists("SchemaVersion"))
{
m_schemaVersion = jsonValue.GetString("SchemaVersion");
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("Type"))
{
m_type = jsonValue.GetString("Type");
}
if(jsonValue.ValueExists("VersionCreatedDate"))
{
m_versionCreatedDate = jsonValue.GetString("VersionCreatedDate");
}
return *this;
}