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

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

View File

@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-greengrass "C++ SDK for the AWS greengrass service" aws-cpp-sdk-core)
file(GLOB AWS_GREENGRASS_HEADERS
"include/aws/greengrass/*.h"
)
file(GLOB AWS_GREENGRASS_MODEL_HEADERS
"include/aws/greengrass/model/*.h"
)
file(GLOB AWS_GREENGRASS_SOURCE
"source/*.cpp"
)
file(GLOB AWS_GREENGRASS_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB GREENGRASS_UNIFIED_HEADERS
${AWS_GREENGRASS_HEADERS}
${AWS_GREENGRASS_MODEL_HEADERS}
)
file(GLOB GREENGRASS_UNITY_SRC
${AWS_GREENGRASS_SOURCE}
${AWS_GREENGRASS_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("GREENGRASS" GREENGRASS_UNITY_SRC)
endif()
file(GLOB GREENGRASS_SRC
${GREENGRASS_UNIFIED_HEADERS}
${GREENGRASS_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\greengrass" FILES ${AWS_GREENGRASS_HEADERS})
source_group("Header Files\\aws\\greengrass\\model" FILES ${AWS_GREENGRASS_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_GREENGRASS_SOURCE})
source_group("Source Files\\model" FILES ${AWS_GREENGRASS_MODEL_SOURCE})
endif(MSVC)
endif()
set(GREENGRASS_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${GREENGRASS_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_GREENGRASS_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_GREENGRASS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/greengrass)
install (FILES ${AWS_GREENGRASS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/greengrass/model)
do_packaging()

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Greengrass
{
namespace GreengrassEndpoint
{
AWS_GREENGRASS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace GreengrassEndpoint
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_GREENGRASS_API GreengrassErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
namespace Greengrass
{
enum class GreengrassErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER_ERROR
};
class AWS_GREENGRASS_API GreengrassError : public Aws::Client::AWSError<GreengrassErrors>
{
public:
GreengrassError() {}
GreengrassError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<GreengrassErrors>(rhs) {}
GreengrassError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<GreengrassErrors>(rhs) {}
GreengrassError(const Aws::Client::AWSError<GreengrassErrors>& rhs) : Aws::Client::AWSError<GreengrassErrors>(rhs) {}
GreengrassError(Aws::Client::AWSError<GreengrassErrors>&& rhs) : Aws::Client::AWSError<GreengrassErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace GreengrassErrorMapper
{
AWS_GREENGRASS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace Greengrass
{
class AWS_GREENGRASS_API GreengrassRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~GreengrassRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-06-07"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_GREENGRASS_EXPORTS
#define AWS_GREENGRASS_API __declspec(dllexport)
#else
#define AWS_GREENGRASS_API __declspec(dllimport)
#endif /* AWS_GREENGRASS_EXPORTS */
#else
#define AWS_GREENGRASS_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_GREENGRASS_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API AssociateRoleToGroupRequest : public GreengrassRequest
{
public:
AssociateRoleToGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "AssociateRoleToGroup"; }
Aws::String SerializePayload() const override;
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline AssociateRoleToGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline AssociateRoleToGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline AssociateRoleToGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline AssociateRoleToGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline AssociateRoleToGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* The ARN of the role you wish to associate with this group. The existence of the
* role is not validated.
*/
inline AssociateRoleToGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API AssociateRoleToGroupResult
{
public:
AssociateRoleToGroupResult();
AssociateRoleToGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateRoleToGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline const Aws::String& GetAssociatedAt() const{ return m_associatedAt; }
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline void SetAssociatedAt(const Aws::String& value) { m_associatedAt = value; }
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline void SetAssociatedAt(Aws::String&& value) { m_associatedAt = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline void SetAssociatedAt(const char* value) { m_associatedAt.assign(value); }
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline AssociateRoleToGroupResult& WithAssociatedAt(const Aws::String& value) { SetAssociatedAt(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline AssociateRoleToGroupResult& WithAssociatedAt(Aws::String&& value) { SetAssociatedAt(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the role ARN was associated with
* the group.
*/
inline AssociateRoleToGroupResult& WithAssociatedAt(const char* value) { SetAssociatedAt(value); return *this;}
private:
Aws::String m_associatedAt;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API AssociateServiceRoleToAccountRequest : public GreengrassRequest
{
public:
AssociateServiceRoleToAccountRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "AssociateServiceRoleToAccount"; }
Aws::String SerializePayload() const override;
/**
* The ARN of the service role you wish to associate with your account.
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* The ARN of the service role you wish to associate with your account.
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* The ARN of the service role you wish to associate with your account.
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* The ARN of the service role you wish to associate with your account.
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* The ARN of the service role you wish to associate with your account.
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* The ARN of the service role you wish to associate with your account.
*/
inline AssociateServiceRoleToAccountRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* The ARN of the service role you wish to associate with your account.
*/
inline AssociateServiceRoleToAccountRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* The ARN of the service role you wish to associate with your account.
*/
inline AssociateServiceRoleToAccountRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API AssociateServiceRoleToAccountResult
{
public:
AssociateServiceRoleToAccountResult();
AssociateServiceRoleToAccountResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateServiceRoleToAccountResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The time when the service role was associated with the account.
*/
inline const Aws::String& GetAssociatedAt() const{ return m_associatedAt; }
/**
* The time when the service role was associated with the account.
*/
inline void SetAssociatedAt(const Aws::String& value) { m_associatedAt = value; }
/**
* The time when the service role was associated with the account.
*/
inline void SetAssociatedAt(Aws::String&& value) { m_associatedAt = std::move(value); }
/**
* The time when the service role was associated with the account.
*/
inline void SetAssociatedAt(const char* value) { m_associatedAt.assign(value); }
/**
* The time when the service role was associated with the account.
*/
inline AssociateServiceRoleToAccountResult& WithAssociatedAt(const Aws::String& value) { SetAssociatedAt(value); return *this;}
/**
* The time when the service role was associated with the account.
*/
inline AssociateServiceRoleToAccountResult& WithAssociatedAt(Aws::String&& value) { SetAssociatedAt(std::move(value)); return *this;}
/**
* The time when the service role was associated with the account.
*/
inline AssociateServiceRoleToAccountResult& WithAssociatedAt(const char* value) { SetAssociatedAt(value); return *this;}
private:
Aws::String m_associatedAt;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* General error information.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/BadRequestException">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API BadRequestException
{
public:
BadRequestException();
BadRequestException(Aws::Utils::Json::JsonView jsonValue);
BadRequestException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Details about the error.
*/
inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
/**
* Details about the error.
*/
inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
/**
* Details about the error.
*/
inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
/**
* Details about the error.
*/
inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
/**
* Details about the error.
*/
inline BadRequestException& WithErrorDetails(const Aws::Vector<ErrorDetail>& value) { SetErrorDetails(value); return *this;}
/**
* Details about the error.
*/
inline BadRequestException& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
/**
* Details about the error.
*/
inline BadRequestException& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
/**
* Details about the error.
*/
inline BadRequestException& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
/**
* A message containing information about the error.
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* A message containing information about the error.
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* A message containing information about the error.
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* A message containing information about the error.
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* A message containing information about the error.
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::Vector<ErrorDetail> m_errorDetails;
bool m_errorDetailsHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,178 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a bulk deployment. You cannot start a new bulk deployment
* while another one is still running or in a non-terminal state.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/BulkDeployment">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API BulkDeployment
{
public:
BulkDeployment();
BulkDeployment(Aws::Utils::Json::JsonView jsonValue);
BulkDeployment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the bulk deployment.
*/
inline const Aws::String& GetBulkDeploymentArn() const{ return m_bulkDeploymentArn; }
/**
* The ARN of the bulk deployment.
*/
inline bool BulkDeploymentArnHasBeenSet() const { return m_bulkDeploymentArnHasBeenSet; }
/**
* The ARN of the bulk deployment.
*/
inline void SetBulkDeploymentArn(const Aws::String& value) { m_bulkDeploymentArnHasBeenSet = true; m_bulkDeploymentArn = value; }
/**
* The ARN of the bulk deployment.
*/
inline void SetBulkDeploymentArn(Aws::String&& value) { m_bulkDeploymentArnHasBeenSet = true; m_bulkDeploymentArn = std::move(value); }
/**
* The ARN of the bulk deployment.
*/
inline void SetBulkDeploymentArn(const char* value) { m_bulkDeploymentArnHasBeenSet = true; m_bulkDeploymentArn.assign(value); }
/**
* The ARN of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentArn(const Aws::String& value) { SetBulkDeploymentArn(value); return *this;}
/**
* The ARN of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentArn(Aws::String&& value) { SetBulkDeploymentArn(std::move(value)); return *this;}
/**
* The ARN of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentArn(const char* value) { SetBulkDeploymentArn(value); return *this;}
/**
* The ID of the bulk deployment.
*/
inline const Aws::String& GetBulkDeploymentId() const{ return m_bulkDeploymentId; }
/**
* The ID of the bulk deployment.
*/
inline bool BulkDeploymentIdHasBeenSet() const { return m_bulkDeploymentIdHasBeenSet; }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(const Aws::String& value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId = value; }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(Aws::String&& value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId = std::move(value); }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(const char* value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId.assign(value); }
/**
* The ID of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentId(const Aws::String& value) { SetBulkDeploymentId(value); return *this;}
/**
* The ID of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentId(Aws::String&& value) { SetBulkDeploymentId(std::move(value)); return *this;}
/**
* The ID of the bulk deployment.
*/
inline BulkDeployment& WithBulkDeploymentId(const char* value) { SetBulkDeploymentId(value); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeployment& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeployment& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeployment& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
private:
Aws::String m_bulkDeploymentArn;
bool m_bulkDeploymentArnHasBeenSet;
Aws::String m_bulkDeploymentId;
bool m_bulkDeploymentIdHasBeenSet;
Aws::String m_createdAt;
bool m_createdAtHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Relevant metrics on input records processed during bulk deployment.<p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/BulkDeploymentMetrics">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API BulkDeploymentMetrics
{
public:
BulkDeploymentMetrics();
BulkDeploymentMetrics(Aws::Utils::Json::JsonView jsonValue);
BulkDeploymentMetrics& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The total number of records that returned a non-retryable error. For example,
* this can occur if a group record from the input file uses an invalid format or
* specifies a nonexistent group version, or if the execution role doesn't grant
* permission to deploy a group or group version.
*/
inline int GetInvalidInputRecords() const{ return m_invalidInputRecords; }
/**
* The total number of records that returned a non-retryable error. For example,
* this can occur if a group record from the input file uses an invalid format or
* specifies a nonexistent group version, or if the execution role doesn't grant
* permission to deploy a group or group version.
*/
inline bool InvalidInputRecordsHasBeenSet() const { return m_invalidInputRecordsHasBeenSet; }
/**
* The total number of records that returned a non-retryable error. For example,
* this can occur if a group record from the input file uses an invalid format or
* specifies a nonexistent group version, or if the execution role doesn't grant
* permission to deploy a group or group version.
*/
inline void SetInvalidInputRecords(int value) { m_invalidInputRecordsHasBeenSet = true; m_invalidInputRecords = value; }
/**
* The total number of records that returned a non-retryable error. For example,
* this can occur if a group record from the input file uses an invalid format or
* specifies a nonexistent group version, or if the execution role doesn't grant
* permission to deploy a group or group version.
*/
inline BulkDeploymentMetrics& WithInvalidInputRecords(int value) { SetInvalidInputRecords(value); return *this;}
/**
* The total number of group records from the input file that have been processed
* so far, or attempted.
*/
inline int GetRecordsProcessed() const{ return m_recordsProcessed; }
/**
* The total number of group records from the input file that have been processed
* so far, or attempted.
*/
inline bool RecordsProcessedHasBeenSet() const { return m_recordsProcessedHasBeenSet; }
/**
* The total number of group records from the input file that have been processed
* so far, or attempted.
*/
inline void SetRecordsProcessed(int value) { m_recordsProcessedHasBeenSet = true; m_recordsProcessed = value; }
/**
* The total number of group records from the input file that have been processed
* so far, or attempted.
*/
inline BulkDeploymentMetrics& WithRecordsProcessed(int value) { SetRecordsProcessed(value); return *this;}
/**
* The total number of deployment attempts that returned a retryable error. For
* example, a retry is triggered if the attempt to deploy a group returns a
* throttling error. ''StartBulkDeployment'' retries a group deployment up to five
* times.
*/
inline int GetRetryAttempts() const{ return m_retryAttempts; }
/**
* The total number of deployment attempts that returned a retryable error. For
* example, a retry is triggered if the attempt to deploy a group returns a
* throttling error. ''StartBulkDeployment'' retries a group deployment up to five
* times.
*/
inline bool RetryAttemptsHasBeenSet() const { return m_retryAttemptsHasBeenSet; }
/**
* The total number of deployment attempts that returned a retryable error. For
* example, a retry is triggered if the attempt to deploy a group returns a
* throttling error. ''StartBulkDeployment'' retries a group deployment up to five
* times.
*/
inline void SetRetryAttempts(int value) { m_retryAttemptsHasBeenSet = true; m_retryAttempts = value; }
/**
* The total number of deployment attempts that returned a retryable error. For
* example, a retry is triggered if the attempt to deploy a group returns a
* throttling error. ''StartBulkDeployment'' retries a group deployment up to five
* times.
*/
inline BulkDeploymentMetrics& WithRetryAttempts(int value) { SetRetryAttempts(value); return *this;}
private:
int m_invalidInputRecords;
bool m_invalidInputRecordsHasBeenSet;
int m_recordsProcessed;
bool m_recordsProcessedHasBeenSet;
int m_retryAttempts;
bool m_retryAttemptsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,398 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/DeploymentType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about an individual group deployment in a bulk deployment
* operation.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/BulkDeploymentResult">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API BulkDeploymentResult
{
public:
BulkDeploymentResult();
BulkDeploymentResult(Aws::Utils::Json::JsonView jsonValue);
BulkDeploymentResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The time, in ISO format, when the deployment was created.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeploymentResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeploymentResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline BulkDeploymentResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* The ARN of the group deployment.
*/
inline const Aws::String& GetDeploymentArn() const{ return m_deploymentArn; }
/**
* The ARN of the group deployment.
*/
inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
/**
* The ARN of the group deployment.
*/
inline void SetDeploymentArn(const Aws::String& value) { m_deploymentArnHasBeenSet = true; m_deploymentArn = value; }
/**
* The ARN of the group deployment.
*/
inline void SetDeploymentArn(Aws::String&& value) { m_deploymentArnHasBeenSet = true; m_deploymentArn = std::move(value); }
/**
* The ARN of the group deployment.
*/
inline void SetDeploymentArn(const char* value) { m_deploymentArnHasBeenSet = true; m_deploymentArn.assign(value); }
/**
* The ARN of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentArn(const Aws::String& value) { SetDeploymentArn(value); return *this;}
/**
* The ARN of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentArn(Aws::String&& value) { SetDeploymentArn(std::move(value)); return *this;}
/**
* The ARN of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentArn(const char* value) { SetDeploymentArn(value); return *this;}
/**
* The ID of the group deployment.
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* The ID of the group deployment.
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* The ID of the group deployment.
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* The ID of the group deployment.
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* The ID of the group deployment.
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* The ID of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* The ID of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* The ID of the group deployment.
*/
inline BulkDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline const Aws::String& GetDeploymentStatus() const{ return m_deploymentStatus; }
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; }
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline void SetDeploymentStatus(const Aws::String& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = value; }
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline void SetDeploymentStatus(Aws::String&& value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus = std::move(value); }
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline void SetDeploymentStatus(const char* value) { m_deploymentStatusHasBeenSet = true; m_deploymentStatus.assign(value); }
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline BulkDeploymentResult& WithDeploymentStatus(const Aws::String& value) { SetDeploymentStatus(value); return *this;}
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline BulkDeploymentResult& WithDeploymentStatus(Aws::String&& value) { SetDeploymentStatus(std::move(value)); return *this;}
/**
* The current status of the group deployment: ''InProgress'', ''Building'',
* ''Success'', or ''Failure''.
*/
inline BulkDeploymentResult& WithDeploymentStatus(const char* value) { SetDeploymentStatus(value); return *this;}
/**
* The type of the deployment.
*/
inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
/**
* The type of the deployment.
*/
inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
/**
* The type of the deployment.
*/
inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
/**
* The type of the deployment.
*/
inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
/**
* The type of the deployment.
*/
inline BulkDeploymentResult& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
/**
* The type of the deployment.
*/
inline BulkDeploymentResult& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
/**
* Details about the error.
*/
inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
/**
* Details about the error.
*/
inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
/**
* Details about the error.
*/
inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
/**
* Details about the error.
*/
inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
/**
* Details about the error.
*/
inline BulkDeploymentResult& WithErrorDetails(const Aws::Vector<ErrorDetail>& value) { SetErrorDetails(value); return *this;}
/**
* Details about the error.
*/
inline BulkDeploymentResult& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
/**
* Details about the error.
*/
inline BulkDeploymentResult& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
/**
* Details about the error.
*/
inline BulkDeploymentResult& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
/**
* The error message for a failed deployment
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* The error message for a failed deployment
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* The error message for a failed deployment
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* The error message for a failed deployment
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* The error message for a failed deployment
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* The error message for a failed deployment
*/
inline BulkDeploymentResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* The error message for a failed deployment
*/
inline BulkDeploymentResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* The error message for a failed deployment
*/
inline BulkDeploymentResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
/**
* The ARN of the Greengrass group.
*/
inline const Aws::String& GetGroupArn() const{ return m_groupArn; }
/**
* The ARN of the Greengrass group.
*/
inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
/**
* The ARN of the Greengrass group.
*/
inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
/**
* The ARN of the Greengrass group.
*/
inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
/**
* The ARN of the Greengrass group.
*/
inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
/**
* The ARN of the Greengrass group.
*/
inline BulkDeploymentResult& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
/**
* The ARN of the Greengrass group.
*/
inline BulkDeploymentResult& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
/**
* The ARN of the Greengrass group.
*/
inline BulkDeploymentResult& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
private:
Aws::String m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_deploymentArn;
bool m_deploymentArnHasBeenSet;
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_deploymentStatus;
bool m_deploymentStatusHasBeenSet;
DeploymentType m_deploymentType;
bool m_deploymentTypeHasBeenSet;
Aws::Vector<ErrorDetail> m_errorDetails;
bool m_errorDetailsHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
Aws::String m_groupArn;
bool m_groupArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
enum class BulkDeploymentStatus
{
NOT_SET,
Initializing,
Running,
Completed,
Stopping,
Stopped,
Failed
};
namespace BulkDeploymentStatusMapper
{
AWS_GREENGRASS_API BulkDeploymentStatus GetBulkDeploymentStatusForName(const Aws::String& name);
AWS_GREENGRASS_API Aws::String GetNameForBulkDeploymentStatus(BulkDeploymentStatus value);
} // namespace BulkDeploymentStatusMapper
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,200 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a Greengrass core's connectivity.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ConnectivityInfo">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API ConnectivityInfo
{
public:
ConnectivityInfo();
ConnectivityInfo(Aws::Utils::Json::JsonView jsonValue);
ConnectivityInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline const Aws::String& GetHostAddress() const{ return m_hostAddress; }
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline bool HostAddressHasBeenSet() const { return m_hostAddressHasBeenSet; }
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline void SetHostAddress(const Aws::String& value) { m_hostAddressHasBeenSet = true; m_hostAddress = value; }
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline void SetHostAddress(Aws::String&& value) { m_hostAddressHasBeenSet = true; m_hostAddress = std::move(value); }
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline void SetHostAddress(const char* value) { m_hostAddressHasBeenSet = true; m_hostAddress.assign(value); }
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline ConnectivityInfo& WithHostAddress(const Aws::String& value) { SetHostAddress(value); return *this;}
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline ConnectivityInfo& WithHostAddress(Aws::String&& value) { SetHostAddress(std::move(value)); return *this;}
/**
* The endpoint for the Greengrass core. Can be an IP address or DNS.
*/
inline ConnectivityInfo& WithHostAddress(const char* value) { SetHostAddress(value); return *this;}
/**
* The ID of the connectivity information.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the connectivity information.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the connectivity information.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the connectivity information.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the connectivity information.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the connectivity information.
*/
inline ConnectivityInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the connectivity information.
*/
inline ConnectivityInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the connectivity information.
*/
inline ConnectivityInfo& WithId(const char* value) { SetId(value); return *this;}
/**
* Metadata for this endpoint.
*/
inline const Aws::String& GetMetadata() const{ return m_metadata; }
/**
* Metadata for this endpoint.
*/
inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
/**
* Metadata for this endpoint.
*/
inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
/**
* Metadata for this endpoint.
*/
inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
/**
* Metadata for this endpoint.
*/
inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
/**
* Metadata for this endpoint.
*/
inline ConnectivityInfo& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
/**
* Metadata for this endpoint.
*/
inline ConnectivityInfo& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
/**
* Metadata for this endpoint.
*/
inline ConnectivityInfo& WithMetadata(const char* value) { SetMetadata(value); return *this;}
/**
* The port of the Greengrass core. Usually 8883.
*/
inline int GetPortNumber() const{ return m_portNumber; }
/**
* The port of the Greengrass core. Usually 8883.
*/
inline bool PortNumberHasBeenSet() const { return m_portNumberHasBeenSet; }
/**
* The port of the Greengrass core. Usually 8883.
*/
inline void SetPortNumber(int value) { m_portNumberHasBeenSet = true; m_portNumber = value; }
/**
* The port of the Greengrass core. Usually 8883.
*/
inline ConnectivityInfo& WithPortNumber(int value) { SetPortNumber(value); return *this;}
private:
Aws::String m_hostAddress;
bool m_hostAddressHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_metadata;
bool m_metadataHasBeenSet;
int m_portNumber;
bool m_portNumberHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,220 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a connector. Connectors run on the Greengrass core and contain
* built-in integration with local infrastructure, device protocols, AWS, and other
* cloud services.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Connector">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API Connector
{
public:
Connector();
Connector(Aws::Utils::Json::JsonView jsonValue);
Connector& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the connector.
*/
inline const Aws::String& GetConnectorArn() const{ return m_connectorArn; }
/**
* The ARN of the connector.
*/
inline bool ConnectorArnHasBeenSet() const { return m_connectorArnHasBeenSet; }
/**
* The ARN of the connector.
*/
inline void SetConnectorArn(const Aws::String& value) { m_connectorArnHasBeenSet = true; m_connectorArn = value; }
/**
* The ARN of the connector.
*/
inline void SetConnectorArn(Aws::String&& value) { m_connectorArnHasBeenSet = true; m_connectorArn = std::move(value); }
/**
* The ARN of the connector.
*/
inline void SetConnectorArn(const char* value) { m_connectorArnHasBeenSet = true; m_connectorArn.assign(value); }
/**
* The ARN of the connector.
*/
inline Connector& WithConnectorArn(const Aws::String& value) { SetConnectorArn(value); return *this;}
/**
* The ARN of the connector.
*/
inline Connector& WithConnectorArn(Aws::String&& value) { SetConnectorArn(std::move(value)); return *this;}
/**
* The ARN of the connector.
*/
inline Connector& WithConnectorArn(const char* value) { SetConnectorArn(value); return *this;}
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline Connector& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline Connector& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the connector. This value must be unique
* within the connector definition version. Max length is 128 characters with
* pattern [a-zA-Z0-9:_-]+.
*/
inline Connector& WithId(const char* value) { SetId(value); return *this;}
/**
* The parameters or configuration that the connector uses.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
/**
* The parameters or configuration that the connector uses.
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* The parameters or configuration that the connector uses.
*/
inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* The parameters or configuration that the connector uses.
*/
inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
/**
* The parameters or configuration that the connector uses.
*/
inline Connector& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
private:
Aws::String m_connectorArn;
bool m_connectorArnHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_parameters;
bool m_parametersHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Connector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about the connector definition version, which is a container for
* connectors.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ConnectorDefinitionVersion">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API ConnectorDefinitionVersion
{
public:
ConnectorDefinitionVersion();
ConnectorDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
ConnectorDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline const Aws::Vector<Connector>& GetConnectors() const{ return m_connectors; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline bool ConnectorsHasBeenSet() const { return m_connectorsHasBeenSet; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline void SetConnectors(const Aws::Vector<Connector>& value) { m_connectorsHasBeenSet = true; m_connectors = value; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline void SetConnectors(Aws::Vector<Connector>&& value) { m_connectorsHasBeenSet = true; m_connectors = std::move(value); }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline ConnectorDefinitionVersion& WithConnectors(const Aws::Vector<Connector>& value) { SetConnectors(value); return *this;}
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline ConnectorDefinitionVersion& WithConnectors(Aws::Vector<Connector>&& value) { SetConnectors(std::move(value)); return *this;}
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline ConnectorDefinitionVersion& AddConnectors(const Connector& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(value); return *this; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline ConnectorDefinitionVersion& AddConnectors(Connector&& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Connector> m_connectors;
bool m_connectorsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,216 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a core.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Core">AWS API
* Reference</a></p>
*/
class AWS_GREENGRASS_API Core
{
public:
Core();
Core(Aws::Utils::Json::JsonView jsonValue);
Core& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the certificate associated with the core.
*/
inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
/**
* The ARN of the certificate associated with the core.
*/
inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
/**
* The ARN of the certificate associated with the core.
*/
inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
/**
* The ARN of the certificate associated with the core.
*/
inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
/**
* The ARN of the certificate associated with the core.
*/
inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
/**
* The ARN of the certificate associated with the core.
*/
inline Core& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
/**
* The ARN of the certificate associated with the core.
*/
inline Core& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
/**
* The ARN of the certificate associated with the core.
*/
inline Core& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Core& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Core& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the core. This value must be unique within the
* core definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Core& WithId(const char* value) { SetId(value); return *this;}
/**
* If true, the core's local shadow is automatically synced with the cloud.
*/
inline bool GetSyncShadow() const{ return m_syncShadow; }
/**
* If true, the core's local shadow is automatically synced with the cloud.
*/
inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
/**
* If true, the core's local shadow is automatically synced with the cloud.
*/
inline void SetSyncShadow(bool value) { m_syncShadowHasBeenSet = true; m_syncShadow = value; }
/**
* If true, the core's local shadow is automatically synced with the cloud.
*/
inline Core& WithSyncShadow(bool value) { SetSyncShadow(value); return *this;}
/**
* The ARN of the thing which is the core.
*/
inline const Aws::String& GetThingArn() const{ return m_thingArn; }
/**
* The ARN of the thing which is the core.
*/
inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
/**
* The ARN of the thing which is the core.
*/
inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
/**
* The ARN of the thing which is the core.
*/
inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
/**
* The ARN of the thing which is the core.
*/
inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
/**
* The ARN of the thing which is the core.
*/
inline Core& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
/**
* The ARN of the thing which is the core.
*/
inline Core& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
/**
* The ARN of the thing which is the core.
*/
inline Core& WithThingArn(const char* value) { SetThingArn(value); return *this;}
private:
Aws::String m_certificateArn;
bool m_certificateArnHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
bool m_syncShadow;
bool m_syncShadowHasBeenSet;
Aws::String m_thingArn;
bool m_thingArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Core.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a core definition version.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CoreDefinitionVersion">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API CoreDefinitionVersion
{
public:
CoreDefinitionVersion();
CoreDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
CoreDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of cores in the core definition version.
*/
inline const Aws::Vector<Core>& GetCores() const{ return m_cores; }
/**
* A list of cores in the core definition version.
*/
inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(const Aws::Vector<Core>& value) { m_coresHasBeenSet = true; m_cores = value; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(Aws::Vector<Core>&& value) { m_coresHasBeenSet = true; m_cores = std::move(value); }
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& WithCores(const Aws::Vector<Core>& value) { SetCores(value); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& WithCores(Aws::Vector<Core>&& value) { SetCores(std::move(value)); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& AddCores(const Core& value) { m_coresHasBeenSet = true; m_cores.push_back(value); return *this; }
/**
* A list of cores in the core definition version.
*/
inline CoreDefinitionVersion& AddCores(Core&& value) { m_coresHasBeenSet = true; m_cores.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Core> m_cores;
bool m_coresHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/ConnectorDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateConnectorDefinitionRequest : public GreengrassRequest
{
public:
CreateConnectorDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateConnectorDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the connector definition.
*/
inline const ConnectorDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the connector definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the connector definition.
*/
inline void SetInitialVersion(const ConnectorDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the connector definition.
*/
inline void SetInitialVersion(ConnectorDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the connector definition.
*/
inline CreateConnectorDefinitionRequest& WithInitialVersion(const ConnectorDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the connector definition.
*/
inline CreateConnectorDefinitionRequest& WithInitialVersion(ConnectorDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the connector definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the connector definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the connector definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the connector definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the connector definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the connector definition.
*/
inline CreateConnectorDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the connector definition.
*/
inline CreateConnectorDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the connector definition.
*/
inline CreateConnectorDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateConnectorDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
ConnectorDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateConnectorDefinitionResult
{
public:
CreateConnectorDefinitionResult();
CreateConnectorDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConnectorDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateConnectorDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateConnectorDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateConnectorDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateConnectorDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateConnectorDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateConnectorDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateConnectorDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateConnectorDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateConnectorDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateConnectorDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateConnectorDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateConnectorDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateConnectorDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateConnectorDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateConnectorDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateConnectorDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Connector.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateConnectorDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateConnectorDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateConnectorDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the connector definition.
*/
inline const Aws::String& GetConnectorDefinitionId() const{ return m_connectorDefinitionId; }
/**
* The ID of the connector definition.
*/
inline bool ConnectorDefinitionIdHasBeenSet() const { return m_connectorDefinitionIdHasBeenSet; }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(const Aws::String& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = value; }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(Aws::String&& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = std::move(value); }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(const char* value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId.assign(value); }
/**
* The ID of the connector definition.
*/
inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(const Aws::String& value) { SetConnectorDefinitionId(value); return *this;}
/**
* The ID of the connector definition.
*/
inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(Aws::String&& value) { SetConnectorDefinitionId(std::move(value)); return *this;}
/**
* The ID of the connector definition.
*/
inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(const char* value) { SetConnectorDefinitionId(value); return *this;}
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline const Aws::Vector<Connector>& GetConnectors() const{ return m_connectors; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline bool ConnectorsHasBeenSet() const { return m_connectorsHasBeenSet; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline void SetConnectors(const Aws::Vector<Connector>& value) { m_connectorsHasBeenSet = true; m_connectors = value; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline void SetConnectors(Aws::Vector<Connector>&& value) { m_connectorsHasBeenSet = true; m_connectors = std::move(value); }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline CreateConnectorDefinitionVersionRequest& WithConnectors(const Aws::Vector<Connector>& value) { SetConnectors(value); return *this;}
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline CreateConnectorDefinitionVersionRequest& WithConnectors(Aws::Vector<Connector>&& value) { SetConnectors(std::move(value)); return *this;}
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline CreateConnectorDefinitionVersionRequest& AddConnectors(const Connector& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(value); return *this; }
/**
* A list of references to connectors in this version, with their corresponding
* configuration settings.
*/
inline CreateConnectorDefinitionVersionRequest& AddConnectors(Connector&& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_connectorDefinitionId;
bool m_connectorDefinitionIdHasBeenSet;
Aws::Vector<Connector> m_connectors;
bool m_connectorsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateConnectorDefinitionVersionResult
{
public:
CreateConnectorDefinitionVersionResult();
CreateConnectorDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConnectorDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateConnectorDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateConnectorDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateConnectorDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateConnectorDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateConnectorDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateConnectorDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateConnectorDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,237 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/CoreDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
* Information needed to create a core definition.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinitionRequest">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API CreateCoreDefinitionRequest : public GreengrassRequest
{
public:
CreateCoreDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateCoreDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the core definition.
*/
inline const CoreDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the core definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the core definition.
*/
inline void SetInitialVersion(const CoreDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the core definition.
*/
inline void SetInitialVersion(CoreDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the core definition.
*/
inline CreateCoreDefinitionRequest& WithInitialVersion(const CoreDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the core definition.
*/
inline CreateCoreDefinitionRequest& WithInitialVersion(CoreDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the core definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the core definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the core definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the core definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the core definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the core definition.
*/
inline CreateCoreDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the core definition.
*/
inline CreateCoreDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the core definition.
*/
inline CreateCoreDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateCoreDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
CoreDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateCoreDefinitionResult
{
public:
CreateCoreDefinitionResult();
CreateCoreDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateCoreDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateCoreDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateCoreDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateCoreDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateCoreDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateCoreDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateCoreDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateCoreDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateCoreDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateCoreDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateCoreDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateCoreDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateCoreDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateCoreDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateCoreDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateCoreDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateCoreDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Core.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateCoreDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateCoreDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateCoreDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateCoreDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the core definition.
*/
inline const Aws::String& GetCoreDefinitionId() const{ return m_coreDefinitionId; }
/**
* The ID of the core definition.
*/
inline bool CoreDefinitionIdHasBeenSet() const { return m_coreDefinitionIdHasBeenSet; }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(const Aws::String& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = value; }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(Aws::String&& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = std::move(value); }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(const char* value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId.assign(value); }
/**
* The ID of the core definition.
*/
inline CreateCoreDefinitionVersionRequest& WithCoreDefinitionId(const Aws::String& value) { SetCoreDefinitionId(value); return *this;}
/**
* The ID of the core definition.
*/
inline CreateCoreDefinitionVersionRequest& WithCoreDefinitionId(Aws::String&& value) { SetCoreDefinitionId(std::move(value)); return *this;}
/**
* The ID of the core definition.
*/
inline CreateCoreDefinitionVersionRequest& WithCoreDefinitionId(const char* value) { SetCoreDefinitionId(value); return *this;}
/**
* A list of cores in the core definition version.
*/
inline const Aws::Vector<Core>& GetCores() const{ return m_cores; }
/**
* A list of cores in the core definition version.
*/
inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(const Aws::Vector<Core>& value) { m_coresHasBeenSet = true; m_cores = value; }
/**
* A list of cores in the core definition version.
*/
inline void SetCores(Aws::Vector<Core>&& value) { m_coresHasBeenSet = true; m_cores = std::move(value); }
/**
* A list of cores in the core definition version.
*/
inline CreateCoreDefinitionVersionRequest& WithCores(const Aws::Vector<Core>& value) { SetCores(value); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CreateCoreDefinitionVersionRequest& WithCores(Aws::Vector<Core>&& value) { SetCores(std::move(value)); return *this;}
/**
* A list of cores in the core definition version.
*/
inline CreateCoreDefinitionVersionRequest& AddCores(const Core& value) { m_coresHasBeenSet = true; m_cores.push_back(value); return *this; }
/**
* A list of cores in the core definition version.
*/
inline CreateCoreDefinitionVersionRequest& AddCores(Core&& value) { m_coresHasBeenSet = true; m_cores.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_coreDefinitionId;
bool m_coreDefinitionIdHasBeenSet;
Aws::Vector<Core> m_cores;
bool m_coresHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateCoreDefinitionVersionResult
{
public:
CreateCoreDefinitionVersionResult();
CreateCoreDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateCoreDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateCoreDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateCoreDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateCoreDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateCoreDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateCoreDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateCoreDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateCoreDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateCoreDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateCoreDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateCoreDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateCoreDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateCoreDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,258 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/DeploymentType.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateDeploymentRequest : public GreengrassRequest
{
public:
CreateDeploymentRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeploymentRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeploymentRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeploymentRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline CreateDeploymentRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline CreateDeploymentRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* The ID of the deployment if you wish to redeploy a previous deployment.
*/
inline CreateDeploymentRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline CreateDeploymentRequest& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
/**
* The type of deployment. When used for ''CreateDeployment'', only
* ''NewDeployment'' and ''Redeployment'' are valid.
*/
inline CreateDeploymentRequest& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline CreateDeploymentRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateDeploymentRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateDeploymentRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
/**
* The ID of the group version to be deployed.
*/
inline const Aws::String& GetGroupVersionId() const{ return m_groupVersionId; }
/**
* The ID of the group version to be deployed.
*/
inline bool GroupVersionIdHasBeenSet() const { return m_groupVersionIdHasBeenSet; }
/**
* The ID of the group version to be deployed.
*/
inline void SetGroupVersionId(const Aws::String& value) { m_groupVersionIdHasBeenSet = true; m_groupVersionId = value; }
/**
* The ID of the group version to be deployed.
*/
inline void SetGroupVersionId(Aws::String&& value) { m_groupVersionIdHasBeenSet = true; m_groupVersionId = std::move(value); }
/**
* The ID of the group version to be deployed.
*/
inline void SetGroupVersionId(const char* value) { m_groupVersionIdHasBeenSet = true; m_groupVersionId.assign(value); }
/**
* The ID of the group version to be deployed.
*/
inline CreateDeploymentRequest& WithGroupVersionId(const Aws::String& value) { SetGroupVersionId(value); return *this;}
/**
* The ID of the group version to be deployed.
*/
inline CreateDeploymentRequest& WithGroupVersionId(Aws::String&& value) { SetGroupVersionId(std::move(value)); return *this;}
/**
* The ID of the group version to be deployed.
*/
inline CreateDeploymentRequest& WithGroupVersionId(const char* value) { SetGroupVersionId(value); return *this;}
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
DeploymentType m_deploymentType;
bool m_deploymentTypeHasBeenSet;
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
Aws::String m_groupVersionId;
bool m_groupVersionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateDeploymentResult
{
public:
CreateDeploymentResult();
CreateDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the deployment.
*/
inline const Aws::String& GetDeploymentArn() const{ return m_deploymentArn; }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(const Aws::String& value) { m_deploymentArn = value; }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(Aws::String&& value) { m_deploymentArn = std::move(value); }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(const char* value) { m_deploymentArn.assign(value); }
/**
* The ARN of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentArn(const Aws::String& value) { SetDeploymentArn(value); return *this;}
/**
* The ARN of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentArn(Aws::String&& value) { SetDeploymentArn(std::move(value)); return *this;}
/**
* The ARN of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentArn(const char* value) { SetDeploymentArn(value); return *this;}
/**
* The ID of the deployment.
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentId = value; }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentId = std::move(value); }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); }
/**
* The ID of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* The ID of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* The ID of the deployment.
*/
inline CreateDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
private:
Aws::String m_deploymentArn;
Aws::String m_deploymentId;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/DeviceDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateDeviceDefinitionRequest : public GreengrassRequest
{
public:
CreateDeviceDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the device definition.
*/
inline const DeviceDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the device definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the device definition.
*/
inline void SetInitialVersion(const DeviceDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the device definition.
*/
inline void SetInitialVersion(DeviceDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the device definition.
*/
inline CreateDeviceDefinitionRequest& WithInitialVersion(const DeviceDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the device definition.
*/
inline CreateDeviceDefinitionRequest& WithInitialVersion(DeviceDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the device definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the device definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the device definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the device definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the device definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the device definition.
*/
inline CreateDeviceDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the device definition.
*/
inline CreateDeviceDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the device definition.
*/
inline CreateDeviceDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateDeviceDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
DeviceDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateDeviceDefinitionResult
{
public:
CreateDeviceDefinitionResult();
CreateDeviceDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeviceDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateDeviceDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateDeviceDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateDeviceDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateDeviceDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateDeviceDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateDeviceDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateDeviceDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateDeviceDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateDeviceDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateDeviceDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateDeviceDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateDeviceDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateDeviceDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateDeviceDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateDeviceDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateDeviceDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Device.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateDeviceDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateDeviceDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateDeviceDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateDeviceDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the device definition.
*/
inline const Aws::String& GetDeviceDefinitionId() const{ return m_deviceDefinitionId; }
/**
* The ID of the device definition.
*/
inline bool DeviceDefinitionIdHasBeenSet() const { return m_deviceDefinitionIdHasBeenSet; }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(const Aws::String& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = value; }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(Aws::String&& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = std::move(value); }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(const char* value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId.assign(value); }
/**
* The ID of the device definition.
*/
inline CreateDeviceDefinitionVersionRequest& WithDeviceDefinitionId(const Aws::String& value) { SetDeviceDefinitionId(value); return *this;}
/**
* The ID of the device definition.
*/
inline CreateDeviceDefinitionVersionRequest& WithDeviceDefinitionId(Aws::String&& value) { SetDeviceDefinitionId(std::move(value)); return *this;}
/**
* The ID of the device definition.
*/
inline CreateDeviceDefinitionVersionRequest& WithDeviceDefinitionId(const char* value) { SetDeviceDefinitionId(value); return *this;}
/**
* A list of devices in the definition version.
*/
inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
/**
* A list of devices in the definition version.
*/
inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
/**
* A list of devices in the definition version.
*/
inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
/**
* A list of devices in the definition version.
*/
inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
/**
* A list of devices in the definition version.
*/
inline CreateDeviceDefinitionVersionRequest& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
/**
* A list of devices in the definition version.
*/
inline CreateDeviceDefinitionVersionRequest& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
/**
* A list of devices in the definition version.
*/
inline CreateDeviceDefinitionVersionRequest& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
/**
* A list of devices in the definition version.
*/
inline CreateDeviceDefinitionVersionRequest& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_deviceDefinitionId;
bool m_deviceDefinitionIdHasBeenSet;
Aws::Vector<Device> m_devices;
bool m_devicesHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateDeviceDefinitionVersionResult
{
public:
CreateDeviceDefinitionVersionResult();
CreateDeviceDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeviceDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateDeviceDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateDeviceDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateDeviceDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateDeviceDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateDeviceDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateDeviceDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateDeviceDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/FunctionDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateFunctionDefinitionRequest : public GreengrassRequest
{
public:
CreateFunctionDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the function definition.
*/
inline const FunctionDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the function definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the function definition.
*/
inline void SetInitialVersion(const FunctionDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the function definition.
*/
inline void SetInitialVersion(FunctionDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the function definition.
*/
inline CreateFunctionDefinitionRequest& WithInitialVersion(const FunctionDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the function definition.
*/
inline CreateFunctionDefinitionRequest& WithInitialVersion(FunctionDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the function definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the function definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the function definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the function definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the function definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the function definition.
*/
inline CreateFunctionDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the function definition.
*/
inline CreateFunctionDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the function definition.
*/
inline CreateFunctionDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateFunctionDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
FunctionDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateFunctionDefinitionResult
{
public:
CreateFunctionDefinitionResult();
CreateFunctionDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateFunctionDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateFunctionDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateFunctionDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateFunctionDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateFunctionDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateFunctionDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateFunctionDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateFunctionDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateFunctionDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateFunctionDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateFunctionDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateFunctionDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateFunctionDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateFunctionDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateFunctionDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateFunctionDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateFunctionDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,220 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/FunctionDefaultConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Function.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
* Information needed to create a function definition version.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinitionVersionRequest">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API CreateFunctionDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateFunctionDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateFunctionDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateFunctionDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline const FunctionDefaultConfig& GetDefaultConfig() const{ return m_defaultConfig; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline void SetDefaultConfig(const FunctionDefaultConfig& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = value; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline void SetDefaultConfig(FunctionDefaultConfig&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::move(value); }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline CreateFunctionDefinitionVersionRequest& WithDefaultConfig(const FunctionDefaultConfig& value) { SetDefaultConfig(value); return *this;}
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline CreateFunctionDefinitionVersionRequest& WithDefaultConfig(FunctionDefaultConfig&& value) { SetDefaultConfig(std::move(value)); return *this;}
/**
* The ID of the Lambda function definition.
*/
inline const Aws::String& GetFunctionDefinitionId() const{ return m_functionDefinitionId; }
/**
* The ID of the Lambda function definition.
*/
inline bool FunctionDefinitionIdHasBeenSet() const { return m_functionDefinitionIdHasBeenSet; }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(const Aws::String& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = value; }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(Aws::String&& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = std::move(value); }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(const char* value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId.assign(value); }
/**
* The ID of the Lambda function definition.
*/
inline CreateFunctionDefinitionVersionRequest& WithFunctionDefinitionId(const Aws::String& value) { SetFunctionDefinitionId(value); return *this;}
/**
* The ID of the Lambda function definition.
*/
inline CreateFunctionDefinitionVersionRequest& WithFunctionDefinitionId(Aws::String&& value) { SetFunctionDefinitionId(std::move(value)); return *this;}
/**
* The ID of the Lambda function definition.
*/
inline CreateFunctionDefinitionVersionRequest& WithFunctionDefinitionId(const char* value) { SetFunctionDefinitionId(value); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline const Aws::Vector<Function>& GetFunctions() const{ return m_functions; }
/**
* A list of Lambda functions in this function definition version.
*/
inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
/**
* A list of Lambda functions in this function definition version.
*/
inline void SetFunctions(const Aws::Vector<Function>& value) { m_functionsHasBeenSet = true; m_functions = value; }
/**
* A list of Lambda functions in this function definition version.
*/
inline void SetFunctions(Aws::Vector<Function>&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); }
/**
* A list of Lambda functions in this function definition version.
*/
inline CreateFunctionDefinitionVersionRequest& WithFunctions(const Aws::Vector<Function>& value) { SetFunctions(value); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline CreateFunctionDefinitionVersionRequest& WithFunctions(Aws::Vector<Function>&& value) { SetFunctions(std::move(value)); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline CreateFunctionDefinitionVersionRequest& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; }
/**
* A list of Lambda functions in this function definition version.
*/
inline CreateFunctionDefinitionVersionRequest& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
FunctionDefaultConfig m_defaultConfig;
bool m_defaultConfigHasBeenSet;
Aws::String m_functionDefinitionId;
bool m_functionDefinitionIdHasBeenSet;
Aws::Vector<Function> m_functions;
bool m_functionsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateFunctionDefinitionVersionResult
{
public:
CreateFunctionDefinitionVersionResult();
CreateFunctionDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateFunctionDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateFunctionDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateFunctionDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateFunctionDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateFunctionDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateFunctionDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateFunctionDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateFunctionDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateGroupCertificateAuthorityRequest : public GreengrassRequest
{
public:
CreateGroupCertificateAuthorityRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateGroupCertificateAuthority"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupCertificateAuthorityRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupCertificateAuthorityRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupCertificateAuthorityRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline CreateGroupCertificateAuthorityRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateGroupCertificateAuthorityRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateGroupCertificateAuthorityRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateGroupCertificateAuthorityResult
{
public:
CreateGroupCertificateAuthorityResult();
CreateGroupCertificateAuthorityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGroupCertificateAuthorityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the group certificate authority.
*/
inline const Aws::String& GetGroupCertificateAuthorityArn() const{ return m_groupCertificateAuthorityArn; }
/**
* The ARN of the group certificate authority.
*/
inline void SetGroupCertificateAuthorityArn(const Aws::String& value) { m_groupCertificateAuthorityArn = value; }
/**
* The ARN of the group certificate authority.
*/
inline void SetGroupCertificateAuthorityArn(Aws::String&& value) { m_groupCertificateAuthorityArn = std::move(value); }
/**
* The ARN of the group certificate authority.
*/
inline void SetGroupCertificateAuthorityArn(const char* value) { m_groupCertificateAuthorityArn.assign(value); }
/**
* The ARN of the group certificate authority.
*/
inline CreateGroupCertificateAuthorityResult& WithGroupCertificateAuthorityArn(const Aws::String& value) { SetGroupCertificateAuthorityArn(value); return *this;}
/**
* The ARN of the group certificate authority.
*/
inline CreateGroupCertificateAuthorityResult& WithGroupCertificateAuthorityArn(Aws::String&& value) { SetGroupCertificateAuthorityArn(std::move(value)); return *this;}
/**
* The ARN of the group certificate authority.
*/
inline CreateGroupCertificateAuthorityResult& WithGroupCertificateAuthorityArn(const char* value) { SetGroupCertificateAuthorityArn(value); return *this;}
private:
Aws::String m_groupCertificateAuthorityArn;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/GroupVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateGroupRequest : public GreengrassRequest
{
public:
CreateGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the group.
*/
inline const GroupVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the group.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the group.
*/
inline void SetInitialVersion(const GroupVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the group.
*/
inline void SetInitialVersion(GroupVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the group.
*/
inline CreateGroupRequest& WithInitialVersion(const GroupVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the group.
*/
inline CreateGroupRequest& WithInitialVersion(GroupVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the group.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the group.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the group.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the group.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the group.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the group.
*/
inline CreateGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the group.
*/
inline CreateGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the group.
*/
inline CreateGroupRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
GroupVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateGroupResult
{
public:
CreateGroupResult();
CreateGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateGroupResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateGroupResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateGroupResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateGroupResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateGroupResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateGroupResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateGroupResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateGroupResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateGroupResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateGroupResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateGroupResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,437 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateGroupVersionRequest : public GreengrassRequest
{
public:
CreateGroupVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateGroupVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateGroupVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ARN of the connector definition version for this group.
*/
inline const Aws::String& GetConnectorDefinitionVersionArn() const{ return m_connectorDefinitionVersionArn; }
/**
* The ARN of the connector definition version for this group.
*/
inline bool ConnectorDefinitionVersionArnHasBeenSet() const { return m_connectorDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the connector definition version for this group.
*/
inline void SetConnectorDefinitionVersionArn(const Aws::String& value) { m_connectorDefinitionVersionArnHasBeenSet = true; m_connectorDefinitionVersionArn = value; }
/**
* The ARN of the connector definition version for this group.
*/
inline void SetConnectorDefinitionVersionArn(Aws::String&& value) { m_connectorDefinitionVersionArnHasBeenSet = true; m_connectorDefinitionVersionArn = std::move(value); }
/**
* The ARN of the connector definition version for this group.
*/
inline void SetConnectorDefinitionVersionArn(const char* value) { m_connectorDefinitionVersionArnHasBeenSet = true; m_connectorDefinitionVersionArn.assign(value); }
/**
* The ARN of the connector definition version for this group.
*/
inline CreateGroupVersionRequest& WithConnectorDefinitionVersionArn(const Aws::String& value) { SetConnectorDefinitionVersionArn(value); return *this;}
/**
* The ARN of the connector definition version for this group.
*/
inline CreateGroupVersionRequest& WithConnectorDefinitionVersionArn(Aws::String&& value) { SetConnectorDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the connector definition version for this group.
*/
inline CreateGroupVersionRequest& WithConnectorDefinitionVersionArn(const char* value) { SetConnectorDefinitionVersionArn(value); return *this;}
/**
* The ARN of the core definition version for this group.
*/
inline const Aws::String& GetCoreDefinitionVersionArn() const{ return m_coreDefinitionVersionArn; }
/**
* The ARN of the core definition version for this group.
*/
inline bool CoreDefinitionVersionArnHasBeenSet() const { return m_coreDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the core definition version for this group.
*/
inline void SetCoreDefinitionVersionArn(const Aws::String& value) { m_coreDefinitionVersionArnHasBeenSet = true; m_coreDefinitionVersionArn = value; }
/**
* The ARN of the core definition version for this group.
*/
inline void SetCoreDefinitionVersionArn(Aws::String&& value) { m_coreDefinitionVersionArnHasBeenSet = true; m_coreDefinitionVersionArn = std::move(value); }
/**
* The ARN of the core definition version for this group.
*/
inline void SetCoreDefinitionVersionArn(const char* value) { m_coreDefinitionVersionArnHasBeenSet = true; m_coreDefinitionVersionArn.assign(value); }
/**
* The ARN of the core definition version for this group.
*/
inline CreateGroupVersionRequest& WithCoreDefinitionVersionArn(const Aws::String& value) { SetCoreDefinitionVersionArn(value); return *this;}
/**
* The ARN of the core definition version for this group.
*/
inline CreateGroupVersionRequest& WithCoreDefinitionVersionArn(Aws::String&& value) { SetCoreDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the core definition version for this group.
*/
inline CreateGroupVersionRequest& WithCoreDefinitionVersionArn(const char* value) { SetCoreDefinitionVersionArn(value); return *this;}
/**
* The ARN of the device definition version for this group.
*/
inline const Aws::String& GetDeviceDefinitionVersionArn() const{ return m_deviceDefinitionVersionArn; }
/**
* The ARN of the device definition version for this group.
*/
inline bool DeviceDefinitionVersionArnHasBeenSet() const { return m_deviceDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the device definition version for this group.
*/
inline void SetDeviceDefinitionVersionArn(const Aws::String& value) { m_deviceDefinitionVersionArnHasBeenSet = true; m_deviceDefinitionVersionArn = value; }
/**
* The ARN of the device definition version for this group.
*/
inline void SetDeviceDefinitionVersionArn(Aws::String&& value) { m_deviceDefinitionVersionArnHasBeenSet = true; m_deviceDefinitionVersionArn = std::move(value); }
/**
* The ARN of the device definition version for this group.
*/
inline void SetDeviceDefinitionVersionArn(const char* value) { m_deviceDefinitionVersionArnHasBeenSet = true; m_deviceDefinitionVersionArn.assign(value); }
/**
* The ARN of the device definition version for this group.
*/
inline CreateGroupVersionRequest& WithDeviceDefinitionVersionArn(const Aws::String& value) { SetDeviceDefinitionVersionArn(value); return *this;}
/**
* The ARN of the device definition version for this group.
*/
inline CreateGroupVersionRequest& WithDeviceDefinitionVersionArn(Aws::String&& value) { SetDeviceDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the device definition version for this group.
*/
inline CreateGroupVersionRequest& WithDeviceDefinitionVersionArn(const char* value) { SetDeviceDefinitionVersionArn(value); return *this;}
/**
* The ARN of the function definition version for this group.
*/
inline const Aws::String& GetFunctionDefinitionVersionArn() const{ return m_functionDefinitionVersionArn; }
/**
* The ARN of the function definition version for this group.
*/
inline bool FunctionDefinitionVersionArnHasBeenSet() const { return m_functionDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the function definition version for this group.
*/
inline void SetFunctionDefinitionVersionArn(const Aws::String& value) { m_functionDefinitionVersionArnHasBeenSet = true; m_functionDefinitionVersionArn = value; }
/**
* The ARN of the function definition version for this group.
*/
inline void SetFunctionDefinitionVersionArn(Aws::String&& value) { m_functionDefinitionVersionArnHasBeenSet = true; m_functionDefinitionVersionArn = std::move(value); }
/**
* The ARN of the function definition version for this group.
*/
inline void SetFunctionDefinitionVersionArn(const char* value) { m_functionDefinitionVersionArnHasBeenSet = true; m_functionDefinitionVersionArn.assign(value); }
/**
* The ARN of the function definition version for this group.
*/
inline CreateGroupVersionRequest& WithFunctionDefinitionVersionArn(const Aws::String& value) { SetFunctionDefinitionVersionArn(value); return *this;}
/**
* The ARN of the function definition version for this group.
*/
inline CreateGroupVersionRequest& WithFunctionDefinitionVersionArn(Aws::String&& value) { SetFunctionDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the function definition version for this group.
*/
inline CreateGroupVersionRequest& WithFunctionDefinitionVersionArn(const char* value) { SetFunctionDefinitionVersionArn(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline CreateGroupVersionRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateGroupVersionRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline CreateGroupVersionRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
/**
* The ARN of the logger definition version for this group.
*/
inline const Aws::String& GetLoggerDefinitionVersionArn() const{ return m_loggerDefinitionVersionArn; }
/**
* The ARN of the logger definition version for this group.
*/
inline bool LoggerDefinitionVersionArnHasBeenSet() const { return m_loggerDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the logger definition version for this group.
*/
inline void SetLoggerDefinitionVersionArn(const Aws::String& value) { m_loggerDefinitionVersionArnHasBeenSet = true; m_loggerDefinitionVersionArn = value; }
/**
* The ARN of the logger definition version for this group.
*/
inline void SetLoggerDefinitionVersionArn(Aws::String&& value) { m_loggerDefinitionVersionArnHasBeenSet = true; m_loggerDefinitionVersionArn = std::move(value); }
/**
* The ARN of the logger definition version for this group.
*/
inline void SetLoggerDefinitionVersionArn(const char* value) { m_loggerDefinitionVersionArnHasBeenSet = true; m_loggerDefinitionVersionArn.assign(value); }
/**
* The ARN of the logger definition version for this group.
*/
inline CreateGroupVersionRequest& WithLoggerDefinitionVersionArn(const Aws::String& value) { SetLoggerDefinitionVersionArn(value); return *this;}
/**
* The ARN of the logger definition version for this group.
*/
inline CreateGroupVersionRequest& WithLoggerDefinitionVersionArn(Aws::String&& value) { SetLoggerDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the logger definition version for this group.
*/
inline CreateGroupVersionRequest& WithLoggerDefinitionVersionArn(const char* value) { SetLoggerDefinitionVersionArn(value); return *this;}
/**
* The ARN of the resource definition version for this group.
*/
inline const Aws::String& GetResourceDefinitionVersionArn() const{ return m_resourceDefinitionVersionArn; }
/**
* The ARN of the resource definition version for this group.
*/
inline bool ResourceDefinitionVersionArnHasBeenSet() const { return m_resourceDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the resource definition version for this group.
*/
inline void SetResourceDefinitionVersionArn(const Aws::String& value) { m_resourceDefinitionVersionArnHasBeenSet = true; m_resourceDefinitionVersionArn = value; }
/**
* The ARN of the resource definition version for this group.
*/
inline void SetResourceDefinitionVersionArn(Aws::String&& value) { m_resourceDefinitionVersionArnHasBeenSet = true; m_resourceDefinitionVersionArn = std::move(value); }
/**
* The ARN of the resource definition version for this group.
*/
inline void SetResourceDefinitionVersionArn(const char* value) { m_resourceDefinitionVersionArnHasBeenSet = true; m_resourceDefinitionVersionArn.assign(value); }
/**
* The ARN of the resource definition version for this group.
*/
inline CreateGroupVersionRequest& WithResourceDefinitionVersionArn(const Aws::String& value) { SetResourceDefinitionVersionArn(value); return *this;}
/**
* The ARN of the resource definition version for this group.
*/
inline CreateGroupVersionRequest& WithResourceDefinitionVersionArn(Aws::String&& value) { SetResourceDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the resource definition version for this group.
*/
inline CreateGroupVersionRequest& WithResourceDefinitionVersionArn(const char* value) { SetResourceDefinitionVersionArn(value); return *this;}
/**
* The ARN of the subscription definition version for this group.
*/
inline const Aws::String& GetSubscriptionDefinitionVersionArn() const{ return m_subscriptionDefinitionVersionArn; }
/**
* The ARN of the subscription definition version for this group.
*/
inline bool SubscriptionDefinitionVersionArnHasBeenSet() const { return m_subscriptionDefinitionVersionArnHasBeenSet; }
/**
* The ARN of the subscription definition version for this group.
*/
inline void SetSubscriptionDefinitionVersionArn(const Aws::String& value) { m_subscriptionDefinitionVersionArnHasBeenSet = true; m_subscriptionDefinitionVersionArn = value; }
/**
* The ARN of the subscription definition version for this group.
*/
inline void SetSubscriptionDefinitionVersionArn(Aws::String&& value) { m_subscriptionDefinitionVersionArnHasBeenSet = true; m_subscriptionDefinitionVersionArn = std::move(value); }
/**
* The ARN of the subscription definition version for this group.
*/
inline void SetSubscriptionDefinitionVersionArn(const char* value) { m_subscriptionDefinitionVersionArnHasBeenSet = true; m_subscriptionDefinitionVersionArn.assign(value); }
/**
* The ARN of the subscription definition version for this group.
*/
inline CreateGroupVersionRequest& WithSubscriptionDefinitionVersionArn(const Aws::String& value) { SetSubscriptionDefinitionVersionArn(value); return *this;}
/**
* The ARN of the subscription definition version for this group.
*/
inline CreateGroupVersionRequest& WithSubscriptionDefinitionVersionArn(Aws::String&& value) { SetSubscriptionDefinitionVersionArn(std::move(value)); return *this;}
/**
* The ARN of the subscription definition version for this group.
*/
inline CreateGroupVersionRequest& WithSubscriptionDefinitionVersionArn(const char* value) { SetSubscriptionDefinitionVersionArn(value); return *this;}
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_connectorDefinitionVersionArn;
bool m_connectorDefinitionVersionArnHasBeenSet;
Aws::String m_coreDefinitionVersionArn;
bool m_coreDefinitionVersionArnHasBeenSet;
Aws::String m_deviceDefinitionVersionArn;
bool m_deviceDefinitionVersionArnHasBeenSet;
Aws::String m_functionDefinitionVersionArn;
bool m_functionDefinitionVersionArnHasBeenSet;
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
Aws::String m_loggerDefinitionVersionArn;
bool m_loggerDefinitionVersionArnHasBeenSet;
Aws::String m_resourceDefinitionVersionArn;
bool m_resourceDefinitionVersionArnHasBeenSet;
Aws::String m_subscriptionDefinitionVersionArn;
bool m_subscriptionDefinitionVersionArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateGroupVersionResult
{
public:
CreateGroupVersionResult();
CreateGroupVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateGroupVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateGroupVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateGroupVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateGroupVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateGroupVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateGroupVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateGroupVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateGroupVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateGroupVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateGroupVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateGroupVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateGroupVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateGroupVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/LoggerDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateLoggerDefinitionRequest : public GreengrassRequest
{
public:
CreateLoggerDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateLoggerDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the logger definition.
*/
inline const LoggerDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the logger definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the logger definition.
*/
inline void SetInitialVersion(const LoggerDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the logger definition.
*/
inline void SetInitialVersion(LoggerDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the logger definition.
*/
inline CreateLoggerDefinitionRequest& WithInitialVersion(const LoggerDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the logger definition.
*/
inline CreateLoggerDefinitionRequest& WithInitialVersion(LoggerDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the logger definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the logger definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the logger definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the logger definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the logger definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the logger definition.
*/
inline CreateLoggerDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the logger definition.
*/
inline CreateLoggerDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the logger definition.
*/
inline CreateLoggerDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateLoggerDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
LoggerDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateLoggerDefinitionResult
{
public:
CreateLoggerDefinitionResult();
CreateLoggerDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLoggerDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateLoggerDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateLoggerDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateLoggerDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateLoggerDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateLoggerDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateLoggerDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateLoggerDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateLoggerDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateLoggerDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateLoggerDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateLoggerDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateLoggerDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateLoggerDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateLoggerDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateLoggerDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateLoggerDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Logger.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateLoggerDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateLoggerDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateLoggerDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateLoggerDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the logger definition.
*/
inline const Aws::String& GetLoggerDefinitionId() const{ return m_loggerDefinitionId; }
/**
* The ID of the logger definition.
*/
inline bool LoggerDefinitionIdHasBeenSet() const { return m_loggerDefinitionIdHasBeenSet; }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(const Aws::String& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = value; }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(Aws::String&& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = std::move(value); }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(const char* value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId.assign(value); }
/**
* The ID of the logger definition.
*/
inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(const Aws::String& value) { SetLoggerDefinitionId(value); return *this;}
/**
* The ID of the logger definition.
*/
inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(Aws::String&& value) { SetLoggerDefinitionId(std::move(value)); return *this;}
/**
* The ID of the logger definition.
*/
inline CreateLoggerDefinitionVersionRequest& WithLoggerDefinitionId(const char* value) { SetLoggerDefinitionId(value); return *this;}
/**
* A list of loggers.
*/
inline const Aws::Vector<Logger>& GetLoggers() const{ return m_loggers; }
/**
* A list of loggers.
*/
inline bool LoggersHasBeenSet() const { return m_loggersHasBeenSet; }
/**
* A list of loggers.
*/
inline void SetLoggers(const Aws::Vector<Logger>& value) { m_loggersHasBeenSet = true; m_loggers = value; }
/**
* A list of loggers.
*/
inline void SetLoggers(Aws::Vector<Logger>&& value) { m_loggersHasBeenSet = true; m_loggers = std::move(value); }
/**
* A list of loggers.
*/
inline CreateLoggerDefinitionVersionRequest& WithLoggers(const Aws::Vector<Logger>& value) { SetLoggers(value); return *this;}
/**
* A list of loggers.
*/
inline CreateLoggerDefinitionVersionRequest& WithLoggers(Aws::Vector<Logger>&& value) { SetLoggers(std::move(value)); return *this;}
/**
* A list of loggers.
*/
inline CreateLoggerDefinitionVersionRequest& AddLoggers(const Logger& value) { m_loggersHasBeenSet = true; m_loggers.push_back(value); return *this; }
/**
* A list of loggers.
*/
inline CreateLoggerDefinitionVersionRequest& AddLoggers(Logger&& value) { m_loggersHasBeenSet = true; m_loggers.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_loggerDefinitionId;
bool m_loggerDefinitionIdHasBeenSet;
Aws::Vector<Logger> m_loggers;
bool m_loggersHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateLoggerDefinitionVersionResult
{
public:
CreateLoggerDefinitionVersionResult();
CreateLoggerDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLoggerDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateLoggerDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateLoggerDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateLoggerDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateLoggerDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateLoggerDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateLoggerDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateLoggerDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/ResourceDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateResourceDefinitionRequest : public GreengrassRequest
{
public:
CreateResourceDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateResourceDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the resource definition.
*/
inline const ResourceDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the resource definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the resource definition.
*/
inline void SetInitialVersion(const ResourceDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the resource definition.
*/
inline void SetInitialVersion(ResourceDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the resource definition.
*/
inline CreateResourceDefinitionRequest& WithInitialVersion(const ResourceDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the resource definition.
*/
inline CreateResourceDefinitionRequest& WithInitialVersion(ResourceDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the resource definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the resource definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the resource definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the resource definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the resource definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the resource definition.
*/
inline CreateResourceDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the resource definition.
*/
inline CreateResourceDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the resource definition.
*/
inline CreateResourceDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateResourceDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
ResourceDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateResourceDefinitionResult
{
public:
CreateResourceDefinitionResult();
CreateResourceDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateResourceDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateResourceDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateResourceDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateResourceDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateResourceDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateResourceDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateResourceDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateResourceDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateResourceDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateResourceDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateResourceDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateResourceDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateResourceDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateResourceDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateResourceDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateResourceDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateResourceDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Resource.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateResourceDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateResourceDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateResourceDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateResourceDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the resource definition.
*/
inline const Aws::String& GetResourceDefinitionId() const{ return m_resourceDefinitionId; }
/**
* The ID of the resource definition.
*/
inline bool ResourceDefinitionIdHasBeenSet() const { return m_resourceDefinitionIdHasBeenSet; }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(const Aws::String& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = value; }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(Aws::String&& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = std::move(value); }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(const char* value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId.assign(value); }
/**
* The ID of the resource definition.
*/
inline CreateResourceDefinitionVersionRequest& WithResourceDefinitionId(const Aws::String& value) { SetResourceDefinitionId(value); return *this;}
/**
* The ID of the resource definition.
*/
inline CreateResourceDefinitionVersionRequest& WithResourceDefinitionId(Aws::String&& value) { SetResourceDefinitionId(std::move(value)); return *this;}
/**
* The ID of the resource definition.
*/
inline CreateResourceDefinitionVersionRequest& WithResourceDefinitionId(const char* value) { SetResourceDefinitionId(value); return *this;}
/**
* A list of resources.
*/
inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
/**
* A list of resources.
*/
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
/**
* A list of resources.
*/
inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
/**
* A list of resources.
*/
inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
/**
* A list of resources.
*/
inline CreateResourceDefinitionVersionRequest& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
/**
* A list of resources.
*/
inline CreateResourceDefinitionVersionRequest& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
/**
* A list of resources.
*/
inline CreateResourceDefinitionVersionRequest& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
/**
* A list of resources.
*/
inline CreateResourceDefinitionVersionRequest& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_resourceDefinitionId;
bool m_resourceDefinitionIdHasBeenSet;
Aws::Vector<Resource> m_resources;
bool m_resourcesHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateResourceDefinitionVersionResult
{
public:
CreateResourceDefinitionVersionResult();
CreateResourceDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateResourceDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateResourceDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateResourceDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateResourceDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateResourceDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateResourceDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateResourceDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateResourceDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateResourceDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateResourceDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateResourceDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateResourceDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateResourceDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,237 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/SoftwareToUpdate.h>
#include <aws/greengrass/model/UpdateAgentLogLevel.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/UpdateTargetsArchitecture.h>
#include <aws/greengrass/model/UpdateTargetsOperatingSystem.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateSoftwareUpdateJobRequest : public GreengrassRequest
{
public:
CreateSoftwareUpdateJobRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateSoftwareUpdateJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateSoftwareUpdateJobRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSoftwareUpdateJobRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSoftwareUpdateJobRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
inline const Aws::String& GetS3UrlSignerRole() const{ return m_s3UrlSignerRole; }
inline bool S3UrlSignerRoleHasBeenSet() const { return m_s3UrlSignerRoleHasBeenSet; }
inline void SetS3UrlSignerRole(const Aws::String& value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole = value; }
inline void SetS3UrlSignerRole(Aws::String&& value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole = std::move(value); }
inline void SetS3UrlSignerRole(const char* value) { m_s3UrlSignerRoleHasBeenSet = true; m_s3UrlSignerRole.assign(value); }
inline CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(const Aws::String& value) { SetS3UrlSignerRole(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(Aws::String&& value) { SetS3UrlSignerRole(std::move(value)); return *this;}
inline CreateSoftwareUpdateJobRequest& WithS3UrlSignerRole(const char* value) { SetS3UrlSignerRole(value); return *this;}
inline const SoftwareToUpdate& GetSoftwareToUpdate() const{ return m_softwareToUpdate; }
inline bool SoftwareToUpdateHasBeenSet() const { return m_softwareToUpdateHasBeenSet; }
inline void SetSoftwareToUpdate(const SoftwareToUpdate& value) { m_softwareToUpdateHasBeenSet = true; m_softwareToUpdate = value; }
inline void SetSoftwareToUpdate(SoftwareToUpdate&& value) { m_softwareToUpdateHasBeenSet = true; m_softwareToUpdate = std::move(value); }
inline CreateSoftwareUpdateJobRequest& WithSoftwareToUpdate(const SoftwareToUpdate& value) { SetSoftwareToUpdate(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithSoftwareToUpdate(SoftwareToUpdate&& value) { SetSoftwareToUpdate(std::move(value)); return *this;}
inline const UpdateAgentLogLevel& GetUpdateAgentLogLevel() const{ return m_updateAgentLogLevel; }
inline bool UpdateAgentLogLevelHasBeenSet() const { return m_updateAgentLogLevelHasBeenSet; }
inline void SetUpdateAgentLogLevel(const UpdateAgentLogLevel& value) { m_updateAgentLogLevelHasBeenSet = true; m_updateAgentLogLevel = value; }
inline void SetUpdateAgentLogLevel(UpdateAgentLogLevel&& value) { m_updateAgentLogLevelHasBeenSet = true; m_updateAgentLogLevel = std::move(value); }
inline CreateSoftwareUpdateJobRequest& WithUpdateAgentLogLevel(const UpdateAgentLogLevel& value) { SetUpdateAgentLogLevel(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithUpdateAgentLogLevel(UpdateAgentLogLevel&& value) { SetUpdateAgentLogLevel(std::move(value)); return *this;}
inline const Aws::Vector<Aws::String>& GetUpdateTargets() const{ return m_updateTargets; }
inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
inline void SetUpdateTargets(const Aws::Vector<Aws::String>& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = value; }
inline void SetUpdateTargets(Aws::Vector<Aws::String>&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = std::move(value); }
inline CreateSoftwareUpdateJobRequest& WithUpdateTargets(const Aws::Vector<Aws::String>& value) { SetUpdateTargets(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithUpdateTargets(Aws::Vector<Aws::String>&& value) { SetUpdateTargets(std::move(value)); return *this;}
inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(const Aws::String& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(Aws::String&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(std::move(value)); return *this; }
inline CreateSoftwareUpdateJobRequest& AddUpdateTargets(const char* value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
inline const UpdateTargetsArchitecture& GetUpdateTargetsArchitecture() const{ return m_updateTargetsArchitecture; }
inline bool UpdateTargetsArchitectureHasBeenSet() const { return m_updateTargetsArchitectureHasBeenSet; }
inline void SetUpdateTargetsArchitecture(const UpdateTargetsArchitecture& value) { m_updateTargetsArchitectureHasBeenSet = true; m_updateTargetsArchitecture = value; }
inline void SetUpdateTargetsArchitecture(UpdateTargetsArchitecture&& value) { m_updateTargetsArchitectureHasBeenSet = true; m_updateTargetsArchitecture = std::move(value); }
inline CreateSoftwareUpdateJobRequest& WithUpdateTargetsArchitecture(const UpdateTargetsArchitecture& value) { SetUpdateTargetsArchitecture(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithUpdateTargetsArchitecture(UpdateTargetsArchitecture&& value) { SetUpdateTargetsArchitecture(std::move(value)); return *this;}
inline const UpdateTargetsOperatingSystem& GetUpdateTargetsOperatingSystem() const{ return m_updateTargetsOperatingSystem; }
inline bool UpdateTargetsOperatingSystemHasBeenSet() const { return m_updateTargetsOperatingSystemHasBeenSet; }
inline void SetUpdateTargetsOperatingSystem(const UpdateTargetsOperatingSystem& value) { m_updateTargetsOperatingSystemHasBeenSet = true; m_updateTargetsOperatingSystem = value; }
inline void SetUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem&& value) { m_updateTargetsOperatingSystemHasBeenSet = true; m_updateTargetsOperatingSystem = std::move(value); }
inline CreateSoftwareUpdateJobRequest& WithUpdateTargetsOperatingSystem(const UpdateTargetsOperatingSystem& value) { SetUpdateTargetsOperatingSystem(value); return *this;}
inline CreateSoftwareUpdateJobRequest& WithUpdateTargetsOperatingSystem(UpdateTargetsOperatingSystem&& value) { SetUpdateTargetsOperatingSystem(std::move(value)); return *this;}
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_s3UrlSignerRole;
bool m_s3UrlSignerRoleHasBeenSet;
SoftwareToUpdate m_softwareToUpdate;
bool m_softwareToUpdateHasBeenSet;
UpdateAgentLogLevel m_updateAgentLogLevel;
bool m_updateAgentLogLevelHasBeenSet;
Aws::Vector<Aws::String> m_updateTargets;
bool m_updateTargetsHasBeenSet;
UpdateTargetsArchitecture m_updateTargetsArchitecture;
bool m_updateTargetsArchitectureHasBeenSet;
UpdateTargetsOperatingSystem m_updateTargetsOperatingSystem;
bool m_updateTargetsOperatingSystemHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateSoftwareUpdateJobResult
{
public:
CreateSoftwareUpdateJobResult();
CreateSoftwareUpdateJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSoftwareUpdateJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The IoT Job ARN corresponding to this update.
*/
inline const Aws::String& GetIotJobArn() const{ return m_iotJobArn; }
/**
* The IoT Job ARN corresponding to this update.
*/
inline void SetIotJobArn(const Aws::String& value) { m_iotJobArn = value; }
/**
* The IoT Job ARN corresponding to this update.
*/
inline void SetIotJobArn(Aws::String&& value) { m_iotJobArn = std::move(value); }
/**
* The IoT Job ARN corresponding to this update.
*/
inline void SetIotJobArn(const char* value) { m_iotJobArn.assign(value); }
/**
* The IoT Job ARN corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobArn(const Aws::String& value) { SetIotJobArn(value); return *this;}
/**
* The IoT Job ARN corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobArn(Aws::String&& value) { SetIotJobArn(std::move(value)); return *this;}
/**
* The IoT Job ARN corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobArn(const char* value) { SetIotJobArn(value); return *this;}
/**
* The IoT Job Id corresponding to this update.
*/
inline const Aws::String& GetIotJobId() const{ return m_iotJobId; }
/**
* The IoT Job Id corresponding to this update.
*/
inline void SetIotJobId(const Aws::String& value) { m_iotJobId = value; }
/**
* The IoT Job Id corresponding to this update.
*/
inline void SetIotJobId(Aws::String&& value) { m_iotJobId = std::move(value); }
/**
* The IoT Job Id corresponding to this update.
*/
inline void SetIotJobId(const char* value) { m_iotJobId.assign(value); }
/**
* The IoT Job Id corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobId(const Aws::String& value) { SetIotJobId(value); return *this;}
/**
* The IoT Job Id corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobId(Aws::String&& value) { SetIotJobId(std::move(value)); return *this;}
/**
* The IoT Job Id corresponding to this update.
*/
inline CreateSoftwareUpdateJobResult& WithIotJobId(const char* value) { SetIotJobId(value); return *this;}
/**
* The software version installed on the device or devices after the update.
*/
inline const Aws::String& GetPlatformSoftwareVersion() const{ return m_platformSoftwareVersion; }
/**
* The software version installed on the device or devices after the update.
*/
inline void SetPlatformSoftwareVersion(const Aws::String& value) { m_platformSoftwareVersion = value; }
/**
* The software version installed on the device or devices after the update.
*/
inline void SetPlatformSoftwareVersion(Aws::String&& value) { m_platformSoftwareVersion = std::move(value); }
/**
* The software version installed on the device or devices after the update.
*/
inline void SetPlatformSoftwareVersion(const char* value) { m_platformSoftwareVersion.assign(value); }
/**
* The software version installed on the device or devices after the update.
*/
inline CreateSoftwareUpdateJobResult& WithPlatformSoftwareVersion(const Aws::String& value) { SetPlatformSoftwareVersion(value); return *this;}
/**
* The software version installed on the device or devices after the update.
*/
inline CreateSoftwareUpdateJobResult& WithPlatformSoftwareVersion(Aws::String&& value) { SetPlatformSoftwareVersion(std::move(value)); return *this;}
/**
* The software version installed on the device or devices after the update.
*/
inline CreateSoftwareUpdateJobResult& WithPlatformSoftwareVersion(const char* value) { SetPlatformSoftwareVersion(value); return *this;}
private:
Aws::String m_iotJobArn;
Aws::String m_iotJobId;
Aws::String m_platformSoftwareVersion;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/SubscriptionDefinitionVersion.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateSubscriptionDefinitionRequest : public GreengrassRequest
{
public:
CreateSubscriptionDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionDefinition"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* Information about the initial version of the subscription definition.
*/
inline const SubscriptionDefinitionVersion& GetInitialVersion() const{ return m_initialVersion; }
/**
* Information about the initial version of the subscription definition.
*/
inline bool InitialVersionHasBeenSet() const { return m_initialVersionHasBeenSet; }
/**
* Information about the initial version of the subscription definition.
*/
inline void SetInitialVersion(const SubscriptionDefinitionVersion& value) { m_initialVersionHasBeenSet = true; m_initialVersion = value; }
/**
* Information about the initial version of the subscription definition.
*/
inline void SetInitialVersion(SubscriptionDefinitionVersion&& value) { m_initialVersionHasBeenSet = true; m_initialVersion = std::move(value); }
/**
* Information about the initial version of the subscription definition.
*/
inline CreateSubscriptionDefinitionRequest& WithInitialVersion(const SubscriptionDefinitionVersion& value) { SetInitialVersion(value); return *this;}
/**
* Information about the initial version of the subscription definition.
*/
inline CreateSubscriptionDefinitionRequest& WithInitialVersion(SubscriptionDefinitionVersion&& value) { SetInitialVersion(std::move(value)); return *this;}
/**
* The name of the subscription definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the subscription definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the subscription definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the subscription definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the subscription definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the subscription definition.
*/
inline CreateSubscriptionDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the subscription definition.
*/
inline CreateSubscriptionDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the subscription definition.
*/
inline CreateSubscriptionDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) to add to the new resource.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) to add to the new resource.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) to add to the new resource.
*/
inline CreateSubscriptionDefinitionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
SubscriptionDefinitionVersion m_initialVersion;
bool m_initialVersionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,305 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateSubscriptionDefinitionResult
{
public:
CreateSubscriptionDefinitionResult();
CreateSubscriptionDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSubscriptionDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateSubscriptionDefinitionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateSubscriptionDefinitionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline CreateSubscriptionDefinitionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateSubscriptionDefinitionResult& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateSubscriptionDefinitionResult& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline CreateSubscriptionDefinitionResult& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline CreateSubscriptionDefinitionResult& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline CreateSubscriptionDefinitionResult& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_lastUpdatedTimestamp;
Aws::String m_latestVersion;
Aws::String m_latestVersionArn;
Aws::String m_name;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Subscription.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API CreateSubscriptionDefinitionVersionRequest : public GreengrassRequest
{
public:
CreateSubscriptionDefinitionVersionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriptionDefinitionVersion"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* A client token used to correlate requests and responses.
*/
inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
/**
* A client token used to correlate requests and responses.
*/
inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
/**
* A client token used to correlate requests and responses.
*/
inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
/**
* A client token used to correlate requests and responses.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
/**
* The ID of the subscription definition.
*/
inline const Aws::String& GetSubscriptionDefinitionId() const{ return m_subscriptionDefinitionId; }
/**
* The ID of the subscription definition.
*/
inline bool SubscriptionDefinitionIdHasBeenSet() const { return m_subscriptionDefinitionIdHasBeenSet; }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(const Aws::String& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = value; }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(Aws::String&& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = std::move(value); }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(const char* value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId.assign(value); }
/**
* The ID of the subscription definition.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithSubscriptionDefinitionId(const Aws::String& value) { SetSubscriptionDefinitionId(value); return *this;}
/**
* The ID of the subscription definition.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithSubscriptionDefinitionId(Aws::String&& value) { SetSubscriptionDefinitionId(std::move(value)); return *this;}
/**
* The ID of the subscription definition.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithSubscriptionDefinitionId(const char* value) { SetSubscriptionDefinitionId(value); return *this;}
/**
* A list of subscriptions.
*/
inline const Aws::Vector<Subscription>& GetSubscriptions() const{ return m_subscriptions; }
/**
* A list of subscriptions.
*/
inline bool SubscriptionsHasBeenSet() const { return m_subscriptionsHasBeenSet; }
/**
* A list of subscriptions.
*/
inline void SetSubscriptions(const Aws::Vector<Subscription>& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = value; }
/**
* A list of subscriptions.
*/
inline void SetSubscriptions(Aws::Vector<Subscription>&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions = std::move(value); }
/**
* A list of subscriptions.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithSubscriptions(const Aws::Vector<Subscription>& value) { SetSubscriptions(value); return *this;}
/**
* A list of subscriptions.
*/
inline CreateSubscriptionDefinitionVersionRequest& WithSubscriptions(Aws::Vector<Subscription>&& value) { SetSubscriptions(std::move(value)); return *this;}
/**
* A list of subscriptions.
*/
inline CreateSubscriptionDefinitionVersionRequest& AddSubscriptions(const Subscription& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(value); return *this; }
/**
* A list of subscriptions.
*/
inline CreateSubscriptionDefinitionVersionRequest& AddSubscriptions(Subscription&& value) { m_subscriptionsHasBeenSet = true; m_subscriptions.push_back(std::move(value)); return *this; }
private:
Aws::String m_amznClientToken;
bool m_amznClientTokenHasBeenSet;
Aws::String m_subscriptionDefinitionId;
bool m_subscriptionDefinitionIdHasBeenSet;
Aws::Vector<Subscription> m_subscriptions;
bool m_subscriptionsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API CreateSubscriptionDefinitionVersionResult
{
public:
CreateSubscriptionDefinitionVersionResult();
CreateSubscriptionDefinitionVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateSubscriptionDefinitionVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The ARN of the version.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the version.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The ARN of the version.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The ARN of the version.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The ARN of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateSubscriptionDefinitionVersionResult& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateSubscriptionDefinitionVersionResult& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the version was created.
*/
inline CreateSubscriptionDefinitionVersionResult& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateSubscriptionDefinitionVersionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateSubscriptionDefinitionVersionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the parent definition that the version is associated with.
*/
inline CreateSubscriptionDefinitionVersionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* The ID of the version.
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* The ID of the version.
*/
inline void SetVersion(const Aws::String& value) { m_version = value; }
/**
* The ID of the version.
*/
inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
/**
* The ID of the version.
*/
inline void SetVersion(const char* value) { m_version.assign(value); }
/**
* The ID of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* The ID of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* The ID of the version.
*/
inline CreateSubscriptionDefinitionVersionResult& WithVersion(const char* value) { SetVersion(value); return *this;}
private:
Aws::String m_arn;
Aws::String m_creationTimestamp;
Aws::String m_id;
Aws::String m_version;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,422 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a definition.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DefinitionInformation">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API DefinitionInformation
{
public:
DefinitionInformation();
DefinitionInformation(Aws::Utils::Json::JsonView jsonValue);
DefinitionInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the definition.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The ARN of the definition.
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* The ARN of the definition.
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* The ARN of the definition.
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* The ARN of the definition.
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* The ARN of the definition.
*/
inline DefinitionInformation& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The ARN of the definition.
*/
inline DefinitionInformation& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The ARN of the definition.
*/
inline DefinitionInformation& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline void SetCreationTimestamp(const char* value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline DefinitionInformation& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline DefinitionInformation& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was created.
*/
inline DefinitionInformation& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
/**
* The ID of the definition.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The ID of the definition.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The ID of the definition.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The ID of the definition.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The ID of the definition.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The ID of the definition.
*/
inline DefinitionInformation& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The ID of the definition.
*/
inline DefinitionInformation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The ID of the definition.
*/
inline DefinitionInformation& WithId(const char* value) { SetId(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline const Aws::String& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const Aws::String& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(Aws::String&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline void SetLastUpdatedTimestamp(const char* value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp.assign(value); }
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline DefinitionInformation& WithLastUpdatedTimestamp(const Aws::String& value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline DefinitionInformation& WithLastUpdatedTimestamp(Aws::String&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the definition was last updated.
*/
inline DefinitionInformation& WithLastUpdatedTimestamp(const char* value) { SetLastUpdatedTimestamp(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersion() const{ return m_latestVersion; }
/**
* The ID of the latest version associated with the definition.
*/
inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const Aws::String& value) { m_latestVersionHasBeenSet = true; m_latestVersion = value; }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(Aws::String&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::move(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline void SetLatestVersion(const char* value) { m_latestVersionHasBeenSet = true; m_latestVersion.assign(value); }
/**
* The ID of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersion(const Aws::String& value) { SetLatestVersion(value); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersion(Aws::String&& value) { SetLatestVersion(std::move(value)); return *this;}
/**
* The ID of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersion(const char* value) { SetLatestVersion(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline const Aws::String& GetLatestVersionArn() const{ return m_latestVersionArn; }
/**
* The ARN of the latest version associated with the definition.
*/
inline bool LatestVersionArnHasBeenSet() const { return m_latestVersionArnHasBeenSet; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const Aws::String& value) { m_latestVersionArnHasBeenSet = true; m_latestVersionArn = value; }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(Aws::String&& value) { m_latestVersionArnHasBeenSet = true; m_latestVersionArn = std::move(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline void SetLatestVersionArn(const char* value) { m_latestVersionArnHasBeenSet = true; m_latestVersionArn.assign(value); }
/**
* The ARN of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersionArn(const Aws::String& value) { SetLatestVersionArn(value); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersionArn(Aws::String&& value) { SetLatestVersionArn(std::move(value)); return *this;}
/**
* The ARN of the latest version associated with the definition.
*/
inline DefinitionInformation& WithLatestVersionArn(const char* value) { SetLatestVersionArn(value); return *this;}
/**
* The name of the definition.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the definition.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the definition.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the definition.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the definition.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the definition.
*/
inline DefinitionInformation& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the definition.
*/
inline DefinitionInformation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the definition.
*/
inline DefinitionInformation& WithName(const char* value) { SetName(value); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) attached to the resource arn.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* Tag(s) attached to the resource arn.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* Tag(s) attached to the resource arn.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline DefinitionInformation& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_creationTimestamp;
bool m_creationTimestampHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_lastUpdatedTimestamp;
bool m_lastUpdatedTimestampHasBeenSet;
Aws::String m_latestVersion;
bool m_latestVersionHasBeenSet;
Aws::String m_latestVersionArn;
bool m_latestVersionArnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteConnectorDefinitionRequest : public GreengrassRequest
{
public:
DeleteConnectorDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteConnectorDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the connector definition.
*/
inline const Aws::String& GetConnectorDefinitionId() const{ return m_connectorDefinitionId; }
/**
* The ID of the connector definition.
*/
inline bool ConnectorDefinitionIdHasBeenSet() const { return m_connectorDefinitionIdHasBeenSet; }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(const Aws::String& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = value; }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(Aws::String&& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = std::move(value); }
/**
* The ID of the connector definition.
*/
inline void SetConnectorDefinitionId(const char* value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId.assign(value); }
/**
* The ID of the connector definition.
*/
inline DeleteConnectorDefinitionRequest& WithConnectorDefinitionId(const Aws::String& value) { SetConnectorDefinitionId(value); return *this;}
/**
* The ID of the connector definition.
*/
inline DeleteConnectorDefinitionRequest& WithConnectorDefinitionId(Aws::String&& value) { SetConnectorDefinitionId(std::move(value)); return *this;}
/**
* The ID of the connector definition.
*/
inline DeleteConnectorDefinitionRequest& WithConnectorDefinitionId(const char* value) { SetConnectorDefinitionId(value); return *this;}
private:
Aws::String m_connectorDefinitionId;
bool m_connectorDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteConnectorDefinitionResult
{
public:
DeleteConnectorDefinitionResult();
DeleteConnectorDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteConnectorDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteCoreDefinitionRequest : public GreengrassRequest
{
public:
DeleteCoreDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteCoreDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the core definition.
*/
inline const Aws::String& GetCoreDefinitionId() const{ return m_coreDefinitionId; }
/**
* The ID of the core definition.
*/
inline bool CoreDefinitionIdHasBeenSet() const { return m_coreDefinitionIdHasBeenSet; }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(const Aws::String& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = value; }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(Aws::String&& value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId = std::move(value); }
/**
* The ID of the core definition.
*/
inline void SetCoreDefinitionId(const char* value) { m_coreDefinitionIdHasBeenSet = true; m_coreDefinitionId.assign(value); }
/**
* The ID of the core definition.
*/
inline DeleteCoreDefinitionRequest& WithCoreDefinitionId(const Aws::String& value) { SetCoreDefinitionId(value); return *this;}
/**
* The ID of the core definition.
*/
inline DeleteCoreDefinitionRequest& WithCoreDefinitionId(Aws::String&& value) { SetCoreDefinitionId(std::move(value)); return *this;}
/**
* The ID of the core definition.
*/
inline DeleteCoreDefinitionRequest& WithCoreDefinitionId(const char* value) { SetCoreDefinitionId(value); return *this;}
private:
Aws::String m_coreDefinitionId;
bool m_coreDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteCoreDefinitionResult
{
public:
DeleteCoreDefinitionResult();
DeleteCoreDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteCoreDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteDeviceDefinitionRequest : public GreengrassRequest
{
public:
DeleteDeviceDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteDeviceDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the device definition.
*/
inline const Aws::String& GetDeviceDefinitionId() const{ return m_deviceDefinitionId; }
/**
* The ID of the device definition.
*/
inline bool DeviceDefinitionIdHasBeenSet() const { return m_deviceDefinitionIdHasBeenSet; }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(const Aws::String& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = value; }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(Aws::String&& value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId = std::move(value); }
/**
* The ID of the device definition.
*/
inline void SetDeviceDefinitionId(const char* value) { m_deviceDefinitionIdHasBeenSet = true; m_deviceDefinitionId.assign(value); }
/**
* The ID of the device definition.
*/
inline DeleteDeviceDefinitionRequest& WithDeviceDefinitionId(const Aws::String& value) { SetDeviceDefinitionId(value); return *this;}
/**
* The ID of the device definition.
*/
inline DeleteDeviceDefinitionRequest& WithDeviceDefinitionId(Aws::String&& value) { SetDeviceDefinitionId(std::move(value)); return *this;}
/**
* The ID of the device definition.
*/
inline DeleteDeviceDefinitionRequest& WithDeviceDefinitionId(const char* value) { SetDeviceDefinitionId(value); return *this;}
private:
Aws::String m_deviceDefinitionId;
bool m_deviceDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteDeviceDefinitionResult
{
public:
DeleteDeviceDefinitionResult();
DeleteDeviceDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteDeviceDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteFunctionDefinitionRequest : public GreengrassRequest
{
public:
DeleteFunctionDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteFunctionDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the Lambda function definition.
*/
inline const Aws::String& GetFunctionDefinitionId() const{ return m_functionDefinitionId; }
/**
* The ID of the Lambda function definition.
*/
inline bool FunctionDefinitionIdHasBeenSet() const { return m_functionDefinitionIdHasBeenSet; }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(const Aws::String& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = value; }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(Aws::String&& value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId = std::move(value); }
/**
* The ID of the Lambda function definition.
*/
inline void SetFunctionDefinitionId(const char* value) { m_functionDefinitionIdHasBeenSet = true; m_functionDefinitionId.assign(value); }
/**
* The ID of the Lambda function definition.
*/
inline DeleteFunctionDefinitionRequest& WithFunctionDefinitionId(const Aws::String& value) { SetFunctionDefinitionId(value); return *this;}
/**
* The ID of the Lambda function definition.
*/
inline DeleteFunctionDefinitionRequest& WithFunctionDefinitionId(Aws::String&& value) { SetFunctionDefinitionId(std::move(value)); return *this;}
/**
* The ID of the Lambda function definition.
*/
inline DeleteFunctionDefinitionRequest& WithFunctionDefinitionId(const char* value) { SetFunctionDefinitionId(value); return *this;}
private:
Aws::String m_functionDefinitionId;
bool m_functionDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteFunctionDefinitionResult
{
public:
DeleteFunctionDefinitionResult();
DeleteFunctionDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteFunctionDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteGroupRequest : public GreengrassRequest
{
public:
DeleteGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteGroup"; }
Aws::String SerializePayload() const override;
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline DeleteGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline DeleteGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline DeleteGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteGroupResult
{
public:
DeleteGroupResult();
DeleteGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteLoggerDefinitionRequest : public GreengrassRequest
{
public:
DeleteLoggerDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteLoggerDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the logger definition.
*/
inline const Aws::String& GetLoggerDefinitionId() const{ return m_loggerDefinitionId; }
/**
* The ID of the logger definition.
*/
inline bool LoggerDefinitionIdHasBeenSet() const { return m_loggerDefinitionIdHasBeenSet; }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(const Aws::String& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = value; }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(Aws::String&& value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId = std::move(value); }
/**
* The ID of the logger definition.
*/
inline void SetLoggerDefinitionId(const char* value) { m_loggerDefinitionIdHasBeenSet = true; m_loggerDefinitionId.assign(value); }
/**
* The ID of the logger definition.
*/
inline DeleteLoggerDefinitionRequest& WithLoggerDefinitionId(const Aws::String& value) { SetLoggerDefinitionId(value); return *this;}
/**
* The ID of the logger definition.
*/
inline DeleteLoggerDefinitionRequest& WithLoggerDefinitionId(Aws::String&& value) { SetLoggerDefinitionId(std::move(value)); return *this;}
/**
* The ID of the logger definition.
*/
inline DeleteLoggerDefinitionRequest& WithLoggerDefinitionId(const char* value) { SetLoggerDefinitionId(value); return *this;}
private:
Aws::String m_loggerDefinitionId;
bool m_loggerDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteLoggerDefinitionResult
{
public:
DeleteLoggerDefinitionResult();
DeleteLoggerDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteLoggerDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteResourceDefinitionRequest : public GreengrassRequest
{
public:
DeleteResourceDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteResourceDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the resource definition.
*/
inline const Aws::String& GetResourceDefinitionId() const{ return m_resourceDefinitionId; }
/**
* The ID of the resource definition.
*/
inline bool ResourceDefinitionIdHasBeenSet() const { return m_resourceDefinitionIdHasBeenSet; }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(const Aws::String& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = value; }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(Aws::String&& value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId = std::move(value); }
/**
* The ID of the resource definition.
*/
inline void SetResourceDefinitionId(const char* value) { m_resourceDefinitionIdHasBeenSet = true; m_resourceDefinitionId.assign(value); }
/**
* The ID of the resource definition.
*/
inline DeleteResourceDefinitionRequest& WithResourceDefinitionId(const Aws::String& value) { SetResourceDefinitionId(value); return *this;}
/**
* The ID of the resource definition.
*/
inline DeleteResourceDefinitionRequest& WithResourceDefinitionId(Aws::String&& value) { SetResourceDefinitionId(std::move(value)); return *this;}
/**
* The ID of the resource definition.
*/
inline DeleteResourceDefinitionRequest& WithResourceDefinitionId(const char* value) { SetResourceDefinitionId(value); return *this;}
private:
Aws::String m_resourceDefinitionId;
bool m_resourceDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteResourceDefinitionResult
{
public:
DeleteResourceDefinitionResult();
DeleteResourceDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteResourceDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DeleteSubscriptionDefinitionRequest : public GreengrassRequest
{
public:
DeleteSubscriptionDefinitionRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteSubscriptionDefinition"; }
Aws::String SerializePayload() const override;
/**
* The ID of the subscription definition.
*/
inline const Aws::String& GetSubscriptionDefinitionId() const{ return m_subscriptionDefinitionId; }
/**
* The ID of the subscription definition.
*/
inline bool SubscriptionDefinitionIdHasBeenSet() const { return m_subscriptionDefinitionIdHasBeenSet; }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(const Aws::String& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = value; }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(Aws::String&& value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId = std::move(value); }
/**
* The ID of the subscription definition.
*/
inline void SetSubscriptionDefinitionId(const char* value) { m_subscriptionDefinitionIdHasBeenSet = true; m_subscriptionDefinitionId.assign(value); }
/**
* The ID of the subscription definition.
*/
inline DeleteSubscriptionDefinitionRequest& WithSubscriptionDefinitionId(const Aws::String& value) { SetSubscriptionDefinitionId(value); return *this;}
/**
* The ID of the subscription definition.
*/
inline DeleteSubscriptionDefinitionRequest& WithSubscriptionDefinitionId(Aws::String&& value) { SetSubscriptionDefinitionId(std::move(value)); return *this;}
/**
* The ID of the subscription definition.
*/
inline DeleteSubscriptionDefinitionRequest& WithSubscriptionDefinitionId(const char* value) { SetSubscriptionDefinitionId(value); return *this;}
private:
Aws::String m_subscriptionDefinitionId;
bool m_subscriptionDefinitionIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DeleteSubscriptionDefinitionResult
{
public:
DeleteSubscriptionDefinitionResult();
DeleteSubscriptionDefinitionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteSubscriptionDefinitionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,255 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/DeploymentType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a deployment.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Deployment">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API Deployment
{
public:
Deployment();
Deployment(Aws::Utils::Json::JsonView jsonValue);
Deployment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); }
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline Deployment& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline Deployment& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the deployment was created.
*/
inline Deployment& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* The ARN of the deployment.
*/
inline const Aws::String& GetDeploymentArn() const{ return m_deploymentArn; }
/**
* The ARN of the deployment.
*/
inline bool DeploymentArnHasBeenSet() const { return m_deploymentArnHasBeenSet; }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(const Aws::String& value) { m_deploymentArnHasBeenSet = true; m_deploymentArn = value; }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(Aws::String&& value) { m_deploymentArnHasBeenSet = true; m_deploymentArn = std::move(value); }
/**
* The ARN of the deployment.
*/
inline void SetDeploymentArn(const char* value) { m_deploymentArnHasBeenSet = true; m_deploymentArn.assign(value); }
/**
* The ARN of the deployment.
*/
inline Deployment& WithDeploymentArn(const Aws::String& value) { SetDeploymentArn(value); return *this;}
/**
* The ARN of the deployment.
*/
inline Deployment& WithDeploymentArn(Aws::String&& value) { SetDeploymentArn(std::move(value)); return *this;}
/**
* The ARN of the deployment.
*/
inline Deployment& WithDeploymentArn(const char* value) { SetDeploymentArn(value); return *this;}
/**
* The ID of the deployment.
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* The ID of the deployment.
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* The ID of the deployment.
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* The ID of the deployment.
*/
inline Deployment& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* The ID of the deployment.
*/
inline Deployment& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* The ID of the deployment.
*/
inline Deployment& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* The type of the deployment.
*/
inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
/**
* The type of the deployment.
*/
inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
/**
* The type of the deployment.
*/
inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
/**
* The type of the deployment.
*/
inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
/**
* The type of the deployment.
*/
inline Deployment& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
/**
* The type of the deployment.
*/
inline Deployment& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
/**
* The ARN of the group for this deployment.
*/
inline const Aws::String& GetGroupArn() const{ return m_groupArn; }
/**
* The ARN of the group for this deployment.
*/
inline bool GroupArnHasBeenSet() const { return m_groupArnHasBeenSet; }
/**
* The ARN of the group for this deployment.
*/
inline void SetGroupArn(const Aws::String& value) { m_groupArnHasBeenSet = true; m_groupArn = value; }
/**
* The ARN of the group for this deployment.
*/
inline void SetGroupArn(Aws::String&& value) { m_groupArnHasBeenSet = true; m_groupArn = std::move(value); }
/**
* The ARN of the group for this deployment.
*/
inline void SetGroupArn(const char* value) { m_groupArnHasBeenSet = true; m_groupArn.assign(value); }
/**
* The ARN of the group for this deployment.
*/
inline Deployment& WithGroupArn(const Aws::String& value) { SetGroupArn(value); return *this;}
/**
* The ARN of the group for this deployment.
*/
inline Deployment& WithGroupArn(Aws::String&& value) { SetGroupArn(std::move(value)); return *this;}
/**
* The ARN of the group for this deployment.
*/
inline Deployment& WithGroupArn(const char* value) { SetGroupArn(value); return *this;}
private:
Aws::String m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_deploymentArn;
bool m_deploymentArnHasBeenSet;
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
DeploymentType m_deploymentType;
bool m_deploymentTypeHasBeenSet;
Aws::String m_groupArn;
bool m_groupArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
enum class DeploymentType
{
NOT_SET,
NewDeployment,
Redeployment,
ResetDeployment,
ForceResetDeployment
};
namespace DeploymentTypeMapper
{
AWS_GREENGRASS_API DeploymentType GetDeploymentTypeForName(const Aws::String& name);
AWS_GREENGRASS_API Aws::String GetNameForDeploymentType(DeploymentType value);
} // namespace DeploymentTypeMapper
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,216 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a device.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Device">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API Device
{
public:
Device();
Device(Aws::Utils::Json::JsonView jsonValue);
Device& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the certificate associated with the device.
*/
inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
/**
* The ARN of the certificate associated with the device.
*/
inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
/**
* The ARN of the certificate associated with the device.
*/
inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
/**
* The ARN of the certificate associated with the device.
*/
inline Device& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the device. This value must be unique within
* the device definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Device& WithId(const char* value) { SetId(value); return *this;}
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline bool GetSyncShadow() const{ return m_syncShadow; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline void SetSyncShadow(bool value) { m_syncShadowHasBeenSet = true; m_syncShadow = value; }
/**
* If true, the device's local shadow will be automatically synced with the cloud.
*/
inline Device& WithSyncShadow(bool value) { SetSyncShadow(value); return *this;}
/**
* The thing ARN of the device.
*/
inline const Aws::String& GetThingArn() const{ return m_thingArn; }
/**
* The thing ARN of the device.
*/
inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
/**
* The thing ARN of the device.
*/
inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
/**
* The thing ARN of the device.
*/
inline Device& WithThingArn(const char* value) { SetThingArn(value); return *this;}
private:
Aws::String m_certificateArn;
bool m_certificateArnHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
bool m_syncShadow;
bool m_syncShadowHasBeenSet;
Aws::String m_thingArn;
bool m_thingArnHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Device.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a device definition version.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeviceDefinitionVersion">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API DeviceDefinitionVersion
{
public:
DeviceDefinitionVersion();
DeviceDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
DeviceDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A list of devices in the definition version.
*/
inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
/**
* A list of devices in the definition version.
*/
inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
/**
* A list of devices in the definition version.
*/
inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
/**
* A list of devices in the definition version.
*/
inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
/**
* A list of devices in the definition version.
*/
inline DeviceDefinitionVersion& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
/**
* A list of devices in the definition version.
*/
inline DeviceDefinitionVersion& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
/**
* A list of devices in the definition version.
*/
inline DeviceDefinitionVersion& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
/**
* A list of devices in the definition version.
*/
inline DeviceDefinitionVersion& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Device> m_devices;
bool m_devicesHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DisassociateRoleFromGroupRequest : public GreengrassRequest
{
public:
DisassociateRoleFromGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DisassociateRoleFromGroup"; }
Aws::String SerializePayload() const override;
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline DisassociateRoleFromGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline DisassociateRoleFromGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline DisassociateRoleFromGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DisassociateRoleFromGroupResult
{
public:
DisassociateRoleFromGroupResult();
DisassociateRoleFromGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateRoleFromGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline const Aws::String& GetDisassociatedAt() const{ return m_disassociatedAt; }
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline void SetDisassociatedAt(const Aws::String& value) { m_disassociatedAt = value; }
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline void SetDisassociatedAt(Aws::String&& value) { m_disassociatedAt = std::move(value); }
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline void SetDisassociatedAt(const char* value) { m_disassociatedAt.assign(value); }
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline DisassociateRoleFromGroupResult& WithDisassociatedAt(const Aws::String& value) { SetDisassociatedAt(value); return *this;}
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline DisassociateRoleFromGroupResult& WithDisassociatedAt(Aws::String&& value) { SetDisassociatedAt(std::move(value)); return *this;}
/**
* The time, in milliseconds since the epoch, when the role was disassociated from
* the group.
*/
inline DisassociateRoleFromGroupResult& WithDisassociatedAt(const char* value) { SetDisassociatedAt(value); return *this;}
private:
Aws::String m_disassociatedAt;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API DisassociateServiceRoleFromAccountRequest : public GreengrassRequest
{
public:
DisassociateServiceRoleFromAccountRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DisassociateServiceRoleFromAccount"; }
Aws::String SerializePayload() const override;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API DisassociateServiceRoleFromAccountResult
{
public:
DisassociateServiceRoleFromAccountResult();
DisassociateServiceRoleFromAccountResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateServiceRoleFromAccountResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The time when the service role was disassociated from the account.
*/
inline const Aws::String& GetDisassociatedAt() const{ return m_disassociatedAt; }
/**
* The time when the service role was disassociated from the account.
*/
inline void SetDisassociatedAt(const Aws::String& value) { m_disassociatedAt = value; }
/**
* The time when the service role was disassociated from the account.
*/
inline void SetDisassociatedAt(Aws::String&& value) { m_disassociatedAt = std::move(value); }
/**
* The time when the service role was disassociated from the account.
*/
inline void SetDisassociatedAt(const char* value) { m_disassociatedAt.assign(value); }
/**
* The time when the service role was disassociated from the account.
*/
inline DisassociateServiceRoleFromAccountResult& WithDisassociatedAt(const Aws::String& value) { SetDisassociatedAt(value); return *this;}
/**
* The time when the service role was disassociated from the account.
*/
inline DisassociateServiceRoleFromAccountResult& WithDisassociatedAt(Aws::String&& value) { SetDisassociatedAt(std::move(value)); return *this;}
/**
* The time when the service role was disassociated from the account.
*/
inline DisassociateServiceRoleFromAccountResult& WithDisassociatedAt(const char* value) { SetDisassociatedAt(value); return *this;}
private:
Aws::String m_disassociatedAt;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
enum class EncodingType
{
NOT_SET,
binary,
json
};
namespace EncodingTypeMapper
{
AWS_GREENGRASS_API EncodingType GetEncodingTypeForName(const Aws::String& name);
AWS_GREENGRASS_API Aws::String GetNameForEncodingType(EncodingType value);
} // namespace EncodingTypeMapper
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Details about the error.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ErrorDetail">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API ErrorDetail
{
public:
ErrorDetail();
ErrorDetail(Aws::Utils::Json::JsonView jsonValue);
ErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* A detailed error code.
*/
inline const Aws::String& GetDetailedErrorCode() const{ return m_detailedErrorCode; }
/**
* A detailed error code.
*/
inline bool DetailedErrorCodeHasBeenSet() const { return m_detailedErrorCodeHasBeenSet; }
/**
* A detailed error code.
*/
inline void SetDetailedErrorCode(const Aws::String& value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode = value; }
/**
* A detailed error code.
*/
inline void SetDetailedErrorCode(Aws::String&& value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode = std::move(value); }
/**
* A detailed error code.
*/
inline void SetDetailedErrorCode(const char* value) { m_detailedErrorCodeHasBeenSet = true; m_detailedErrorCode.assign(value); }
/**
* A detailed error code.
*/
inline ErrorDetail& WithDetailedErrorCode(const Aws::String& value) { SetDetailedErrorCode(value); return *this;}
/**
* A detailed error code.
*/
inline ErrorDetail& WithDetailedErrorCode(Aws::String&& value) { SetDetailedErrorCode(std::move(value)); return *this;}
/**
* A detailed error code.
*/
inline ErrorDetail& WithDetailedErrorCode(const char* value) { SetDetailedErrorCode(value); return *this;}
/**
* A detailed error message.
*/
inline const Aws::String& GetDetailedErrorMessage() const{ return m_detailedErrorMessage; }
/**
* A detailed error message.
*/
inline bool DetailedErrorMessageHasBeenSet() const { return m_detailedErrorMessageHasBeenSet; }
/**
* A detailed error message.
*/
inline void SetDetailedErrorMessage(const Aws::String& value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage = value; }
/**
* A detailed error message.
*/
inline void SetDetailedErrorMessage(Aws::String&& value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage = std::move(value); }
/**
* A detailed error message.
*/
inline void SetDetailedErrorMessage(const char* value) { m_detailedErrorMessageHasBeenSet = true; m_detailedErrorMessage.assign(value); }
/**
* A detailed error message.
*/
inline ErrorDetail& WithDetailedErrorMessage(const Aws::String& value) { SetDetailedErrorMessage(value); return *this;}
/**
* A detailed error message.
*/
inline ErrorDetail& WithDetailedErrorMessage(Aws::String&& value) { SetDetailedErrorMessage(std::move(value)); return *this;}
/**
* A detailed error message.
*/
inline ErrorDetail& WithDetailedErrorMessage(const char* value) { SetDetailedErrorMessage(value); return *this;}
private:
Aws::String m_detailedErrorCode;
bool m_detailedErrorCodeHasBeenSet;
Aws::String m_detailedErrorMessage;
bool m_detailedErrorMessageHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrass/model/FunctionConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a Lambda function.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Function">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API Function
{
public:
Function();
Function(Aws::Utils::Json::JsonView jsonValue);
Function& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The ARN of the Lambda function.
*/
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
/**
* The ARN of the Lambda function.
*/
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
/**
* The ARN of the Lambda function.
*/
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
/**
* The ARN of the Lambda function.
*/
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
/**
* The ARN of the Lambda function.
*/
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
/**
* The ARN of the Lambda function.
*/
inline Function& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
/**
* The ARN of the Lambda function.
*/
inline Function& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
/**
* The ARN of the Lambda function.
*/
inline Function& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
/**
* The configuration of the Lambda function.
*/
inline const FunctionConfiguration& GetFunctionConfiguration() const{ return m_functionConfiguration; }
/**
* The configuration of the Lambda function.
*/
inline bool FunctionConfigurationHasBeenSet() const { return m_functionConfigurationHasBeenSet; }
/**
* The configuration of the Lambda function.
*/
inline void SetFunctionConfiguration(const FunctionConfiguration& value) { m_functionConfigurationHasBeenSet = true; m_functionConfiguration = value; }
/**
* The configuration of the Lambda function.
*/
inline void SetFunctionConfiguration(FunctionConfiguration&& value) { m_functionConfigurationHasBeenSet = true; m_functionConfiguration = std::move(value); }
/**
* The configuration of the Lambda function.
*/
inline Function& WithFunctionConfiguration(const FunctionConfiguration& value) { SetFunctionConfiguration(value); return *this;}
/**
* The configuration of the Lambda function.
*/
inline Function& WithFunctionConfiguration(FunctionConfiguration&& value) { SetFunctionConfiguration(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Function& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Function& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* A descriptive or arbitrary ID for the function. This value must be unique within
* the function definition version. Max length is 128 characters with pattern
* ''[a-zA-Z0-9:_-]+''.
*/
inline Function& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_functionArn;
bool m_functionArnHasBeenSet;
FunctionConfiguration m_functionConfiguration;
bool m_functionConfigurationHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,300 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/EncodingType.h>
#include <aws/greengrass/model/FunctionConfigurationEnvironment.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* The configuration of the Lambda function.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionConfiguration">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionConfiguration
{
public:
FunctionConfiguration();
FunctionConfiguration(Aws::Utils::Json::JsonView jsonValue);
FunctionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline bool EncodingTypeHasBeenSet() const { return m_encodingTypeHasBeenSet; }
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = std::move(value); }
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline FunctionConfiguration& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
/**
* The expected encoding type of the input payload for the function. The default is
* ''json''.
*/
inline FunctionConfiguration& WithEncodingType(EncodingType&& value) { SetEncodingType(std::move(value)); return *this;}
/**
* The environment configuration of the function.
*/
inline const FunctionConfigurationEnvironment& GetEnvironment() const{ return m_environment; }
/**
* The environment configuration of the function.
*/
inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
/**
* The environment configuration of the function.
*/
inline void SetEnvironment(const FunctionConfigurationEnvironment& value) { m_environmentHasBeenSet = true; m_environment = value; }
/**
* The environment configuration of the function.
*/
inline void SetEnvironment(FunctionConfigurationEnvironment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
/**
* The environment configuration of the function.
*/
inline FunctionConfiguration& WithEnvironment(const FunctionConfigurationEnvironment& value) { SetEnvironment(value); return *this;}
/**
* The environment configuration of the function.
*/
inline FunctionConfiguration& WithEnvironment(FunctionConfigurationEnvironment&& value) { SetEnvironment(std::move(value)); return *this;}
/**
* The execution arguments.
*/
inline const Aws::String& GetExecArgs() const{ return m_execArgs; }
/**
* The execution arguments.
*/
inline bool ExecArgsHasBeenSet() const { return m_execArgsHasBeenSet; }
/**
* The execution arguments.
*/
inline void SetExecArgs(const Aws::String& value) { m_execArgsHasBeenSet = true; m_execArgs = value; }
/**
* The execution arguments.
*/
inline void SetExecArgs(Aws::String&& value) { m_execArgsHasBeenSet = true; m_execArgs = std::move(value); }
/**
* The execution arguments.
*/
inline void SetExecArgs(const char* value) { m_execArgsHasBeenSet = true; m_execArgs.assign(value); }
/**
* The execution arguments.
*/
inline FunctionConfiguration& WithExecArgs(const Aws::String& value) { SetExecArgs(value); return *this;}
/**
* The execution arguments.
*/
inline FunctionConfiguration& WithExecArgs(Aws::String&& value) { SetExecArgs(std::move(value)); return *this;}
/**
* The execution arguments.
*/
inline FunctionConfiguration& WithExecArgs(const char* value) { SetExecArgs(value); return *this;}
/**
* The name of the function executable.
*/
inline const Aws::String& GetExecutable() const{ return m_executable; }
/**
* The name of the function executable.
*/
inline bool ExecutableHasBeenSet() const { return m_executableHasBeenSet; }
/**
* The name of the function executable.
*/
inline void SetExecutable(const Aws::String& value) { m_executableHasBeenSet = true; m_executable = value; }
/**
* The name of the function executable.
*/
inline void SetExecutable(Aws::String&& value) { m_executableHasBeenSet = true; m_executable = std::move(value); }
/**
* The name of the function executable.
*/
inline void SetExecutable(const char* value) { m_executableHasBeenSet = true; m_executable.assign(value); }
/**
* The name of the function executable.
*/
inline FunctionConfiguration& WithExecutable(const Aws::String& value) { SetExecutable(value); return *this;}
/**
* The name of the function executable.
*/
inline FunctionConfiguration& WithExecutable(Aws::String&& value) { SetExecutable(std::move(value)); return *this;}
/**
* The name of the function executable.
*/
inline FunctionConfiguration& WithExecutable(const char* value) { SetExecutable(value); return *this;}
/**
* The memory size, in KB, which the function requires. This setting is not
* applicable and should be cleared when you run the Lambda function without
* containerization.
*/
inline int GetMemorySize() const{ return m_memorySize; }
/**
* The memory size, in KB, which the function requires. This setting is not
* applicable and should be cleared when you run the Lambda function without
* containerization.
*/
inline bool MemorySizeHasBeenSet() const { return m_memorySizeHasBeenSet; }
/**
* The memory size, in KB, which the function requires. This setting is not
* applicable and should be cleared when you run the Lambda function without
* containerization.
*/
inline void SetMemorySize(int value) { m_memorySizeHasBeenSet = true; m_memorySize = value; }
/**
* The memory size, in KB, which the function requires. This setting is not
* applicable and should be cleared when you run the Lambda function without
* containerization.
*/
inline FunctionConfiguration& WithMemorySize(int value) { SetMemorySize(value); return *this;}
/**
* True if the function is pinned. Pinned means the function is long-lived and
* starts when the core starts.
*/
inline bool GetPinned() const{ return m_pinned; }
/**
* True if the function is pinned. Pinned means the function is long-lived and
* starts when the core starts.
*/
inline bool PinnedHasBeenSet() const { return m_pinnedHasBeenSet; }
/**
* True if the function is pinned. Pinned means the function is long-lived and
* starts when the core starts.
*/
inline void SetPinned(bool value) { m_pinnedHasBeenSet = true; m_pinned = value; }
/**
* True if the function is pinned. Pinned means the function is long-lived and
* starts when the core starts.
*/
inline FunctionConfiguration& WithPinned(bool value) { SetPinned(value); return *this;}
/**
* The allowed function execution time, after which Lambda should terminate the
* function. This timeout still applies to pinned Lambda functions for each
* request.
*/
inline int GetTimeout() const{ return m_timeout; }
/**
* The allowed function execution time, after which Lambda should terminate the
* function. This timeout still applies to pinned Lambda functions for each
* request.
*/
inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
/**
* The allowed function execution time, after which Lambda should terminate the
* function. This timeout still applies to pinned Lambda functions for each
* request.
*/
inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }
/**
* The allowed function execution time, after which Lambda should terminate the
* function. This timeout still applies to pinned Lambda functions for each
* request.
*/
inline FunctionConfiguration& WithTimeout(int value) { SetTimeout(value); return *this;}
private:
EncodingType m_encodingType;
bool m_encodingTypeHasBeenSet;
FunctionConfigurationEnvironment m_environment;
bool m_environmentHasBeenSet;
Aws::String m_execArgs;
bool m_execArgsHasBeenSet;
Aws::String m_executable;
bool m_executableHasBeenSet;
int m_memorySize;
bool m_memorySizeHasBeenSet;
bool m_pinned;
bool m_pinnedHasBeenSet;
int m_timeout;
bool m_timeoutHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,251 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionExecutionConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/greengrass/model/ResourceAccessPolicy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* The environment configuration of the function.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionConfigurationEnvironment">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionConfigurationEnvironment
{
public:
FunctionConfigurationEnvironment();
FunctionConfigurationEnvironment(Aws::Utils::Json::JsonView jsonValue);
FunctionConfigurationEnvironment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* If true, the Lambda function is allowed to access the host's /sys folder. Use
* this when the Lambda function needs to read device information from /sys. This
* setting applies only when you run the Lambda function in a Greengrass container.
*/
inline bool GetAccessSysfs() const{ return m_accessSysfs; }
/**
* If true, the Lambda function is allowed to access the host's /sys folder. Use
* this when the Lambda function needs to read device information from /sys. This
* setting applies only when you run the Lambda function in a Greengrass container.
*/
inline bool AccessSysfsHasBeenSet() const { return m_accessSysfsHasBeenSet; }
/**
* If true, the Lambda function is allowed to access the host's /sys folder. Use
* this when the Lambda function needs to read device information from /sys. This
* setting applies only when you run the Lambda function in a Greengrass container.
*/
inline void SetAccessSysfs(bool value) { m_accessSysfsHasBeenSet = true; m_accessSysfs = value; }
/**
* If true, the Lambda function is allowed to access the host's /sys folder. Use
* this when the Lambda function needs to read device information from /sys. This
* setting applies only when you run the Lambda function in a Greengrass container.
*/
inline FunctionConfigurationEnvironment& WithAccessSysfs(bool value) { SetAccessSysfs(value); return *this;}
/**
* Configuration related to executing the Lambda function
*/
inline const FunctionExecutionConfig& GetExecution() const{ return m_execution; }
/**
* Configuration related to executing the Lambda function
*/
inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
/**
* Configuration related to executing the Lambda function
*/
inline void SetExecution(const FunctionExecutionConfig& value) { m_executionHasBeenSet = true; m_execution = value; }
/**
* Configuration related to executing the Lambda function
*/
inline void SetExecution(FunctionExecutionConfig&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); }
/**
* Configuration related to executing the Lambda function
*/
inline FunctionConfigurationEnvironment& WithExecution(const FunctionExecutionConfig& value) { SetExecution(value); return *this;}
/**
* Configuration related to executing the Lambda function
*/
inline FunctionConfigurationEnvironment& WithExecution(FunctionExecutionConfig&& value) { SetExecution(std::move(value)); return *this;}
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline const Aws::Vector<ResourceAccessPolicy>& GetResourceAccessPolicies() const{ return m_resourceAccessPolicies; }
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline bool ResourceAccessPoliciesHasBeenSet() const { return m_resourceAccessPoliciesHasBeenSet; }
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline void SetResourceAccessPolicies(const Aws::Vector<ResourceAccessPolicy>& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = value; }
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline void SetResourceAccessPolicies(Aws::Vector<ResourceAccessPolicy>&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies = std::move(value); }
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline FunctionConfigurationEnvironment& WithResourceAccessPolicies(const Aws::Vector<ResourceAccessPolicy>& value) { SetResourceAccessPolicies(value); return *this;}
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline FunctionConfigurationEnvironment& WithResourceAccessPolicies(Aws::Vector<ResourceAccessPolicy>&& value) { SetResourceAccessPolicies(std::move(value)); return *this;}
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(const ResourceAccessPolicy& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(value); return *this; }
/**
* A list of the resources, with their permissions, to which the Lambda function
* will be granted access. A Lambda function can have at most 10 resources.
* ResourceAccessPolicies apply only when you run the Lambda function in a
* Greengrass container.
*/
inline FunctionConfigurationEnvironment& AddResourceAccessPolicies(ResourceAccessPolicy&& value) { m_resourceAccessPoliciesHasBeenSet = true; m_resourceAccessPolicies.push_back(std::move(value)); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
/**
* Environment variables for the Lambda function's configuration.
*/
inline FunctionConfigurationEnvironment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
private:
bool m_accessSysfs;
bool m_accessSysfsHasBeenSet;
FunctionExecutionConfig m_execution;
bool m_executionHasBeenSet;
Aws::Vector<ResourceAccessPolicy> m_resourceAccessPolicies;
bool m_resourceAccessPoliciesHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_variables;
bool m_variablesHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,68 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionDefaultExecutionConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* The default configuration that applies to all Lambda functions in the group.
* Individual Lambda functions can override these settings.<p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionDefaultConfig">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionDefaultConfig
{
public:
FunctionDefaultConfig();
FunctionDefaultConfig(Aws::Utils::Json::JsonView jsonValue);
FunctionDefaultConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const FunctionDefaultExecutionConfig& GetExecution() const{ return m_execution; }
inline bool ExecutionHasBeenSet() const { return m_executionHasBeenSet; }
inline void SetExecution(const FunctionDefaultExecutionConfig& value) { m_executionHasBeenSet = true; m_execution = value; }
inline void SetExecution(FunctionDefaultExecutionConfig&& value) { m_executionHasBeenSet = true; m_execution = std::move(value); }
inline FunctionDefaultConfig& WithExecution(const FunctionDefaultExecutionConfig& value) { SetExecution(value); return *this;}
inline FunctionDefaultConfig& WithExecution(FunctionDefaultExecutionConfig&& value) { SetExecution(std::move(value)); return *this;}
private:
FunctionDefaultExecutionConfig m_execution;
bool m_executionHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionIsolationMode.h>
#include <aws/greengrass/model/FunctionRunAsConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Configuration information that specifies how a Lambda function runs. <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionDefaultExecutionConfig">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionDefaultExecutionConfig
{
public:
FunctionDefaultExecutionConfig();
FunctionDefaultExecutionConfig(Aws::Utils::Json::JsonView jsonValue);
FunctionDefaultExecutionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const FunctionIsolationMode& GetIsolationMode() const{ return m_isolationMode; }
inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
inline void SetIsolationMode(const FunctionIsolationMode& value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; }
inline void SetIsolationMode(FunctionIsolationMode&& value) { m_isolationModeHasBeenSet = true; m_isolationMode = std::move(value); }
inline FunctionDefaultExecutionConfig& WithIsolationMode(const FunctionIsolationMode& value) { SetIsolationMode(value); return *this;}
inline FunctionDefaultExecutionConfig& WithIsolationMode(FunctionIsolationMode&& value) { SetIsolationMode(std::move(value)); return *this;}
inline const FunctionRunAsConfig& GetRunAs() const{ return m_runAs; }
inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
inline void SetRunAs(const FunctionRunAsConfig& value) { m_runAsHasBeenSet = true; m_runAs = value; }
inline void SetRunAs(FunctionRunAsConfig&& value) { m_runAsHasBeenSet = true; m_runAs = std::move(value); }
inline FunctionDefaultExecutionConfig& WithRunAs(const FunctionRunAsConfig& value) { SetRunAs(value); return *this;}
inline FunctionDefaultExecutionConfig& WithRunAs(FunctionRunAsConfig&& value) { SetRunAs(std::move(value)); return *this;}
private:
FunctionIsolationMode m_isolationMode;
bool m_isolationModeHasBeenSet;
FunctionRunAsConfig m_runAs;
bool m_runAsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionDefaultConfig.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/greengrass/model/Function.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Information about a function definition version.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionDefinitionVersion">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionDefinitionVersion
{
public:
FunctionDefinitionVersion();
FunctionDefinitionVersion(Aws::Utils::Json::JsonView jsonValue);
FunctionDefinitionVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline const FunctionDefaultConfig& GetDefaultConfig() const{ return m_defaultConfig; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline bool DefaultConfigHasBeenSet() const { return m_defaultConfigHasBeenSet; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline void SetDefaultConfig(const FunctionDefaultConfig& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = value; }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline void SetDefaultConfig(FunctionDefaultConfig&& value) { m_defaultConfigHasBeenSet = true; m_defaultConfig = std::move(value); }
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline FunctionDefinitionVersion& WithDefaultConfig(const FunctionDefaultConfig& value) { SetDefaultConfig(value); return *this;}
/**
* The default configuration that applies to all Lambda functions in this function
* definition version. Individual Lambda functions can override these settings.
*/
inline FunctionDefinitionVersion& WithDefaultConfig(FunctionDefaultConfig&& value) { SetDefaultConfig(std::move(value)); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline const Aws::Vector<Function>& GetFunctions() const{ return m_functions; }
/**
* A list of Lambda functions in this function definition version.
*/
inline bool FunctionsHasBeenSet() const { return m_functionsHasBeenSet; }
/**
* A list of Lambda functions in this function definition version.
*/
inline void SetFunctions(const Aws::Vector<Function>& value) { m_functionsHasBeenSet = true; m_functions = value; }
/**
* A list of Lambda functions in this function definition version.
*/
inline void SetFunctions(Aws::Vector<Function>&& value) { m_functionsHasBeenSet = true; m_functions = std::move(value); }
/**
* A list of Lambda functions in this function definition version.
*/
inline FunctionDefinitionVersion& WithFunctions(const Aws::Vector<Function>& value) { SetFunctions(value); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline FunctionDefinitionVersion& WithFunctions(Aws::Vector<Function>&& value) { SetFunctions(std::move(value)); return *this;}
/**
* A list of Lambda functions in this function definition version.
*/
inline FunctionDefinitionVersion& AddFunctions(const Function& value) { m_functionsHasBeenSet = true; m_functions.push_back(value); return *this; }
/**
* A list of Lambda functions in this function definition version.
*/
inline FunctionDefinitionVersion& AddFunctions(Function&& value) { m_functionsHasBeenSet = true; m_functions.push_back(std::move(value)); return *this; }
private:
FunctionDefaultConfig m_defaultConfig;
bool m_defaultConfigHasBeenSet;
Aws::Vector<Function> m_functions;
bool m_functionsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/FunctionIsolationMode.h>
#include <aws/greengrass/model/FunctionRunAsConfig.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Configuration information that specifies how a Lambda function runs. <p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionExecutionConfig">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionExecutionConfig
{
public:
FunctionExecutionConfig();
FunctionExecutionConfig(Aws::Utils::Json::JsonView jsonValue);
FunctionExecutionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const FunctionIsolationMode& GetIsolationMode() const{ return m_isolationMode; }
inline bool IsolationModeHasBeenSet() const { return m_isolationModeHasBeenSet; }
inline void SetIsolationMode(const FunctionIsolationMode& value) { m_isolationModeHasBeenSet = true; m_isolationMode = value; }
inline void SetIsolationMode(FunctionIsolationMode&& value) { m_isolationModeHasBeenSet = true; m_isolationMode = std::move(value); }
inline FunctionExecutionConfig& WithIsolationMode(const FunctionIsolationMode& value) { SetIsolationMode(value); return *this;}
inline FunctionExecutionConfig& WithIsolationMode(FunctionIsolationMode&& value) { SetIsolationMode(std::move(value)); return *this;}
inline const FunctionRunAsConfig& GetRunAs() const{ return m_runAs; }
inline bool RunAsHasBeenSet() const { return m_runAsHasBeenSet; }
inline void SetRunAs(const FunctionRunAsConfig& value) { m_runAsHasBeenSet = true; m_runAs = value; }
inline void SetRunAs(FunctionRunAsConfig&& value) { m_runAsHasBeenSet = true; m_runAs = std::move(value); }
inline FunctionExecutionConfig& WithRunAs(const FunctionRunAsConfig& value) { SetRunAs(value); return *this;}
inline FunctionExecutionConfig& WithRunAs(FunctionRunAsConfig&& value) { SetRunAs(std::move(value)); return *this;}
private:
FunctionIsolationMode m_isolationMode;
bool m_isolationModeHasBeenSet;
FunctionRunAsConfig m_runAs;
bool m_runAsHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
enum class FunctionIsolationMode
{
NOT_SET,
GreengrassContainer,
NoContainer
};
namespace FunctionIsolationModeMapper
{
AWS_GREENGRASS_API FunctionIsolationMode GetFunctionIsolationModeForName(const Aws::String& name);
AWS_GREENGRASS_API Aws::String GetNameForFunctionIsolationMode(FunctionIsolationMode value);
} // namespace FunctionIsolationModeMapper
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* Specifies the user and group whose permissions are used when running the Lambda
* function. You can specify one or both values to override the default values. We
* recommend that you avoid running as root unless absolutely necessary to minimize
* the risk of unintended changes or malicious attacks. To run as root, you must
* set ''IsolationMode'' to ''NoContainer'' and update config.json in
* ''greengrass-root/config'' to set ''allowFunctionsToRunAsRoot'' to
* ''yes''.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionRunAsConfig">AWS
* API Reference</a></p>
*/
class AWS_GREENGRASS_API FunctionRunAsConfig
{
public:
FunctionRunAsConfig();
FunctionRunAsConfig(Aws::Utils::Json::JsonView jsonValue);
FunctionRunAsConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The group ID whose permissions are used to run a Lambda function.
*/
inline int GetGid() const{ return m_gid; }
/**
* The group ID whose permissions are used to run a Lambda function.
*/
inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
/**
* The group ID whose permissions are used to run a Lambda function.
*/
inline void SetGid(int value) { m_gidHasBeenSet = true; m_gid = value; }
/**
* The group ID whose permissions are used to run a Lambda function.
*/
inline FunctionRunAsConfig& WithGid(int value) { SetGid(value); return *this;}
/**
* The user ID whose permissions are used to run a Lambda function.
*/
inline int GetUid() const{ return m_uid; }
/**
* The user ID whose permissions are used to run a Lambda function.
*/
inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
/**
* The user ID whose permissions are used to run a Lambda function.
*/
inline void SetUid(int value) { m_uidHasBeenSet = true; m_uid = value; }
/**
* The user ID whose permissions are used to run a Lambda function.
*/
inline FunctionRunAsConfig& WithUid(int value) { SetUid(value); return *this;}
private:
int m_gid;
bool m_gidHasBeenSet;
int m_uid;
bool m_uidHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API GetAssociatedRoleRequest : public GreengrassRequest
{
public:
GetAssociatedRoleRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetAssociatedRole"; }
Aws::String SerializePayload() const override;
/**
* The ID of the Greengrass group.
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* The ID of the Greengrass group.
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* The ID of the Greengrass group.
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* The ID of the Greengrass group.
*/
inline GetAssociatedRoleRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* The ID of the Greengrass group.
*/
inline GetAssociatedRoleRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* The ID of the Greengrass group.
*/
inline GetAssociatedRoleRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API GetAssociatedRoleResult
{
public:
GetAssociatedRoleResult();
GetAssociatedRoleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAssociatedRoleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* The time when the role was associated with the group.
*/
inline const Aws::String& GetAssociatedAt() const{ return m_associatedAt; }
/**
* The time when the role was associated with the group.
*/
inline void SetAssociatedAt(const Aws::String& value) { m_associatedAt = value; }
/**
* The time when the role was associated with the group.
*/
inline void SetAssociatedAt(Aws::String&& value) { m_associatedAt = std::move(value); }
/**
* The time when the role was associated with the group.
*/
inline void SetAssociatedAt(const char* value) { m_associatedAt.assign(value); }
/**
* The time when the role was associated with the group.
*/
inline GetAssociatedRoleResult& WithAssociatedAt(const Aws::String& value) { SetAssociatedAt(value); return *this;}
/**
* The time when the role was associated with the group.
*/
inline GetAssociatedRoleResult& WithAssociatedAt(Aws::String&& value) { SetAssociatedAt(std::move(value)); return *this;}
/**
* The time when the role was associated with the group.
*/
inline GetAssociatedRoleResult& WithAssociatedAt(const char* value) { SetAssociatedAt(value); return *this;}
/**
* The ARN of the role that is associated with the group.
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* The ARN of the role that is associated with the group.
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
/**
* The ARN of the role that is associated with the group.
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
/**
* The ARN of the role that is associated with the group.
*/
inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
/**
* The ARN of the role that is associated with the group.
*/
inline GetAssociatedRoleResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* The ARN of the role that is associated with the group.
*/
inline GetAssociatedRoleResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* The ARN of the role that is associated with the group.
*/
inline GetAssociatedRoleResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
private:
Aws::String m_associatedAt;
Aws::String m_roleArn;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API GetBulkDeploymentStatusRequest : public GreengrassRequest
{
public:
GetBulkDeploymentStatusRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetBulkDeploymentStatus"; }
Aws::String SerializePayload() const override;
/**
* The ID of the bulk deployment.
*/
inline const Aws::String& GetBulkDeploymentId() const{ return m_bulkDeploymentId; }
/**
* The ID of the bulk deployment.
*/
inline bool BulkDeploymentIdHasBeenSet() const { return m_bulkDeploymentIdHasBeenSet; }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(const Aws::String& value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId = value; }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(Aws::String&& value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId = std::move(value); }
/**
* The ID of the bulk deployment.
*/
inline void SetBulkDeploymentId(const char* value) { m_bulkDeploymentIdHasBeenSet = true; m_bulkDeploymentId.assign(value); }
/**
* The ID of the bulk deployment.
*/
inline GetBulkDeploymentStatusRequest& WithBulkDeploymentId(const Aws::String& value) { SetBulkDeploymentId(value); return *this;}
/**
* The ID of the bulk deployment.
*/
inline GetBulkDeploymentStatusRequest& WithBulkDeploymentId(Aws::String&& value) { SetBulkDeploymentId(std::move(value)); return *this;}
/**
* The ID of the bulk deployment.
*/
inline GetBulkDeploymentStatusRequest& WithBulkDeploymentId(const char* value) { SetBulkDeploymentId(value); return *this;}
private:
Aws::String m_bulkDeploymentId;
bool m_bulkDeploymentIdHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,277 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/model/BulkDeploymentMetrics.h>
#include <aws/greengrass/model/BulkDeploymentStatus.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/greengrass/model/ErrorDetail.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
class AWS_GREENGRASS_API GetBulkDeploymentStatusResult
{
public:
GetBulkDeploymentStatusResult();
GetBulkDeploymentStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetBulkDeploymentStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* Relevant metrics on input records processed during bulk deployment.
*/
inline const BulkDeploymentMetrics& GetBulkDeploymentMetrics() const{ return m_bulkDeploymentMetrics; }
/**
* Relevant metrics on input records processed during bulk deployment.
*/
inline void SetBulkDeploymentMetrics(const BulkDeploymentMetrics& value) { m_bulkDeploymentMetrics = value; }
/**
* Relevant metrics on input records processed during bulk deployment.
*/
inline void SetBulkDeploymentMetrics(BulkDeploymentMetrics&& value) { m_bulkDeploymentMetrics = std::move(value); }
/**
* Relevant metrics on input records processed during bulk deployment.
*/
inline GetBulkDeploymentStatusResult& WithBulkDeploymentMetrics(const BulkDeploymentMetrics& value) { SetBulkDeploymentMetrics(value); return *this;}
/**
* Relevant metrics on input records processed during bulk deployment.
*/
inline GetBulkDeploymentStatusResult& WithBulkDeploymentMetrics(BulkDeploymentMetrics&& value) { SetBulkDeploymentMetrics(std::move(value)); return *this;}
/**
* The status of the bulk deployment.
*/
inline const BulkDeploymentStatus& GetBulkDeploymentStatus() const{ return m_bulkDeploymentStatus; }
/**
* The status of the bulk deployment.
*/
inline void SetBulkDeploymentStatus(const BulkDeploymentStatus& value) { m_bulkDeploymentStatus = value; }
/**
* The status of the bulk deployment.
*/
inline void SetBulkDeploymentStatus(BulkDeploymentStatus&& value) { m_bulkDeploymentStatus = std::move(value); }
/**
* The status of the bulk deployment.
*/
inline GetBulkDeploymentStatusResult& WithBulkDeploymentStatus(const BulkDeploymentStatus& value) { SetBulkDeploymentStatus(value); return *this;}
/**
* The status of the bulk deployment.
*/
inline GetBulkDeploymentStatusResult& WithBulkDeploymentStatus(BulkDeploymentStatus&& value) { SetBulkDeploymentStatus(std::move(value)); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline const Aws::String& GetCreatedAt() const{ return m_createdAt; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const Aws::String& value) { m_createdAt = value; }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(Aws::String&& value) { m_createdAt = std::move(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline void SetCreatedAt(const char* value) { m_createdAt.assign(value); }
/**
* The time, in ISO format, when the deployment was created.
*/
inline GetBulkDeploymentStatusResult& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline GetBulkDeploymentStatusResult& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* The time, in ISO format, when the deployment was created.
*/
inline GetBulkDeploymentStatusResult& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;}
/**
* Error details
*/
inline const Aws::Vector<ErrorDetail>& GetErrorDetails() const{ return m_errorDetails; }
/**
* Error details
*/
inline void SetErrorDetails(const Aws::Vector<ErrorDetail>& value) { m_errorDetails = value; }
/**
* Error details
*/
inline void SetErrorDetails(Aws::Vector<ErrorDetail>&& value) { m_errorDetails = std::move(value); }
/**
* Error details
*/
inline GetBulkDeploymentStatusResult& WithErrorDetails(const Aws::Vector<ErrorDetail>& value) { SetErrorDetails(value); return *this;}
/**
* Error details
*/
inline GetBulkDeploymentStatusResult& WithErrorDetails(Aws::Vector<ErrorDetail>&& value) { SetErrorDetails(std::move(value)); return *this;}
/**
* Error details
*/
inline GetBulkDeploymentStatusResult& AddErrorDetails(const ErrorDetail& value) { m_errorDetails.push_back(value); return *this; }
/**
* Error details
*/
inline GetBulkDeploymentStatusResult& AddErrorDetails(ErrorDetail&& value) { m_errorDetails.push_back(std::move(value)); return *this; }
/**
* Error message
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* Error message
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; }
/**
* Error message
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); }
/**
* Error message
*/
inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); }
/**
* Error message
*/
inline GetBulkDeploymentStatusResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* Error message
*/
inline GetBulkDeploymentStatusResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* Error message
*/
inline GetBulkDeploymentStatusResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* Tag(s) attached to the resource arn.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* Tag(s) attached to the resource arn.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* Tag(s) attached to the resource arn.
*/
inline GetBulkDeploymentStatusResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
BulkDeploymentMetrics m_bulkDeploymentMetrics;
BulkDeploymentStatus m_bulkDeploymentStatus;
Aws::String m_createdAt;
Aws::Vector<ErrorDetail> m_errorDetails;
Aws::String m_errorMessage;
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/greengrass/Greengrass_EXPORTS.h>
#include <aws/greengrass/GreengrassRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Greengrass
{
namespace Model
{
/**
*/
class AWS_GREENGRASS_API GetConnectivityInfoRequest : public GreengrassRequest
{
public:
GetConnectivityInfoRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetConnectivityInfo"; }
Aws::String SerializePayload() const override;
/**
* The thing name.
*/
inline const Aws::String& GetThingName() const{ return m_thingName; }
/**
* The thing name.
*/
inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
/**
* The thing name.
*/
inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
/**
* The thing name.
*/
inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
/**
* The thing name.
*/
inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
/**
* The thing name.
*/
inline GetConnectivityInfoRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
/**
* The thing name.
*/
inline GetConnectivityInfoRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
/**
* The thing name.
*/
inline GetConnectivityInfoRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
private:
Aws::String m_thingName;
bool m_thingNameHasBeenSet;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More