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

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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace SMSEndpoint
{
AWS_SMS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace SMSEndpoint
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_SMS_API SMSErrorMarshaller : 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,82 @@
/**
* 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/sms/SMS_EXPORTS.h>
namespace Aws
{
namespace SMS
{
enum class SMSErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
DRY_RUN_OPERATION= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_PARAMETER,
MISSING_REQUIRED_PARAMETER,
NO_CONNECTORS_AVAILABLE,
OPERATION_NOT_PERMITTED,
REPLICATION_JOB_ALREADY_EXISTS,
REPLICATION_JOB_NOT_FOUND,
REPLICATION_RUN_LIMIT_EXCEEDED,
SERVER_CANNOT_BE_REPLICATED,
TEMPORARILY_UNAVAILABLE,
UNAUTHORIZED_OPERATION
};
class AWS_SMS_API SMSError : public Aws::Client::AWSError<SMSErrors>
{
public:
SMSError() {}
SMSError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<SMSErrors>(rhs) {}
SMSError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<SMSErrors>(rhs) {}
SMSError(const Aws::Client::AWSError<SMSErrors>& rhs) : Aws::Client::AWSError<SMSErrors>(rhs) {}
SMSError(Aws::Client::AWSError<SMSErrors>&& rhs) : Aws::Client::AWSError<SMSErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace SMSErrorMapper
{
AWS_SMS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace SMS
{
class AWS_SMS_API SMSRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~SMSRequest () {}
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, "2016-10-24"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace SMS
} // 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_SMS_EXPORTS
#define AWS_SMS_API __declspec(dllexport)
#else
#define AWS_SMS_API __declspec(dllimport)
#endif /* AWS_SMS_EXPORTS */
#else
#define AWS_SMS_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_SMS_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppLaunchConfigurationStatus
{
NOT_SET,
NOT_CONFIGURED,
CONFIGURED
};
namespace AppLaunchConfigurationStatusMapper
{
AWS_SMS_API AppLaunchConfigurationStatus GetAppLaunchConfigurationStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppLaunchConfigurationStatus(AppLaunchConfigurationStatus value);
} // namespace AppLaunchConfigurationStatusMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,44 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppLaunchStatus
{
NOT_SET,
READY_FOR_CONFIGURATION,
CONFIGURATION_IN_PROGRESS,
CONFIGURATION_INVALID,
READY_FOR_LAUNCH,
VALIDATION_IN_PROGRESS,
LAUNCH_PENDING,
LAUNCH_IN_PROGRESS,
LAUNCHED,
PARTIALLY_LAUNCHED,
DELTA_LAUNCH_IN_PROGRESS,
DELTA_LAUNCH_FAILED,
LAUNCH_FAILED,
TERMINATE_IN_PROGRESS,
TERMINATE_FAILED,
TERMINATED
};
namespace AppLaunchStatusMapper
{
AWS_SMS_API AppLaunchStatus GetAppLaunchStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppLaunchStatus(AppLaunchStatus value);
} // namespace AppLaunchStatusMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppReplicationConfigurationStatus
{
NOT_SET,
NOT_CONFIGURED,
CONFIGURED
};
namespace AppReplicationConfigurationStatusMapper
{
AWS_SMS_API AppReplicationConfigurationStatus GetAppReplicationConfigurationStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppReplicationConfigurationStatus(AppReplicationConfigurationStatus value);
} // namespace AppReplicationConfigurationStatusMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,45 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppReplicationStatus
{
NOT_SET,
READY_FOR_CONFIGURATION,
CONFIGURATION_IN_PROGRESS,
CONFIGURATION_INVALID,
READY_FOR_REPLICATION,
VALIDATION_IN_PROGRESS,
REPLICATION_PENDING,
REPLICATION_IN_PROGRESS,
REPLICATED,
PARTIALLY_REPLICATED,
DELTA_REPLICATION_IN_PROGRESS,
DELTA_REPLICATED,
DELTA_REPLICATION_FAILED,
REPLICATION_FAILED,
REPLICATION_STOPPING,
REPLICATION_STOP_FAILED,
REPLICATION_STOPPED
};
namespace AppReplicationStatusMapper
{
AWS_SMS_API AppReplicationStatus GetAppReplicationStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppReplicationStatus(AppReplicationStatus value);
} // namespace AppReplicationStatusMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppStatus
{
NOT_SET,
CREATING,
ACTIVE,
UPDATING,
DELETING,
DELETED,
DELETE_FAILED
};
namespace AppStatusMapper
{
AWS_SMS_API AppStatus GetAppStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppStatus(AppStatus value);
} // namespace AppStatusMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,757 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/AppStatus.h>
#include <aws/sms/model/AppReplicationConfigurationStatus.h>
#include <aws/sms/model/AppReplicationStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/AppLaunchConfigurationStatus.h>
#include <aws/sms/model/AppLaunchStatus.h>
#include <aws/sms/model/LaunchDetails.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Information about the application.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/AppSummary">AWS API
* Reference</a></p>
*/
class AWS_SMS_API AppSummary
{
public:
AppSummary();
AppSummary(Aws::Utils::Json::JsonView jsonValue);
AppSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The unique ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The unique ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The unique ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The unique ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The unique ID of the application.</p>
*/
inline AppSummary& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The unique ID of the application.</p>
*/
inline AppSummary& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The unique ID of the application.</p>
*/
inline AppSummary& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetImportedAppId() const{ return m_importedAppId; }
/**
* <p>The ID of the application.</p>
*/
inline bool ImportedAppIdHasBeenSet() const { return m_importedAppIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetImportedAppId(const Aws::String& value) { m_importedAppIdHasBeenSet = true; m_importedAppId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetImportedAppId(Aws::String&& value) { m_importedAppIdHasBeenSet = true; m_importedAppId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetImportedAppId(const char* value) { m_importedAppIdHasBeenSet = true; m_importedAppId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline AppSummary& WithImportedAppId(const Aws::String& value) { SetImportedAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline AppSummary& WithImportedAppId(Aws::String&& value) { SetImportedAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline AppSummary& WithImportedAppId(const char* value) { SetImportedAppId(value); return *this;}
/**
* <p>The name of the application.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the application.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the application.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the application.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the application.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the application.</p>
*/
inline AppSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the application.</p>
*/
inline AppSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the application.</p>
*/
inline AppSummary& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the application.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the application.</p>
*/
inline AppSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline AppSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the application.</p>
*/
inline AppSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Status of the application.</p>
*/
inline const AppStatus& GetStatus() const{ return m_status; }
/**
* <p>Status of the application.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Status of the application.</p>
*/
inline void SetStatus(const AppStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Status of the application.</p>
*/
inline void SetStatus(AppStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Status of the application.</p>
*/
inline AppSummary& WithStatus(const AppStatus& value) { SetStatus(value); return *this;}
/**
* <p>Status of the application.</p>
*/
inline AppSummary& WithStatus(AppStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A message related to the status of the application</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>A message related to the status of the application</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>A message related to the status of the application</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>A message related to the status of the application</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>A message related to the status of the application</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>A message related to the status of the application</p>
*/
inline AppSummary& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>A message related to the status of the application</p>
*/
inline AppSummary& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>A message related to the status of the application</p>
*/
inline AppSummary& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>Status of the replication configuration.</p>
*/
inline const AppReplicationConfigurationStatus& GetReplicationConfigurationStatus() const{ return m_replicationConfigurationStatus; }
/**
* <p>Status of the replication configuration.</p>
*/
inline bool ReplicationConfigurationStatusHasBeenSet() const { return m_replicationConfigurationStatusHasBeenSet; }
/**
* <p>Status of the replication configuration.</p>
*/
inline void SetReplicationConfigurationStatus(const AppReplicationConfigurationStatus& value) { m_replicationConfigurationStatusHasBeenSet = true; m_replicationConfigurationStatus = value; }
/**
* <p>Status of the replication configuration.</p>
*/
inline void SetReplicationConfigurationStatus(AppReplicationConfigurationStatus&& value) { m_replicationConfigurationStatusHasBeenSet = true; m_replicationConfigurationStatus = std::move(value); }
/**
* <p>Status of the replication configuration.</p>
*/
inline AppSummary& WithReplicationConfigurationStatus(const AppReplicationConfigurationStatus& value) { SetReplicationConfigurationStatus(value); return *this;}
/**
* <p>Status of the replication configuration.</p>
*/
inline AppSummary& WithReplicationConfigurationStatus(AppReplicationConfigurationStatus&& value) { SetReplicationConfigurationStatus(std::move(value)); return *this;}
/**
* <p>The replication status of the application.</p>
*/
inline const AppReplicationStatus& GetReplicationStatus() const{ return m_replicationStatus; }
/**
* <p>The replication status of the application.</p>
*/
inline bool ReplicationStatusHasBeenSet() const { return m_replicationStatusHasBeenSet; }
/**
* <p>The replication status of the application.</p>
*/
inline void SetReplicationStatus(const AppReplicationStatus& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = value; }
/**
* <p>The replication status of the application.</p>
*/
inline void SetReplicationStatus(AppReplicationStatus&& value) { m_replicationStatusHasBeenSet = true; m_replicationStatus = std::move(value); }
/**
* <p>The replication status of the application.</p>
*/
inline AppSummary& WithReplicationStatus(const AppReplicationStatus& value) { SetReplicationStatus(value); return *this;}
/**
* <p>The replication status of the application.</p>
*/
inline AppSummary& WithReplicationStatus(AppReplicationStatus&& value) { SetReplicationStatus(std::move(value)); return *this;}
/**
* <p>A message related to the replication status of the application.</p>
*/
inline const Aws::String& GetReplicationStatusMessage() const{ return m_replicationStatusMessage; }
/**
* <p>A message related to the replication status of the application.</p>
*/
inline bool ReplicationStatusMessageHasBeenSet() const { return m_replicationStatusMessageHasBeenSet; }
/**
* <p>A message related to the replication status of the application.</p>
*/
inline void SetReplicationStatusMessage(const Aws::String& value) { m_replicationStatusMessageHasBeenSet = true; m_replicationStatusMessage = value; }
/**
* <p>A message related to the replication status of the application.</p>
*/
inline void SetReplicationStatusMessage(Aws::String&& value) { m_replicationStatusMessageHasBeenSet = true; m_replicationStatusMessage = std::move(value); }
/**
* <p>A message related to the replication status of the application.</p>
*/
inline void SetReplicationStatusMessage(const char* value) { m_replicationStatusMessageHasBeenSet = true; m_replicationStatusMessage.assign(value); }
/**
* <p>A message related to the replication status of the application.</p>
*/
inline AppSummary& WithReplicationStatusMessage(const Aws::String& value) { SetReplicationStatusMessage(value); return *this;}
/**
* <p>A message related to the replication status of the application.</p>
*/
inline AppSummary& WithReplicationStatusMessage(Aws::String&& value) { SetReplicationStatusMessage(std::move(value)); return *this;}
/**
* <p>A message related to the replication status of the application.</p>
*/
inline AppSummary& WithReplicationStatusMessage(const char* value) { SetReplicationStatusMessage(value); return *this;}
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline const Aws::Utils::DateTime& GetLatestReplicationTime() const{ return m_latestReplicationTime; }
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline bool LatestReplicationTimeHasBeenSet() const { return m_latestReplicationTimeHasBeenSet; }
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline void SetLatestReplicationTime(const Aws::Utils::DateTime& value) { m_latestReplicationTimeHasBeenSet = true; m_latestReplicationTime = value; }
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline void SetLatestReplicationTime(Aws::Utils::DateTime&& value) { m_latestReplicationTimeHasBeenSet = true; m_latestReplicationTime = std::move(value); }
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline AppSummary& WithLatestReplicationTime(const Aws::Utils::DateTime& value) { SetLatestReplicationTime(value); return *this;}
/**
* <p>The timestamp of the application's most recent successful replication.</p>
*/
inline AppSummary& WithLatestReplicationTime(Aws::Utils::DateTime&& value) { SetLatestReplicationTime(std::move(value)); return *this;}
/**
* <p>Status of the launch configuration.</p>
*/
inline const AppLaunchConfigurationStatus& GetLaunchConfigurationStatus() const{ return m_launchConfigurationStatus; }
/**
* <p>Status of the launch configuration.</p>
*/
inline bool LaunchConfigurationStatusHasBeenSet() const { return m_launchConfigurationStatusHasBeenSet; }
/**
* <p>Status of the launch configuration.</p>
*/
inline void SetLaunchConfigurationStatus(const AppLaunchConfigurationStatus& value) { m_launchConfigurationStatusHasBeenSet = true; m_launchConfigurationStatus = value; }
/**
* <p>Status of the launch configuration.</p>
*/
inline void SetLaunchConfigurationStatus(AppLaunchConfigurationStatus&& value) { m_launchConfigurationStatusHasBeenSet = true; m_launchConfigurationStatus = std::move(value); }
/**
* <p>Status of the launch configuration.</p>
*/
inline AppSummary& WithLaunchConfigurationStatus(const AppLaunchConfigurationStatus& value) { SetLaunchConfigurationStatus(value); return *this;}
/**
* <p>Status of the launch configuration.</p>
*/
inline AppSummary& WithLaunchConfigurationStatus(AppLaunchConfigurationStatus&& value) { SetLaunchConfigurationStatus(std::move(value)); return *this;}
/**
* <p>The launch status of the application.</p>
*/
inline const AppLaunchStatus& GetLaunchStatus() const{ return m_launchStatus; }
/**
* <p>The launch status of the application.</p>
*/
inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; }
/**
* <p>The launch status of the application.</p>
*/
inline void SetLaunchStatus(const AppLaunchStatus& value) { m_launchStatusHasBeenSet = true; m_launchStatus = value; }
/**
* <p>The launch status of the application.</p>
*/
inline void SetLaunchStatus(AppLaunchStatus&& value) { m_launchStatusHasBeenSet = true; m_launchStatus = std::move(value); }
/**
* <p>The launch status of the application.</p>
*/
inline AppSummary& WithLaunchStatus(const AppLaunchStatus& value) { SetLaunchStatus(value); return *this;}
/**
* <p>The launch status of the application.</p>
*/
inline AppSummary& WithLaunchStatus(AppLaunchStatus&& value) { SetLaunchStatus(std::move(value)); return *this;}
/**
* <p>A message related to the launch status of the application.</p>
*/
inline const Aws::String& GetLaunchStatusMessage() const{ return m_launchStatusMessage; }
/**
* <p>A message related to the launch status of the application.</p>
*/
inline bool LaunchStatusMessageHasBeenSet() const { return m_launchStatusMessageHasBeenSet; }
/**
* <p>A message related to the launch status of the application.</p>
*/
inline void SetLaunchStatusMessage(const Aws::String& value) { m_launchStatusMessageHasBeenSet = true; m_launchStatusMessage = value; }
/**
* <p>A message related to the launch status of the application.</p>
*/
inline void SetLaunchStatusMessage(Aws::String&& value) { m_launchStatusMessageHasBeenSet = true; m_launchStatusMessage = std::move(value); }
/**
* <p>A message related to the launch status of the application.</p>
*/
inline void SetLaunchStatusMessage(const char* value) { m_launchStatusMessageHasBeenSet = true; m_launchStatusMessage.assign(value); }
/**
* <p>A message related to the launch status of the application.</p>
*/
inline AppSummary& WithLaunchStatusMessage(const Aws::String& value) { SetLaunchStatusMessage(value); return *this;}
/**
* <p>A message related to the launch status of the application.</p>
*/
inline AppSummary& WithLaunchStatusMessage(Aws::String&& value) { SetLaunchStatusMessage(std::move(value)); return *this;}
/**
* <p>A message related to the launch status of the application.</p>
*/
inline AppSummary& WithLaunchStatusMessage(const char* value) { SetLaunchStatusMessage(value); return *this;}
/**
* <p>Details about the latest launch of the application.</p>
*/
inline const LaunchDetails& GetLaunchDetails() const{ return m_launchDetails; }
/**
* <p>Details about the latest launch of the application.</p>
*/
inline bool LaunchDetailsHasBeenSet() const { return m_launchDetailsHasBeenSet; }
/**
* <p>Details about the latest launch of the application.</p>
*/
inline void SetLaunchDetails(const LaunchDetails& value) { m_launchDetailsHasBeenSet = true; m_launchDetails = value; }
/**
* <p>Details about the latest launch of the application.</p>
*/
inline void SetLaunchDetails(LaunchDetails&& value) { m_launchDetailsHasBeenSet = true; m_launchDetails = std::move(value); }
/**
* <p>Details about the latest launch of the application.</p>
*/
inline AppSummary& WithLaunchDetails(const LaunchDetails& value) { SetLaunchDetails(value); return *this;}
/**
* <p>Details about the latest launch of the application.</p>
*/
inline AppSummary& WithLaunchDetails(LaunchDetails&& value) { SetLaunchDetails(std::move(value)); return *this;}
/**
* <p>The creation time of the application.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The creation time of the application.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The creation time of the application.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The creation time of the application.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The creation time of the application.</p>
*/
inline AppSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The creation time of the application.</p>
*/
inline AppSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last modified time of the application.</p>
*/
inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
/**
* <p>The last modified time of the application.</p>
*/
inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
/**
* <p>The last modified time of the application.</p>
*/
inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
/**
* <p>The last modified time of the application.</p>
*/
inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
/**
* <p>The last modified time of the application.</p>
*/
inline AppSummary& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
/**
* <p>The last modified time of the application.</p>
*/
inline AppSummary& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline AppSummary& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline AppSummary& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the service role in the customer's account used by AWS SMS.</p>
*/
inline AppSummary& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>The number of server groups present in the application.</p>
*/
inline int GetTotalServerGroups() const{ return m_totalServerGroups; }
/**
* <p>The number of server groups present in the application.</p>
*/
inline bool TotalServerGroupsHasBeenSet() const { return m_totalServerGroupsHasBeenSet; }
/**
* <p>The number of server groups present in the application.</p>
*/
inline void SetTotalServerGroups(int value) { m_totalServerGroupsHasBeenSet = true; m_totalServerGroups = value; }
/**
* <p>The number of server groups present in the application.</p>
*/
inline AppSummary& WithTotalServerGroups(int value) { SetTotalServerGroups(value); return *this;}
/**
* <p>The number of servers present in the application.</p>
*/
inline int GetTotalServers() const{ return m_totalServers; }
/**
* <p>The number of servers present in the application.</p>
*/
inline bool TotalServersHasBeenSet() const { return m_totalServersHasBeenSet; }
/**
* <p>The number of servers present in the application.</p>
*/
inline void SetTotalServers(int value) { m_totalServersHasBeenSet = true; m_totalServers = value; }
/**
* <p>The number of servers present in the application.</p>
*/
inline AppSummary& WithTotalServers(int value) { SetTotalServers(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
Aws::String m_importedAppId;
bool m_importedAppIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
AppStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
AppReplicationConfigurationStatus m_replicationConfigurationStatus;
bool m_replicationConfigurationStatusHasBeenSet;
AppReplicationStatus m_replicationStatus;
bool m_replicationStatusHasBeenSet;
Aws::String m_replicationStatusMessage;
bool m_replicationStatusMessageHasBeenSet;
Aws::Utils::DateTime m_latestReplicationTime;
bool m_latestReplicationTimeHasBeenSet;
AppLaunchConfigurationStatus m_launchConfigurationStatus;
bool m_launchConfigurationStatusHasBeenSet;
AppLaunchStatus m_launchStatus;
bool m_launchStatusHasBeenSet;
Aws::String m_launchStatusMessage;
bool m_launchStatusMessageHasBeenSet;
LaunchDetails m_launchDetails;
bool m_launchDetailsHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastModified;
bool m_lastModifiedHasBeenSet;
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
int m_totalServerGroups;
bool m_totalServerGroupsHasBeenSet;
int m_totalServers;
bool m_totalServersHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/AppValidationStrategy.h>
#include <aws/sms/model/SSMValidationParameters.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Configuration for validating an application.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/AppValidationConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API AppValidationConfiguration
{
public:
AppValidationConfiguration();
AppValidationConfiguration(Aws::Utils::Json::JsonView jsonValue);
AppValidationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the validation.</p>
*/
inline const Aws::String& GetValidationId() const{ return m_validationId; }
/**
* <p>The ID of the validation.</p>
*/
inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); }
/**
* <p>The ID of the validation.</p>
*/
inline AppValidationConfiguration& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline AppValidationConfiguration& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline AppValidationConfiguration& WithValidationId(const char* value) { SetValidationId(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline AppValidationConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline AppValidationConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline AppValidationConfiguration& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The validation strategy.</p>
*/
inline const AppValidationStrategy& GetAppValidationStrategy() const{ return m_appValidationStrategy; }
/**
* <p>The validation strategy.</p>
*/
inline bool AppValidationStrategyHasBeenSet() const { return m_appValidationStrategyHasBeenSet; }
/**
* <p>The validation strategy.</p>
*/
inline void SetAppValidationStrategy(const AppValidationStrategy& value) { m_appValidationStrategyHasBeenSet = true; m_appValidationStrategy = value; }
/**
* <p>The validation strategy.</p>
*/
inline void SetAppValidationStrategy(AppValidationStrategy&& value) { m_appValidationStrategyHasBeenSet = true; m_appValidationStrategy = std::move(value); }
/**
* <p>The validation strategy.</p>
*/
inline AppValidationConfiguration& WithAppValidationStrategy(const AppValidationStrategy& value) { SetAppValidationStrategy(value); return *this;}
/**
* <p>The validation strategy.</p>
*/
inline AppValidationConfiguration& WithAppValidationStrategy(AppValidationStrategy&& value) { SetAppValidationStrategy(std::move(value)); return *this;}
/**
* <p>The validation parameters.</p>
*/
inline const SSMValidationParameters& GetSsmValidationParameters() const{ return m_ssmValidationParameters; }
/**
* <p>The validation parameters.</p>
*/
inline bool SsmValidationParametersHasBeenSet() const { return m_ssmValidationParametersHasBeenSet; }
/**
* <p>The validation parameters.</p>
*/
inline void SetSsmValidationParameters(const SSMValidationParameters& value) { m_ssmValidationParametersHasBeenSet = true; m_ssmValidationParameters = value; }
/**
* <p>The validation parameters.</p>
*/
inline void SetSsmValidationParameters(SSMValidationParameters&& value) { m_ssmValidationParametersHasBeenSet = true; m_ssmValidationParameters = std::move(value); }
/**
* <p>The validation parameters.</p>
*/
inline AppValidationConfiguration& WithSsmValidationParameters(const SSMValidationParameters& value) { SetSsmValidationParameters(value); return *this;}
/**
* <p>The validation parameters.</p>
*/
inline AppValidationConfiguration& WithSsmValidationParameters(SSMValidationParameters&& value) { SetSsmValidationParameters(std::move(value)); return *this;}
private:
Aws::String m_validationId;
bool m_validationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
AppValidationStrategy m_appValidationStrategy;
bool m_appValidationStrategyHasBeenSet;
SSMValidationParameters m_ssmValidationParameters;
bool m_ssmValidationParametersHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/SSMOutput.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Output from validating an application.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/AppValidationOutput">AWS
* API Reference</a></p>
*/
class AWS_SMS_API AppValidationOutput
{
public:
AppValidationOutput();
AppValidationOutput(Aws::Utils::Json::JsonView jsonValue);
AppValidationOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline const SSMOutput& GetSsmOutput() const{ return m_ssmOutput; }
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline bool SsmOutputHasBeenSet() const { return m_ssmOutputHasBeenSet; }
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline void SetSsmOutput(const SSMOutput& value) { m_ssmOutputHasBeenSet = true; m_ssmOutput = value; }
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline void SetSsmOutput(SSMOutput&& value) { m_ssmOutputHasBeenSet = true; m_ssmOutput = std::move(value); }
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline AppValidationOutput& WithSsmOutput(const SSMOutput& value) { SetSsmOutput(value); return *this;}
/**
* <p>Output from using SSM to validate the application.</p>
*/
inline AppValidationOutput& WithSsmOutput(SSMOutput&& value) { SetSsmOutput(std::move(value)); return *this;}
private:
SSMOutput m_ssmOutput;
bool m_ssmOutputHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class AppValidationStrategy
{
NOT_SET,
SSM
};
namespace AppValidationStrategyMapper
{
AWS_SMS_API AppValidationStrategy GetAppValidationStrategyForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForAppValidationStrategy(AppValidationStrategy value);
} // namespace AppValidationStrategyMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,459 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ConnectorStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/VmManagerType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/ConnectorCapability.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Represents a connector.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/Connector">AWS API
* Reference</a></p>
*/
class AWS_SMS_API Connector
{
public:
Connector();
Connector(Aws::Utils::Json::JsonView jsonValue);
Connector& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the connector.</p>
*/
inline const Aws::String& GetConnectorId() const{ return m_connectorId; }
/**
* <p>The ID of the connector.</p>
*/
inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); }
/**
* <p>The ID of the connector.</p>
*/
inline Connector& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;}
/**
* <p>The ID of the connector.</p>
*/
inline Connector& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;}
/**
* <p>The ID of the connector.</p>
*/
inline Connector& WithConnectorId(const char* value) { SetConnectorId(value); return *this;}
/**
* <p>The connector version.</p>
*/
inline const Aws::String& GetVersion() const{ return m_version; }
/**
* <p>The connector version.</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The connector version.</p>
*/
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The connector version.</p>
*/
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
/**
* <p>The connector version.</p>
*/
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
/**
* <p>The connector version.</p>
*/
inline Connector& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
/**
* <p>The connector version.</p>
*/
inline Connector& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
/**
* <p>The connector version.</p>
*/
inline Connector& WithVersion(const char* value) { SetVersion(value); return *this;}
/**
* <p>The status of the connector.</p>
*/
inline const ConnectorStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the connector.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the connector.</p>
*/
inline void SetStatus(const ConnectorStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the connector.</p>
*/
inline void SetStatus(ConnectorStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the connector.</p>
*/
inline Connector& WithStatus(const ConnectorStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the connector.</p>
*/
inline Connector& WithStatus(ConnectorStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The capabilities of the connector.</p>
*/
inline const Aws::Vector<ConnectorCapability>& GetCapabilityList() const{ return m_capabilityList; }
/**
* <p>The capabilities of the connector.</p>
*/
inline bool CapabilityListHasBeenSet() const { return m_capabilityListHasBeenSet; }
/**
* <p>The capabilities of the connector.</p>
*/
inline void SetCapabilityList(const Aws::Vector<ConnectorCapability>& value) { m_capabilityListHasBeenSet = true; m_capabilityList = value; }
/**
* <p>The capabilities of the connector.</p>
*/
inline void SetCapabilityList(Aws::Vector<ConnectorCapability>&& value) { m_capabilityListHasBeenSet = true; m_capabilityList = std::move(value); }
/**
* <p>The capabilities of the connector.</p>
*/
inline Connector& WithCapabilityList(const Aws::Vector<ConnectorCapability>& value) { SetCapabilityList(value); return *this;}
/**
* <p>The capabilities of the connector.</p>
*/
inline Connector& WithCapabilityList(Aws::Vector<ConnectorCapability>&& value) { SetCapabilityList(std::move(value)); return *this;}
/**
* <p>The capabilities of the connector.</p>
*/
inline Connector& AddCapabilityList(const ConnectorCapability& value) { m_capabilityListHasBeenSet = true; m_capabilityList.push_back(value); return *this; }
/**
* <p>The capabilities of the connector.</p>
*/
inline Connector& AddCapabilityList(ConnectorCapability&& value) { m_capabilityListHasBeenSet = true; m_capabilityList.push_back(std::move(value)); return *this; }
/**
* <p>The name of the VM manager.</p>
*/
inline const Aws::String& GetVmManagerName() const{ return m_vmManagerName; }
/**
* <p>The name of the VM manager.</p>
*/
inline bool VmManagerNameHasBeenSet() const { return m_vmManagerNameHasBeenSet; }
/**
* <p>The name of the VM manager.</p>
*/
inline void SetVmManagerName(const Aws::String& value) { m_vmManagerNameHasBeenSet = true; m_vmManagerName = value; }
/**
* <p>The name of the VM manager.</p>
*/
inline void SetVmManagerName(Aws::String&& value) { m_vmManagerNameHasBeenSet = true; m_vmManagerName = std::move(value); }
/**
* <p>The name of the VM manager.</p>
*/
inline void SetVmManagerName(const char* value) { m_vmManagerNameHasBeenSet = true; m_vmManagerName.assign(value); }
/**
* <p>The name of the VM manager.</p>
*/
inline Connector& WithVmManagerName(const Aws::String& value) { SetVmManagerName(value); return *this;}
/**
* <p>The name of the VM manager.</p>
*/
inline Connector& WithVmManagerName(Aws::String&& value) { SetVmManagerName(std::move(value)); return *this;}
/**
* <p>The name of the VM manager.</p>
*/
inline Connector& WithVmManagerName(const char* value) { SetVmManagerName(value); return *this;}
/**
* <p>The VM management product.</p>
*/
inline const VmManagerType& GetVmManagerType() const{ return m_vmManagerType; }
/**
* <p>The VM management product.</p>
*/
inline bool VmManagerTypeHasBeenSet() const { return m_vmManagerTypeHasBeenSet; }
/**
* <p>The VM management product.</p>
*/
inline void SetVmManagerType(const VmManagerType& value) { m_vmManagerTypeHasBeenSet = true; m_vmManagerType = value; }
/**
* <p>The VM management product.</p>
*/
inline void SetVmManagerType(VmManagerType&& value) { m_vmManagerTypeHasBeenSet = true; m_vmManagerType = std::move(value); }
/**
* <p>The VM management product.</p>
*/
inline Connector& WithVmManagerType(const VmManagerType& value) { SetVmManagerType(value); return *this;}
/**
* <p>The VM management product.</p>
*/
inline Connector& WithVmManagerType(VmManagerType&& value) { SetVmManagerType(std::move(value)); return *this;}
/**
* <p>The ID of the VM manager.</p>
*/
inline const Aws::String& GetVmManagerId() const{ return m_vmManagerId; }
/**
* <p>The ID of the VM manager.</p>
*/
inline bool VmManagerIdHasBeenSet() const { return m_vmManagerIdHasBeenSet; }
/**
* <p>The ID of the VM manager.</p>
*/
inline void SetVmManagerId(const Aws::String& value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId = value; }
/**
* <p>The ID of the VM manager.</p>
*/
inline void SetVmManagerId(Aws::String&& value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId = std::move(value); }
/**
* <p>The ID of the VM manager.</p>
*/
inline void SetVmManagerId(const char* value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId.assign(value); }
/**
* <p>The ID of the VM manager.</p>
*/
inline Connector& WithVmManagerId(const Aws::String& value) { SetVmManagerId(value); return *this;}
/**
* <p>The ID of the VM manager.</p>
*/
inline Connector& WithVmManagerId(Aws::String&& value) { SetVmManagerId(std::move(value)); return *this;}
/**
* <p>The ID of the VM manager.</p>
*/
inline Connector& WithVmManagerId(const char* value) { SetVmManagerId(value); return *this;}
/**
* <p>The IP address of the connector.</p>
*/
inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
/**
* <p>The IP address of the connector.</p>
*/
inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
/**
* <p>The IP address of the connector.</p>
*/
inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
/**
* <p>The IP address of the connector.</p>
*/
inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
/**
* <p>The IP address of the connector.</p>
*/
inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
/**
* <p>The IP address of the connector.</p>
*/
inline Connector& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
/**
* <p>The IP address of the connector.</p>
*/
inline Connector& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
/**
* <p>The IP address of the connector.</p>
*/
inline Connector& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
/**
* <p>The MAC address of the connector.</p>
*/
inline const Aws::String& GetMacAddress() const{ return m_macAddress; }
/**
* <p>The MAC address of the connector.</p>
*/
inline bool MacAddressHasBeenSet() const { return m_macAddressHasBeenSet; }
/**
* <p>The MAC address of the connector.</p>
*/
inline void SetMacAddress(const Aws::String& value) { m_macAddressHasBeenSet = true; m_macAddress = value; }
/**
* <p>The MAC address of the connector.</p>
*/
inline void SetMacAddress(Aws::String&& value) { m_macAddressHasBeenSet = true; m_macAddress = std::move(value); }
/**
* <p>The MAC address of the connector.</p>
*/
inline void SetMacAddress(const char* value) { m_macAddressHasBeenSet = true; m_macAddress.assign(value); }
/**
* <p>The MAC address of the connector.</p>
*/
inline Connector& WithMacAddress(const Aws::String& value) { SetMacAddress(value); return *this;}
/**
* <p>The MAC address of the connector.</p>
*/
inline Connector& WithMacAddress(Aws::String&& value) { SetMacAddress(std::move(value)); return *this;}
/**
* <p>The MAC address of the connector.</p>
*/
inline Connector& WithMacAddress(const char* value) { SetMacAddress(value); return *this;}
/**
* <p>The time the connector was associated.</p>
*/
inline const Aws::Utils::DateTime& GetAssociatedOn() const{ return m_associatedOn; }
/**
* <p>The time the connector was associated.</p>
*/
inline bool AssociatedOnHasBeenSet() const { return m_associatedOnHasBeenSet; }
/**
* <p>The time the connector was associated.</p>
*/
inline void SetAssociatedOn(const Aws::Utils::DateTime& value) { m_associatedOnHasBeenSet = true; m_associatedOn = value; }
/**
* <p>The time the connector was associated.</p>
*/
inline void SetAssociatedOn(Aws::Utils::DateTime&& value) { m_associatedOnHasBeenSet = true; m_associatedOn = std::move(value); }
/**
* <p>The time the connector was associated.</p>
*/
inline Connector& WithAssociatedOn(const Aws::Utils::DateTime& value) { SetAssociatedOn(value); return *this;}
/**
* <p>The time the connector was associated.</p>
*/
inline Connector& WithAssociatedOn(Aws::Utils::DateTime&& value) { SetAssociatedOn(std::move(value)); return *this;}
private:
Aws::String m_connectorId;
bool m_connectorIdHasBeenSet;
Aws::String m_version;
bool m_versionHasBeenSet;
ConnectorStatus m_status;
bool m_statusHasBeenSet;
Aws::Vector<ConnectorCapability> m_capabilityList;
bool m_capabilityListHasBeenSet;
Aws::String m_vmManagerName;
bool m_vmManagerNameHasBeenSet;
VmManagerType m_vmManagerType;
bool m_vmManagerTypeHasBeenSet;
Aws::String m_vmManagerId;
bool m_vmManagerIdHasBeenSet;
Aws::String m_ipAddress;
bool m_ipAddressHasBeenSet;
Aws::String m_macAddress;
bool m_macAddressHasBeenSet;
Aws::Utils::DateTime m_associatedOn;
bool m_associatedOnHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ConnectorCapability
{
NOT_SET,
VSPHERE,
SCVMM,
HYPERV_MANAGER,
SNAPSHOT_BATCHING,
SMS_OPTIMIZED
};
namespace ConnectorCapabilityMapper
{
AWS_SMS_API ConnectorCapability GetConnectorCapabilityForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForConnectorCapability(ConnectorCapability value);
} // namespace ConnectorCapabilityMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ConnectorStatus
{
NOT_SET,
HEALTHY,
UNHEALTHY
};
namespace ConnectorStatusMapper
{
AWS_SMS_API ConnectorStatus GetConnectorStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForConnectorStatus(ConnectorStatus value);
} // namespace ConnectorStatusMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,324 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroup.h>
#include <aws/sms/model/Tag.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API CreateAppRequest : public SMSRequest
{
public:
CreateAppRequest();
// 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 "CreateApp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the new application.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the new application.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the new application.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the new application.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the new application.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the new application.</p>
*/
inline CreateAppRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the new application.</p>
*/
inline CreateAppRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the new application.</p>
*/
inline CreateAppRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the new application</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the new application</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the new application</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the new application</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the new application</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the new application</p>
*/
inline CreateAppRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the new application</p>
*/
inline CreateAppRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the new application</p>
*/
inline CreateAppRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline CreateAppRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline CreateAppRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the service role in the customer's account to be used by AWS
* SMS.</p>
*/
inline CreateAppRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline CreateAppRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline CreateAppRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
/**
* <p>A unique, case-sensitive identifier that you provide to ensure the
* idempotency of application creation.</p>
*/
inline CreateAppRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
/**
* <p>The server groups to include in the application.</p>
*/
inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
/**
* <p>The server groups to include in the application.</p>
*/
inline bool ServerGroupsHasBeenSet() const { return m_serverGroupsHasBeenSet; }
/**
* <p>The server groups to include in the application.</p>
*/
inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = value; }
/**
* <p>The server groups to include in the application.</p>
*/
inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups = std::move(value); }
/**
* <p>The server groups to include in the application.</p>
*/
inline CreateAppRequest& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
/**
* <p>The server groups to include in the application.</p>
*/
inline CreateAppRequest& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
/**
* <p>The server groups to include in the application.</p>
*/
inline CreateAppRequest& AddServerGroups(const ServerGroup& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(value); return *this; }
/**
* <p>The server groups to include in the application.</p>
*/
inline CreateAppRequest& AddServerGroups(ServerGroup&& value) { m_serverGroupsHasBeenSet = true; m_serverGroups.push_back(std::move(value)); return *this; }
/**
* <p>The tags to be associated with the application.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags to be associated with the application.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to be associated with the application.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to be associated with the application.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to be associated with the application.</p>
*/
inline CreateAppRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags to be associated with the application.</p>
*/
inline CreateAppRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to be associated with the application.</p>
*/
inline CreateAppRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags to be associated with the application.</p>
*/
inline CreateAppRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
Aws::String m_clientToken;
bool m_clientTokenHasBeenSet;
Aws::Vector<ServerGroup> m_serverGroups;
bool m_serverGroupsHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/AppSummary.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroup.h>
#include <aws/sms/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API CreateAppResult
{
public:
CreateAppResult();
CreateAppResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAppResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A summary description of the application.</p>
*/
inline const AppSummary& GetAppSummary() const{ return m_appSummary; }
/**
* <p>A summary description of the application.</p>
*/
inline void SetAppSummary(const AppSummary& value) { m_appSummary = value; }
/**
* <p>A summary description of the application.</p>
*/
inline void SetAppSummary(AppSummary&& value) { m_appSummary = std::move(value); }
/**
* <p>A summary description of the application.</p>
*/
inline CreateAppResult& WithAppSummary(const AppSummary& value) { SetAppSummary(value); return *this;}
/**
* <p>A summary description of the application.</p>
*/
inline CreateAppResult& WithAppSummary(AppSummary&& value) { SetAppSummary(std::move(value)); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
/**
* <p>The server groups included in the application.</p>
*/
inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroups = value; }
/**
* <p>The server groups included in the application.</p>
*/
inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroups = std::move(value); }
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& AddServerGroups(const ServerGroup& value) { m_serverGroups.push_back(value); return *this; }
/**
* <p>The server groups included in the application.</p>
*/
inline CreateAppResult& AddServerGroups(ServerGroup&& value) { m_serverGroups.push_back(std::move(value)); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline CreateAppResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
AppSummary m_appSummary;
Aws::Vector<ServerGroup> m_serverGroups;
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,433 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/LicenseType.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API CreateReplicationJobRequest : public SMSRequest
{
public:
CreateReplicationJobRequest();
// 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 "CreateReplicationJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the server.</p>
*/
inline const Aws::String& GetServerId() const{ return m_serverId; }
/**
* <p>The ID of the server.</p>
*/
inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
/**
* <p>The ID of the server.</p>
*/
inline CreateReplicationJobRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline CreateReplicationJobRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline CreateReplicationJobRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
/**
* <p>The seed replication time.</p>
*/
inline const Aws::Utils::DateTime& GetSeedReplicationTime() const{ return m_seedReplicationTime; }
/**
* <p>The seed replication time.</p>
*/
inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
/**
* <p>The seed replication time.</p>
*/
inline void SetSeedReplicationTime(const Aws::Utils::DateTime& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = value; }
/**
* <p>The seed replication time.</p>
*/
inline void SetSeedReplicationTime(Aws::Utils::DateTime&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::move(value); }
/**
* <p>The seed replication time.</p>
*/
inline CreateReplicationJobRequest& WithSeedReplicationTime(const Aws::Utils::DateTime& value) { SetSeedReplicationTime(value); return *this;}
/**
* <p>The seed replication time.</p>
*/
inline CreateReplicationJobRequest& WithSeedReplicationTime(Aws::Utils::DateTime&& value) { SetSeedReplicationTime(std::move(value)); return *this;}
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline int GetFrequency() const{ return m_frequency; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline CreateReplicationJobRequest& WithFrequency(int value) { SetFrequency(value); return *this;}
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool GetRunOnce() const{ return m_runOnce; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline CreateReplicationJobRequest& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline CreateReplicationJobRequest& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline CreateReplicationJobRequest& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline CreateReplicationJobRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline CreateReplicationJobRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the IAM role to be used by the AWS SMS.</p>
*/
inline CreateReplicationJobRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the replication job.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the replication job.</p>
*/
inline CreateReplicationJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline CreateReplicationJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline CreateReplicationJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The maximum number of SMS-created AMIs to retain. The oldest is deleted after
* the maximum number is reached and a new AMI is created.</p>
*/
inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
/**
* <p>The maximum number of SMS-created AMIs to retain. The oldest is deleted after
* the maximum number is reached and a new AMI is created.</p>
*/
inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
/**
* <p>The maximum number of SMS-created AMIs to retain. The oldest is deleted after
* the maximum number is reached and a new AMI is created.</p>
*/
inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
/**
* <p>The maximum number of SMS-created AMIs to retain. The oldest is deleted after
* the maximum number is reached and a new AMI is created.</p>
*/
inline CreateReplicationJobRequest& WithNumberOfRecentAmisToKeep(int value) { SetNumberOfRecentAmisToKeep(value); return *this;}
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline bool GetEncrypted() const{ return m_encrypted; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline CreateReplicationJobRequest& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline CreateReplicationJobRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline CreateReplicationJobRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline CreateReplicationJobRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
private:
Aws::String m_serverId;
bool m_serverIdHasBeenSet;
Aws::Utils::DateTime m_seedReplicationTime;
bool m_seedReplicationTimeHasBeenSet;
int m_frequency;
bool m_frequencyHasBeenSet;
bool m_runOnce;
bool m_runOnceHasBeenSet;
LicenseType m_licenseType;
bool m_licenseTypeHasBeenSet;
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_numberOfRecentAmisToKeep;
bool m_numberOfRecentAmisToKeepHasBeenSet;
bool m_encrypted;
bool m_encryptedHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_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 SMS
{
namespace Model
{
class AWS_SMS_API CreateReplicationJobResult
{
public:
CreateReplicationJobResult();
CreateReplicationJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateReplicationJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The unique identifier of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The unique identifier of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobId = value; }
/**
* <p>The unique identifier of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobId = std::move(value); }
/**
* <p>The unique identifier of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobId.assign(value); }
/**
* <p>The unique identifier of the replication job.</p>
*/
inline CreateReplicationJobResult& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The unique identifier of the replication job.</p>
*/
inline CreateReplicationJobResult& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the replication job.</p>
*/
inline CreateReplicationJobResult& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
private:
Aws::String m_replicationJobId;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteAppLaunchConfigurationRequest : public SMSRequest
{
public:
DeleteAppLaunchConfigurationRequest();
// 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 "DeleteAppLaunchConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppLaunchConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppLaunchConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppLaunchConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteAppLaunchConfigurationResult
{
public:
DeleteAppLaunchConfigurationResult();
DeleteAppLaunchConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAppLaunchConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteAppReplicationConfigurationRequest : public SMSRequest
{
public:
DeleteAppReplicationConfigurationRequest();
// 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 "DeleteAppReplicationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppReplicationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppReplicationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppReplicationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteAppReplicationConfigurationResult
{
public:
DeleteAppReplicationConfigurationResult();
DeleteAppReplicationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAppReplicationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteAppRequest : public SMSRequest
{
public:
DeleteAppRequest();
// 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 "DeleteApp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>Indicates whether to stop all replication jobs corresponding to the servers
* in the application while deleting the application.</p>
*/
inline bool GetForceStopAppReplication() const{ return m_forceStopAppReplication; }
/**
* <p>Indicates whether to stop all replication jobs corresponding to the servers
* in the application while deleting the application.</p>
*/
inline bool ForceStopAppReplicationHasBeenSet() const { return m_forceStopAppReplicationHasBeenSet; }
/**
* <p>Indicates whether to stop all replication jobs corresponding to the servers
* in the application while deleting the application.</p>
*/
inline void SetForceStopAppReplication(bool value) { m_forceStopAppReplicationHasBeenSet = true; m_forceStopAppReplication = value; }
/**
* <p>Indicates whether to stop all replication jobs corresponding to the servers
* in the application while deleting the application.</p>
*/
inline DeleteAppRequest& WithForceStopAppReplication(bool value) { SetForceStopAppReplication(value); return *this;}
/**
* <p>Indicates whether to terminate the stack corresponding to the application
* while deleting the application.</p>
*/
inline bool GetForceTerminateApp() const{ return m_forceTerminateApp; }
/**
* <p>Indicates whether to terminate the stack corresponding to the application
* while deleting the application.</p>
*/
inline bool ForceTerminateAppHasBeenSet() const { return m_forceTerminateAppHasBeenSet; }
/**
* <p>Indicates whether to terminate the stack corresponding to the application
* while deleting the application.</p>
*/
inline void SetForceTerminateApp(bool value) { m_forceTerminateAppHasBeenSet = true; m_forceTerminateApp = value; }
/**
* <p>Indicates whether to terminate the stack corresponding to the application
* while deleting the application.</p>
*/
inline DeleteAppRequest& WithForceTerminateApp(bool value) { SetForceTerminateApp(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
bool m_forceStopAppReplication;
bool m_forceStopAppReplicationHasBeenSet;
bool m_forceTerminateApp;
bool m_forceTerminateAppHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteAppResult
{
public:
DeleteAppResult();
DeleteAppResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAppResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteAppValidationConfigurationRequest : public SMSRequest
{
public:
DeleteAppValidationConfigurationRequest();
// 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 "DeleteAppValidationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppValidationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppValidationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline DeleteAppValidationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteAppValidationConfigurationResult
{
public:
DeleteAppValidationConfigurationResult();
DeleteAppValidationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAppValidationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteReplicationJobRequest : public SMSRequest
{
public:
DeleteReplicationJobRequest();
// 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 "DeleteReplicationJob"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The ID of the replication job.</p>
*/
inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline DeleteReplicationJobRequest& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline DeleteReplicationJobRequest& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline DeleteReplicationJobRequest& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
private:
Aws::String m_replicationJobId;
bool m_replicationJobIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteReplicationJobResult
{
public:
DeleteReplicationJobResult();
DeleteReplicationJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteReplicationJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DeleteServerCatalogRequest : public SMSRequest
{
public:
DeleteServerCatalogRequest();
// 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 "DeleteServerCatalog"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DeleteServerCatalogResult
{
public:
DeleteServerCatalogResult();
DeleteServerCatalogResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteServerCatalogResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API DisassociateConnectorRequest : public SMSRequest
{
public:
DisassociateConnectorRequest();
// 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 "DisassociateConnector"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the connector.</p>
*/
inline const Aws::String& GetConnectorId() const{ return m_connectorId; }
/**
* <p>The ID of the connector.</p>
*/
inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); }
/**
* <p>The ID of the connector.</p>
*/
inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); }
/**
* <p>The ID of the connector.</p>
*/
inline DisassociateConnectorRequest& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;}
/**
* <p>The ID of the connector.</p>
*/
inline DisassociateConnectorRequest& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;}
/**
* <p>The ID of the connector.</p>
*/
inline DisassociateConnectorRequest& WithConnectorId(const char* value) { SetConnectorId(value); return *this;}
private:
Aws::String m_connectorId;
bool m_connectorIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API DisassociateConnectorResult
{
public:
DisassociateConnectorResult();
DisassociateConnectorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateConnectorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/OutputFormat.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GenerateChangeSetRequest : public SMSRequest
{
public:
GenerateChangeSetRequest();
// 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 "GenerateChangeSet"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline GenerateChangeSetRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline GenerateChangeSetRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application associated with the change set.</p>
*/
inline GenerateChangeSetRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The format for the change set.</p>
*/
inline const OutputFormat& GetChangesetFormat() const{ return m_changesetFormat; }
/**
* <p>The format for the change set.</p>
*/
inline bool ChangesetFormatHasBeenSet() const { return m_changesetFormatHasBeenSet; }
/**
* <p>The format for the change set.</p>
*/
inline void SetChangesetFormat(const OutputFormat& value) { m_changesetFormatHasBeenSet = true; m_changesetFormat = value; }
/**
* <p>The format for the change set.</p>
*/
inline void SetChangesetFormat(OutputFormat&& value) { m_changesetFormatHasBeenSet = true; m_changesetFormat = std::move(value); }
/**
* <p>The format for the change set.</p>
*/
inline GenerateChangeSetRequest& WithChangesetFormat(const OutputFormat& value) { SetChangesetFormat(value); return *this;}
/**
* <p>The format for the change set.</p>
*/
inline GenerateChangeSetRequest& WithChangesetFormat(OutputFormat&& value) { SetChangesetFormat(std::move(value)); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
OutputFormat m_changesetFormat;
bool m_changesetFormatHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/S3Location.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GenerateChangeSetResult
{
public:
GenerateChangeSetResult();
GenerateChangeSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GenerateChangeSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline const S3Location& GetS3Location() const{ return m_s3Location; }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline void SetS3Location(const S3Location& value) { m_s3Location = value; }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline void SetS3Location(S3Location&& value) { m_s3Location = std::move(value); }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline GenerateChangeSetResult& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;}
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline GenerateChangeSetResult& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;}
private:
S3Location m_s3Location;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/OutputFormat.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GenerateTemplateRequest : public SMSRequest
{
public:
GenerateTemplateRequest();
// 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 "GenerateTemplate"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline GenerateTemplateRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline GenerateTemplateRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application associated with the AWS CloudFormation
* template.</p>
*/
inline GenerateTemplateRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline const OutputFormat& GetTemplateFormat() const{ return m_templateFormat; }
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline bool TemplateFormatHasBeenSet() const { return m_templateFormatHasBeenSet; }
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline void SetTemplateFormat(const OutputFormat& value) { m_templateFormatHasBeenSet = true; m_templateFormat = value; }
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline void SetTemplateFormat(OutputFormat&& value) { m_templateFormatHasBeenSet = true; m_templateFormat = std::move(value); }
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline GenerateTemplateRequest& WithTemplateFormat(const OutputFormat& value) { SetTemplateFormat(value); return *this;}
/**
* <p>The format for generating the AWS CloudFormation template.</p>
*/
inline GenerateTemplateRequest& WithTemplateFormat(OutputFormat&& value) { SetTemplateFormat(std::move(value)); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
OutputFormat m_templateFormat;
bool m_templateFormatHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/S3Location.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GenerateTemplateResult
{
public:
GenerateTemplateResult();
GenerateTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GenerateTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline const S3Location& GetS3Location() const{ return m_s3Location; }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline void SetS3Location(const S3Location& value) { m_s3Location = value; }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline void SetS3Location(S3Location&& value) { m_s3Location = std::move(value); }
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline GenerateTemplateResult& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;}
/**
* <p>The location of the Amazon S3 object.</p>
*/
inline GenerateTemplateResult& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;}
private:
S3Location m_s3Location;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetAppLaunchConfigurationRequest : public SMSRequest
{
public:
GetAppLaunchConfigurationRequest();
// 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 "GetAppLaunchConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroupLaunchConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetAppLaunchConfigurationResult
{
public:
GetAppLaunchConfigurationResult();
GetAppLaunchConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAppLaunchConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleName = value; }
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleName = std::move(value); }
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline void SetRoleName(const char* value) { m_roleName.assign(value); }
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the service role in the customer's account that AWS
* CloudFormation uses to launch the application.</p>
*/
inline GetAppLaunchConfigurationResult& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline bool GetAutoLaunch() const{ return m_autoLaunch; }
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline void SetAutoLaunch(bool value) { m_autoLaunch = value; }
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline GetAppLaunchConfigurationResult& WithAutoLaunch(bool value) { SetAutoLaunch(value); return *this;}
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline const Aws::Vector<ServerGroupLaunchConfiguration>& GetServerGroupLaunchConfigurations() const{ return m_serverGroupLaunchConfigurations; }
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline void SetServerGroupLaunchConfigurations(const Aws::Vector<ServerGroupLaunchConfiguration>& value) { m_serverGroupLaunchConfigurations = value; }
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline void SetServerGroupLaunchConfigurations(Aws::Vector<ServerGroupLaunchConfiguration>&& value) { m_serverGroupLaunchConfigurations = std::move(value); }
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline GetAppLaunchConfigurationResult& WithServerGroupLaunchConfigurations(const Aws::Vector<ServerGroupLaunchConfiguration>& value) { SetServerGroupLaunchConfigurations(value); return *this;}
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline GetAppLaunchConfigurationResult& WithServerGroupLaunchConfigurations(Aws::Vector<ServerGroupLaunchConfiguration>&& value) { SetServerGroupLaunchConfigurations(std::move(value)); return *this;}
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline GetAppLaunchConfigurationResult& AddServerGroupLaunchConfigurations(const ServerGroupLaunchConfiguration& value) { m_serverGroupLaunchConfigurations.push_back(value); return *this; }
/**
* <p>The launch configurations for server groups in this application.</p>
*/
inline GetAppLaunchConfigurationResult& AddServerGroupLaunchConfigurations(ServerGroupLaunchConfiguration&& value) { m_serverGroupLaunchConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_appId;
Aws::String m_roleName;
bool m_autoLaunch;
Aws::Vector<ServerGroupLaunchConfiguration> m_serverGroupLaunchConfigurations;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetAppReplicationConfigurationRequest : public SMSRequest
{
public:
GetAppReplicationConfigurationRequest();
// 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 "GetAppReplicationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppReplicationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppReplicationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppReplicationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroupReplicationConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetAppReplicationConfigurationResult
{
public:
GetAppReplicationConfigurationResult();
GetAppReplicationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAppReplicationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline const Aws::Vector<ServerGroupReplicationConfiguration>& GetServerGroupReplicationConfigurations() const{ return m_serverGroupReplicationConfigurations; }
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline void SetServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { m_serverGroupReplicationConfigurations = value; }
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline void SetServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { m_serverGroupReplicationConfigurations = std::move(value); }
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline GetAppReplicationConfigurationResult& WithServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { SetServerGroupReplicationConfigurations(value); return *this;}
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline GetAppReplicationConfigurationResult& WithServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { SetServerGroupReplicationConfigurations(std::move(value)); return *this;}
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline GetAppReplicationConfigurationResult& AddServerGroupReplicationConfigurations(const ServerGroupReplicationConfiguration& value) { m_serverGroupReplicationConfigurations.push_back(value); return *this; }
/**
* <p>The replication configurations associated with server groups in this
* application.</p>
*/
inline GetAppReplicationConfigurationResult& AddServerGroupReplicationConfigurations(ServerGroupReplicationConfiguration&& value) { m_serverGroupReplicationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ServerGroupReplicationConfiguration> m_serverGroupReplicationConfigurations;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetAppRequest : public SMSRequest
{
public:
GetAppRequest();
// 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 "GetApp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/AppSummary.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroup.h>
#include <aws/sms/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetAppResult
{
public:
GetAppResult();
GetAppResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAppResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the application.</p>
*/
inline const AppSummary& GetAppSummary() const{ return m_appSummary; }
/**
* <p>Information about the application.</p>
*/
inline void SetAppSummary(const AppSummary& value) { m_appSummary = value; }
/**
* <p>Information about the application.</p>
*/
inline void SetAppSummary(AppSummary&& value) { m_appSummary = std::move(value); }
/**
* <p>Information about the application.</p>
*/
inline GetAppResult& WithAppSummary(const AppSummary& value) { SetAppSummary(value); return *this;}
/**
* <p>Information about the application.</p>
*/
inline GetAppResult& WithAppSummary(AppSummary&& value) { SetAppSummary(std::move(value)); return *this;}
/**
* <p>The server groups that belong to the application.</p>
*/
inline const Aws::Vector<ServerGroup>& GetServerGroups() const{ return m_serverGroups; }
/**
* <p>The server groups that belong to the application.</p>
*/
inline void SetServerGroups(const Aws::Vector<ServerGroup>& value) { m_serverGroups = value; }
/**
* <p>The server groups that belong to the application.</p>
*/
inline void SetServerGroups(Aws::Vector<ServerGroup>&& value) { m_serverGroups = std::move(value); }
/**
* <p>The server groups that belong to the application.</p>
*/
inline GetAppResult& WithServerGroups(const Aws::Vector<ServerGroup>& value) { SetServerGroups(value); return *this;}
/**
* <p>The server groups that belong to the application.</p>
*/
inline GetAppResult& WithServerGroups(Aws::Vector<ServerGroup>&& value) { SetServerGroups(std::move(value)); return *this;}
/**
* <p>The server groups that belong to the application.</p>
*/
inline GetAppResult& AddServerGroups(const ServerGroup& value) { m_serverGroups.push_back(value); return *this; }
/**
* <p>The server groups that belong to the application.</p>
*/
inline GetAppResult& AddServerGroups(ServerGroup&& value) { m_serverGroups.push_back(std::move(value)); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The tags associated with the application.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The tags associated with the application.</p>
*/
inline GetAppResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline GetAppResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags associated with the application.</p>
*/
inline GetAppResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The tags associated with the application.</p>
*/
inline GetAppResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
AppSummary m_appSummary;
Aws::Vector<ServerGroup> m_serverGroups;
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetAppValidationConfigurationRequest : public SMSRequest
{
public:
GetAppValidationConfigurationRequest();
// 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 "GetAppValidationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/AppValidationConfiguration.h>
#include <aws/sms/model/ServerGroupValidationConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetAppValidationConfigurationResult
{
public:
GetAppValidationConfigurationResult();
GetAppValidationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAppValidationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The configuration for application validation.</p>
*/
inline const Aws::Vector<AppValidationConfiguration>& GetAppValidationConfigurations() const{ return m_appValidationConfigurations; }
/**
* <p>The configuration for application validation.</p>
*/
inline void SetAppValidationConfigurations(const Aws::Vector<AppValidationConfiguration>& value) { m_appValidationConfigurations = value; }
/**
* <p>The configuration for application validation.</p>
*/
inline void SetAppValidationConfigurations(Aws::Vector<AppValidationConfiguration>&& value) { m_appValidationConfigurations = std::move(value); }
/**
* <p>The configuration for application validation.</p>
*/
inline GetAppValidationConfigurationResult& WithAppValidationConfigurations(const Aws::Vector<AppValidationConfiguration>& value) { SetAppValidationConfigurations(value); return *this;}
/**
* <p>The configuration for application validation.</p>
*/
inline GetAppValidationConfigurationResult& WithAppValidationConfigurations(Aws::Vector<AppValidationConfiguration>&& value) { SetAppValidationConfigurations(std::move(value)); return *this;}
/**
* <p>The configuration for application validation.</p>
*/
inline GetAppValidationConfigurationResult& AddAppValidationConfigurations(const AppValidationConfiguration& value) { m_appValidationConfigurations.push_back(value); return *this; }
/**
* <p>The configuration for application validation.</p>
*/
inline GetAppValidationConfigurationResult& AddAppValidationConfigurations(AppValidationConfiguration&& value) { m_appValidationConfigurations.push_back(std::move(value)); return *this; }
/**
* <p>The configuration for instance validation.</p>
*/
inline const Aws::Vector<ServerGroupValidationConfiguration>& GetServerGroupValidationConfigurations() const{ return m_serverGroupValidationConfigurations; }
/**
* <p>The configuration for instance validation.</p>
*/
inline void SetServerGroupValidationConfigurations(const Aws::Vector<ServerGroupValidationConfiguration>& value) { m_serverGroupValidationConfigurations = value; }
/**
* <p>The configuration for instance validation.</p>
*/
inline void SetServerGroupValidationConfigurations(Aws::Vector<ServerGroupValidationConfiguration>&& value) { m_serverGroupValidationConfigurations = std::move(value); }
/**
* <p>The configuration for instance validation.</p>
*/
inline GetAppValidationConfigurationResult& WithServerGroupValidationConfigurations(const Aws::Vector<ServerGroupValidationConfiguration>& value) { SetServerGroupValidationConfigurations(value); return *this;}
/**
* <p>The configuration for instance validation.</p>
*/
inline GetAppValidationConfigurationResult& WithServerGroupValidationConfigurations(Aws::Vector<ServerGroupValidationConfiguration>&& value) { SetServerGroupValidationConfigurations(std::move(value)); return *this;}
/**
* <p>The configuration for instance validation.</p>
*/
inline GetAppValidationConfigurationResult& AddServerGroupValidationConfigurations(const ServerGroupValidationConfiguration& value) { m_serverGroupValidationConfigurations.push_back(value); return *this; }
/**
* <p>The configuration for instance validation.</p>
*/
inline GetAppValidationConfigurationResult& AddServerGroupValidationConfigurations(ServerGroupValidationConfiguration&& value) { m_serverGroupValidationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::Vector<AppValidationConfiguration> m_appValidationConfigurations;
Aws::Vector<ServerGroupValidationConfiguration> m_serverGroupValidationConfigurations;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetAppValidationOutputRequest : public SMSRequest
{
public:
GetAppValidationOutputRequest();
// 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 "GetAppValidationOutput"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationOutputRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationOutputRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline GetAppValidationOutputRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ValidationOutput.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetAppValidationOutputResult
{
public:
GetAppValidationOutputResult();
GetAppValidationOutputResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetAppValidationOutputResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The validation output.</p>
*/
inline const Aws::Vector<ValidationOutput>& GetValidationOutputList() const{ return m_validationOutputList; }
/**
* <p>The validation output.</p>
*/
inline void SetValidationOutputList(const Aws::Vector<ValidationOutput>& value) { m_validationOutputList = value; }
/**
* <p>The validation output.</p>
*/
inline void SetValidationOutputList(Aws::Vector<ValidationOutput>&& value) { m_validationOutputList = std::move(value); }
/**
* <p>The validation output.</p>
*/
inline GetAppValidationOutputResult& WithValidationOutputList(const Aws::Vector<ValidationOutput>& value) { SetValidationOutputList(value); return *this;}
/**
* <p>The validation output.</p>
*/
inline GetAppValidationOutputResult& WithValidationOutputList(Aws::Vector<ValidationOutput>&& value) { SetValidationOutputList(std::move(value)); return *this;}
/**
* <p>The validation output.</p>
*/
inline GetAppValidationOutputResult& AddValidationOutputList(const ValidationOutput& value) { m_validationOutputList.push_back(value); return *this; }
/**
* <p>The validation output.</p>
*/
inline GetAppValidationOutputResult& AddValidationOutputList(ValidationOutput&& value) { m_validationOutputList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ValidationOutput> m_validationOutputList;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetConnectorsRequest : public SMSRequest
{
public:
GetConnectorsRequest();
// 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 "GetConnectors"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline GetConnectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetConnectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetConnectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline GetConnectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/Connector.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetConnectorsResult
{
public:
GetConnectorsResult();
GetConnectorsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetConnectorsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the registered connectors.</p>
*/
inline const Aws::Vector<Connector>& GetConnectorList() const{ return m_connectorList; }
/**
* <p>Information about the registered connectors.</p>
*/
inline void SetConnectorList(const Aws::Vector<Connector>& value) { m_connectorList = value; }
/**
* <p>Information about the registered connectors.</p>
*/
inline void SetConnectorList(Aws::Vector<Connector>&& value) { m_connectorList = std::move(value); }
/**
* <p>Information about the registered connectors.</p>
*/
inline GetConnectorsResult& WithConnectorList(const Aws::Vector<Connector>& value) { SetConnectorList(value); return *this;}
/**
* <p>Information about the registered connectors.</p>
*/
inline GetConnectorsResult& WithConnectorList(Aws::Vector<Connector>&& value) { SetConnectorList(std::move(value)); return *this;}
/**
* <p>Information about the registered connectors.</p>
*/
inline GetConnectorsResult& AddConnectorList(const Connector& value) { m_connectorList.push_back(value); return *this; }
/**
* <p>Information about the registered connectors.</p>
*/
inline GetConnectorsResult& AddConnectorList(Connector&& value) { m_connectorList.push_back(std::move(value)); return *this; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetConnectorsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetConnectorsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetConnectorsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Connector> m_connectorList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetReplicationJobsRequest : public SMSRequest
{
public:
GetReplicationJobsRequest();
// 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 "GetReplicationJobs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The ID of the replication job.</p>
*/
inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationJobsRequest& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationJobsRequest& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationJobsRequest& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline GetReplicationJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_replicationJobId;
bool m_replicationJobIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ReplicationJob.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetReplicationJobsResult
{
public:
GetReplicationJobsResult();
GetReplicationJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetReplicationJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the replication jobs.</p>
*/
inline const Aws::Vector<ReplicationJob>& GetReplicationJobList() const{ return m_replicationJobList; }
/**
* <p>Information about the replication jobs.</p>
*/
inline void SetReplicationJobList(const Aws::Vector<ReplicationJob>& value) { m_replicationJobList = value; }
/**
* <p>Information about the replication jobs.</p>
*/
inline void SetReplicationJobList(Aws::Vector<ReplicationJob>&& value) { m_replicationJobList = std::move(value); }
/**
* <p>Information about the replication jobs.</p>
*/
inline GetReplicationJobsResult& WithReplicationJobList(const Aws::Vector<ReplicationJob>& value) { SetReplicationJobList(value); return *this;}
/**
* <p>Information about the replication jobs.</p>
*/
inline GetReplicationJobsResult& WithReplicationJobList(Aws::Vector<ReplicationJob>&& value) { SetReplicationJobList(std::move(value)); return *this;}
/**
* <p>Information about the replication jobs.</p>
*/
inline GetReplicationJobsResult& AddReplicationJobList(const ReplicationJob& value) { m_replicationJobList.push_back(value); return *this; }
/**
* <p>Information about the replication jobs.</p>
*/
inline GetReplicationJobsResult& AddReplicationJobList(ReplicationJob&& value) { m_replicationJobList.push_back(std::move(value)); return *this; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ReplicationJob> m_replicationJobList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetReplicationRunsRequest : public SMSRequest
{
public:
GetReplicationRunsRequest();
// 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 "GetReplicationRuns"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The ID of the replication job.</p>
*/
inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationRunsRequest& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationRunsRequest& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline GetReplicationRunsRequest& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationRunsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationRunsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetReplicationRunsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline GetReplicationRunsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_replicationJobId;
bool m_replicationJobIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/sms/model/ReplicationJob.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ReplicationRun.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetReplicationRunsResult
{
public:
GetReplicationRunsResult();
GetReplicationRunsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetReplicationRunsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the replication job.</p>
*/
inline const ReplicationJob& GetReplicationJob() const{ return m_replicationJob; }
/**
* <p>Information about the replication job.</p>
*/
inline void SetReplicationJob(const ReplicationJob& value) { m_replicationJob = value; }
/**
* <p>Information about the replication job.</p>
*/
inline void SetReplicationJob(ReplicationJob&& value) { m_replicationJob = std::move(value); }
/**
* <p>Information about the replication job.</p>
*/
inline GetReplicationRunsResult& WithReplicationJob(const ReplicationJob& value) { SetReplicationJob(value); return *this;}
/**
* <p>Information about the replication job.</p>
*/
inline GetReplicationRunsResult& WithReplicationJob(ReplicationJob&& value) { SetReplicationJob(std::move(value)); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline const Aws::Vector<ReplicationRun>& GetReplicationRunList() const{ return m_replicationRunList; }
/**
* <p>Information about the replication runs.</p>
*/
inline void SetReplicationRunList(const Aws::Vector<ReplicationRun>& value) { m_replicationRunList = value; }
/**
* <p>Information about the replication runs.</p>
*/
inline void SetReplicationRunList(Aws::Vector<ReplicationRun>&& value) { m_replicationRunList = std::move(value); }
/**
* <p>Information about the replication runs.</p>
*/
inline GetReplicationRunsResult& WithReplicationRunList(const Aws::Vector<ReplicationRun>& value) { SetReplicationRunList(value); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline GetReplicationRunsResult& WithReplicationRunList(Aws::Vector<ReplicationRun>&& value) { SetReplicationRunList(std::move(value)); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline GetReplicationRunsResult& AddReplicationRunList(const ReplicationRun& value) { m_replicationRunList.push_back(value); return *this; }
/**
* <p>Information about the replication runs.</p>
*/
inline GetReplicationRunsResult& AddReplicationRunList(ReplicationRun&& value) { m_replicationRunList.push_back(std::move(value)); return *this; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationRunsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationRunsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetReplicationRunsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
ReplicationJob m_replicationJob;
Aws::Vector<ReplicationRun> m_replicationRunList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/VmServerAddress.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API GetServersRequest : public SMSRequest
{
public:
GetServersRequest();
// 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 "GetServers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline GetServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline GetServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 50. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value.</p>
*/
inline GetServersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The server addresses.</p>
*/
inline const Aws::Vector<VmServerAddress>& GetVmServerAddressList() const{ return m_vmServerAddressList; }
/**
* <p>The server addresses.</p>
*/
inline bool VmServerAddressListHasBeenSet() const { return m_vmServerAddressListHasBeenSet; }
/**
* <p>The server addresses.</p>
*/
inline void SetVmServerAddressList(const Aws::Vector<VmServerAddress>& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList = value; }
/**
* <p>The server addresses.</p>
*/
inline void SetVmServerAddressList(Aws::Vector<VmServerAddress>&& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList = std::move(value); }
/**
* <p>The server addresses.</p>
*/
inline GetServersRequest& WithVmServerAddressList(const Aws::Vector<VmServerAddress>& value) { SetVmServerAddressList(value); return *this;}
/**
* <p>The server addresses.</p>
*/
inline GetServersRequest& WithVmServerAddressList(Aws::Vector<VmServerAddress>&& value) { SetVmServerAddressList(std::move(value)); return *this;}
/**
* <p>The server addresses.</p>
*/
inline GetServersRequest& AddVmServerAddressList(const VmServerAddress& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList.push_back(value); return *this; }
/**
* <p>The server addresses.</p>
*/
inline GetServersRequest& AddVmServerAddressList(VmServerAddress&& value) { m_vmServerAddressListHasBeenSet = true; m_vmServerAddressList.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::Vector<VmServerAddress> m_vmServerAddressList;
bool m_vmServerAddressListHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,182 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/ServerCatalogStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API GetServersResult
{
public:
GetServersResult();
GetServersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetServersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The time when the server was last modified.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedOn() const{ return m_lastModifiedOn; }
/**
* <p>The time when the server was last modified.</p>
*/
inline void SetLastModifiedOn(const Aws::Utils::DateTime& value) { m_lastModifiedOn = value; }
/**
* <p>The time when the server was last modified.</p>
*/
inline void SetLastModifiedOn(Aws::Utils::DateTime&& value) { m_lastModifiedOn = std::move(value); }
/**
* <p>The time when the server was last modified.</p>
*/
inline GetServersResult& WithLastModifiedOn(const Aws::Utils::DateTime& value) { SetLastModifiedOn(value); return *this;}
/**
* <p>The time when the server was last modified.</p>
*/
inline GetServersResult& WithLastModifiedOn(Aws::Utils::DateTime&& value) { SetLastModifiedOn(std::move(value)); return *this;}
/**
* <p>The status of the server catalog.</p>
*/
inline const ServerCatalogStatus& GetServerCatalogStatus() const{ return m_serverCatalogStatus; }
/**
* <p>The status of the server catalog.</p>
*/
inline void SetServerCatalogStatus(const ServerCatalogStatus& value) { m_serverCatalogStatus = value; }
/**
* <p>The status of the server catalog.</p>
*/
inline void SetServerCatalogStatus(ServerCatalogStatus&& value) { m_serverCatalogStatus = std::move(value); }
/**
* <p>The status of the server catalog.</p>
*/
inline GetServersResult& WithServerCatalogStatus(const ServerCatalogStatus& value) { SetServerCatalogStatus(value); return *this;}
/**
* <p>The status of the server catalog.</p>
*/
inline GetServersResult& WithServerCatalogStatus(ServerCatalogStatus&& value) { SetServerCatalogStatus(std::move(value)); return *this;}
/**
* <p>Information about the servers.</p>
*/
inline const Aws::Vector<Server>& GetServerList() const{ return m_serverList; }
/**
* <p>Information about the servers.</p>
*/
inline void SetServerList(const Aws::Vector<Server>& value) { m_serverList = value; }
/**
* <p>Information about the servers.</p>
*/
inline void SetServerList(Aws::Vector<Server>&& value) { m_serverList = std::move(value); }
/**
* <p>Information about the servers.</p>
*/
inline GetServersResult& WithServerList(const Aws::Vector<Server>& value) { SetServerList(value); return *this;}
/**
* <p>Information about the servers.</p>
*/
inline GetServersResult& WithServerList(Aws::Vector<Server>&& value) { SetServerList(std::move(value)); return *this;}
/**
* <p>Information about the servers.</p>
*/
inline GetServersResult& AddServerList(const Server& value) { m_serverList.push_back(value); return *this; }
/**
* <p>Information about the servers.</p>
*/
inline GetServersResult& AddServerList(Server&& value) { m_serverList.push_back(std::move(value)); return *this; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline GetServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Utils::DateTime m_lastModifiedOn;
ServerCatalogStatus m_serverCatalogStatus;
Aws::Vector<Server> m_serverList;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API ImportAppCatalogRequest : public SMSRequest
{
public:
ImportAppCatalogRequest();
// 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 "ImportAppCatalog"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline ImportAppCatalogRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline ImportAppCatalogRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the service role. If you omit this parameter, we create a
* service-linked role for AWS Migration Hub in your account. Otherwise, the role
* that you provide must have the <a
* href="https://docs.aws.amazon.com/migrationhub/latest/ug/new-customer-setup.html#sms-managed">policy
* and trust policy</a> described in the <i>AWS Migration Hub User Guide</i>.</p>
*/
inline ImportAppCatalogRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
private:
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API ImportAppCatalogResult
{
public:
ImportAppCatalogResult();
ImportAppCatalogResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ImportAppCatalogResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API ImportServerCatalogRequest : public SMSRequest
{
public:
ImportServerCatalogRequest();
// 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 "ImportServerCatalog"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API ImportServerCatalogResult
{
public:
ImportServerCatalogResult();
ImportServerCatalogResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ImportServerCatalogResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API LaunchAppRequest : public SMSRequest
{
public:
LaunchAppRequest();
// 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 "LaunchApp"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline LaunchAppRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline LaunchAppRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline LaunchAppRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API LaunchAppResult
{
public:
LaunchAppResult();
LaunchAppResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
LaunchAppResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/DateTime.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 SMS
{
namespace Model
{
/**
* <p>Details about the latest launch of an application.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchDetails">AWS
* API Reference</a></p>
*/
class AWS_SMS_API LaunchDetails
{
public:
LaunchDetails();
LaunchDetails(Aws::Utils::Json::JsonView jsonValue);
LaunchDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline const Aws::Utils::DateTime& GetLatestLaunchTime() const{ return m_latestLaunchTime; }
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline bool LatestLaunchTimeHasBeenSet() const { return m_latestLaunchTimeHasBeenSet; }
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline void SetLatestLaunchTime(const Aws::Utils::DateTime& value) { m_latestLaunchTimeHasBeenSet = true; m_latestLaunchTime = value; }
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline void SetLatestLaunchTime(Aws::Utils::DateTime&& value) { m_latestLaunchTimeHasBeenSet = true; m_latestLaunchTime = std::move(value); }
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline LaunchDetails& WithLatestLaunchTime(const Aws::Utils::DateTime& value) { SetLatestLaunchTime(value); return *this;}
/**
* <p>The latest time that this application was launched successfully.</p>
*/
inline LaunchDetails& WithLatestLaunchTime(Aws::Utils::DateTime&& value) { SetLatestLaunchTime(std::move(value)); return *this;}
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline const Aws::String& GetStackName() const{ return m_stackName; }
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
/**
* <p>The name of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackName(const char* value) { SetStackName(value); return *this;}
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline const Aws::String& GetStackId() const{ return m_stackId; }
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
/**
* <p>The ID of the latest stack launched for this application.</p>
*/
inline LaunchDetails& WithStackId(const char* value) { SetStackId(value); return *this;}
private:
Aws::Utils::DateTime m_latestLaunchTime;
bool m_latestLaunchTimeHasBeenSet;
Aws::String m_stackName;
bool m_stackNameHasBeenSet;
Aws::String m_stackId;
bool m_stackIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class LicenseType
{
NOT_SET,
AWS,
BYOL
};
namespace LicenseTypeMapper
{
AWS_SMS_API LicenseType GetLicenseTypeForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForLicenseType(LicenseType value);
} // namespace LicenseTypeMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API ListAppsRequest : public SMSRequest
{
public:
ListAppsRequest();
// 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 "ListApps"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The unique application IDs.</p>
*/
inline const Aws::Vector<Aws::String>& GetAppIds() const{ return m_appIds; }
/**
* <p>The unique application IDs.</p>
*/
inline bool AppIdsHasBeenSet() const { return m_appIdsHasBeenSet; }
/**
* <p>The unique application IDs.</p>
*/
inline void SetAppIds(const Aws::Vector<Aws::String>& value) { m_appIdsHasBeenSet = true; m_appIds = value; }
/**
* <p>The unique application IDs.</p>
*/
inline void SetAppIds(Aws::Vector<Aws::String>&& value) { m_appIdsHasBeenSet = true; m_appIds = std::move(value); }
/**
* <p>The unique application IDs.</p>
*/
inline ListAppsRequest& WithAppIds(const Aws::Vector<Aws::String>& value) { SetAppIds(value); return *this;}
/**
* <p>The unique application IDs.</p>
*/
inline ListAppsRequest& WithAppIds(Aws::Vector<Aws::String>&& value) { SetAppIds(std::move(value)); return *this;}
/**
* <p>The unique application IDs.</p>
*/
inline ListAppsRequest& AddAppIds(const Aws::String& value) { m_appIdsHasBeenSet = true; m_appIds.push_back(value); return *this; }
/**
* <p>The unique application IDs.</p>
*/
inline ListAppsRequest& AddAppIds(Aws::String&& value) { m_appIdsHasBeenSet = true; m_appIds.push_back(std::move(value)); return *this; }
/**
* <p>The unique application IDs.</p>
*/
inline ListAppsRequest& AddAppIds(const char* value) { m_appIdsHasBeenSet = true; m_appIds.push_back(value); return *this; }
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline ListAppsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListAppsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListAppsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a single call. The default value
* is 100. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 100. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 100. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a single call. The default value
* is 100. To retrieve the remaining results, make another call with the returned
* <code>NextToken</code> value. </p>
*/
inline ListAppsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::Vector<Aws::String> m_appIds;
bool m_appIdsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/AppSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API ListAppsResult
{
public:
ListAppsResult();
ListAppsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAppsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application summaries.</p>
*/
inline const Aws::Vector<AppSummary>& GetApps() const{ return m_apps; }
/**
* <p>The application summaries.</p>
*/
inline void SetApps(const Aws::Vector<AppSummary>& value) { m_apps = value; }
/**
* <p>The application summaries.</p>
*/
inline void SetApps(Aws::Vector<AppSummary>&& value) { m_apps = std::move(value); }
/**
* <p>The application summaries.</p>
*/
inline ListAppsResult& WithApps(const Aws::Vector<AppSummary>& value) { SetApps(value); return *this;}
/**
* <p>The application summaries.</p>
*/
inline ListAppsResult& WithApps(Aws::Vector<AppSummary>&& value) { SetApps(std::move(value)); return *this;}
/**
* <p>The application summaries.</p>
*/
inline ListAppsResult& AddApps(const AppSummary& value) { m_apps.push_back(value); return *this; }
/**
* <p>The application summaries.</p>
*/
inline ListAppsResult& AddApps(AppSummary&& value) { m_apps.push_back(std::move(value)); return *this; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline ListAppsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline ListAppsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token required to retrieve the next set of results. This value is null
* when there are no more results to return.</p>
*/
inline ListAppsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AppSummary> m_apps;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ValidationStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Contains the status of validating an application.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/NotificationContext">AWS
* API Reference</a></p>
*/
class AWS_SMS_API NotificationContext
{
public:
NotificationContext();
NotificationContext(Aws::Utils::Json::JsonView jsonValue);
NotificationContext& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the validation.</p>
*/
inline const Aws::String& GetValidationId() const{ return m_validationId; }
/**
* <p>The ID of the validation.</p>
*/
inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); }
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline NotificationContext& WithValidationId(const char* value) { SetValidationId(value); return *this;}
/**
* <p>The status of the validation.</p>
*/
inline const ValidationStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the validation.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the validation.</p>
*/
inline void SetStatus(const ValidationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the validation.</p>
*/
inline void SetStatus(ValidationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the validation.</p>
*/
inline NotificationContext& WithStatus(const ValidationStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the validation.</p>
*/
inline NotificationContext& WithStatus(ValidationStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status message.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The status message.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The status message.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The status message.</p>
*/
inline NotificationContext& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
private:
Aws::String m_validationId;
bool m_validationIdHasBeenSet;
ValidationStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/NotificationContext.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API NotifyAppValidationOutputRequest : public SMSRequest
{
public:
NotifyAppValidationOutputRequest();
// 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 "NotifyAppValidationOutput"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline NotifyAppValidationOutputRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline NotifyAppValidationOutputRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline NotifyAppValidationOutputRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The notification information.</p>
*/
inline const NotificationContext& GetNotificationContext() const{ return m_notificationContext; }
/**
* <p>The notification information.</p>
*/
inline bool NotificationContextHasBeenSet() const { return m_notificationContextHasBeenSet; }
/**
* <p>The notification information.</p>
*/
inline void SetNotificationContext(const NotificationContext& value) { m_notificationContextHasBeenSet = true; m_notificationContext = value; }
/**
* <p>The notification information.</p>
*/
inline void SetNotificationContext(NotificationContext&& value) { m_notificationContextHasBeenSet = true; m_notificationContext = std::move(value); }
/**
* <p>The notification information.</p>
*/
inline NotifyAppValidationOutputRequest& WithNotificationContext(const NotificationContext& value) { SetNotificationContext(value); return *this;}
/**
* <p>The notification information.</p>
*/
inline NotifyAppValidationOutputRequest& WithNotificationContext(NotificationContext&& value) { SetNotificationContext(std::move(value)); return *this;}
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
NotificationContext m_notificationContext;
bool m_notificationContextHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API NotifyAppValidationOutputResult
{
public:
NotifyAppValidationOutputResult();
NotifyAppValidationOutputResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
NotifyAppValidationOutputResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class OutputFormat
{
NOT_SET,
JSON,
YAML
};
namespace OutputFormatMapper
{
AWS_SMS_API OutputFormat GetOutputFormatForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForOutputFormat(OutputFormat value);
} // namespace OutputFormatMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,219 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroupLaunchConfiguration.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API PutAppLaunchConfigurationRequest : public SMSRequest
{
public:
PutAppLaunchConfigurationRequest();
// 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 "PutAppLaunchConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of service role in the customer's account that AWS CloudFormation
* uses to launch the application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline bool GetAutoLaunch() const{ return m_autoLaunch; }
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline bool AutoLaunchHasBeenSet() const { return m_autoLaunchHasBeenSet; }
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline void SetAutoLaunch(bool value) { m_autoLaunchHasBeenSet = true; m_autoLaunch = value; }
/**
* <p>Indicates whether the application is configured to launch automatically after
* replication is complete.</p>
*/
inline PutAppLaunchConfigurationRequest& WithAutoLaunch(bool value) { SetAutoLaunch(value); return *this;}
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline const Aws::Vector<ServerGroupLaunchConfiguration>& GetServerGroupLaunchConfigurations() const{ return m_serverGroupLaunchConfigurations; }
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline bool ServerGroupLaunchConfigurationsHasBeenSet() const { return m_serverGroupLaunchConfigurationsHasBeenSet; }
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline void SetServerGroupLaunchConfigurations(const Aws::Vector<ServerGroupLaunchConfiguration>& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = value; }
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline void SetServerGroupLaunchConfigurations(Aws::Vector<ServerGroupLaunchConfiguration>&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations = std::move(value); }
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithServerGroupLaunchConfigurations(const Aws::Vector<ServerGroupLaunchConfiguration>& value) { SetServerGroupLaunchConfigurations(value); return *this;}
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline PutAppLaunchConfigurationRequest& WithServerGroupLaunchConfigurations(Aws::Vector<ServerGroupLaunchConfiguration>&& value) { SetServerGroupLaunchConfigurations(std::move(value)); return *this;}
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(const ServerGroupLaunchConfiguration& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(value); return *this; }
/**
* <p>Information about the launch configurations for server groups in the
* application.</p>
*/
inline PutAppLaunchConfigurationRequest& AddServerGroupLaunchConfigurations(ServerGroupLaunchConfiguration&& value) { m_serverGroupLaunchConfigurationsHasBeenSet = true; m_serverGroupLaunchConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
bool m_autoLaunch;
bool m_autoLaunchHasBeenSet;
Aws::Vector<ServerGroupLaunchConfiguration> m_serverGroupLaunchConfigurations;
bool m_serverGroupLaunchConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API PutAppLaunchConfigurationResult
{
public:
PutAppLaunchConfigurationResult();
PutAppLaunchConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutAppLaunchConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,139 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerGroupReplicationConfiguration.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API PutAppReplicationConfigurationRequest : public SMSRequest
{
public:
PutAppReplicationConfigurationRequest();
// 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 "PutAppReplicationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline PutAppReplicationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppReplicationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppReplicationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline const Aws::Vector<ServerGroupReplicationConfiguration>& GetServerGroupReplicationConfigurations() const{ return m_serverGroupReplicationConfigurations; }
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline bool ServerGroupReplicationConfigurationsHasBeenSet() const { return m_serverGroupReplicationConfigurationsHasBeenSet; }
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline void SetServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations = value; }
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline void SetServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations = std::move(value); }
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline PutAppReplicationConfigurationRequest& WithServerGroupReplicationConfigurations(const Aws::Vector<ServerGroupReplicationConfiguration>& value) { SetServerGroupReplicationConfigurations(value); return *this;}
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline PutAppReplicationConfigurationRequest& WithServerGroupReplicationConfigurations(Aws::Vector<ServerGroupReplicationConfiguration>&& value) { SetServerGroupReplicationConfigurations(std::move(value)); return *this;}
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline PutAppReplicationConfigurationRequest& AddServerGroupReplicationConfigurations(const ServerGroupReplicationConfiguration& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations.push_back(value); return *this; }
/**
* <p>Information about the replication configurations for server groups in the
* application.</p>
*/
inline PutAppReplicationConfigurationRequest& AddServerGroupReplicationConfigurations(ServerGroupReplicationConfiguration&& value) { m_serverGroupReplicationConfigurationsHasBeenSet = true; m_serverGroupReplicationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
Aws::Vector<ServerGroupReplicationConfiguration> m_serverGroupReplicationConfigurations;
bool m_serverGroupReplicationConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API PutAppReplicationConfigurationResult
{
public:
PutAppReplicationConfigurationResult();
PutAppReplicationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutAppReplicationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/SMSRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/AppValidationConfiguration.h>
#include <aws/sms/model/ServerGroupValidationConfiguration.h>
#include <utility>
namespace Aws
{
namespace SMS
{
namespace Model
{
/**
*/
class AWS_SMS_API PutAppValidationConfigurationRequest : public SMSRequest
{
public:
PutAppValidationConfigurationRequest();
// 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 "PutAppValidationConfiguration"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the application.</p>
*/
inline const Aws::String& GetAppId() const{ return m_appId; }
/**
* <p>The ID of the application.</p>
*/
inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
/**
* <p>The ID of the application.</p>
*/
inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
/**
* <p>The ID of the application.</p>
*/
inline PutAppValidationConfigurationRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppValidationConfigurationRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
/**
* <p>The ID of the application.</p>
*/
inline PutAppValidationConfigurationRequest& WithAppId(const char* value) { SetAppId(value); return *this;}
/**
* <p>The configuration for application validation.</p>
*/
inline const Aws::Vector<AppValidationConfiguration>& GetAppValidationConfigurations() const{ return m_appValidationConfigurations; }
/**
* <p>The configuration for application validation.</p>
*/
inline bool AppValidationConfigurationsHasBeenSet() const { return m_appValidationConfigurationsHasBeenSet; }
/**
* <p>The configuration for application validation.</p>
*/
inline void SetAppValidationConfigurations(const Aws::Vector<AppValidationConfiguration>& value) { m_appValidationConfigurationsHasBeenSet = true; m_appValidationConfigurations = value; }
/**
* <p>The configuration for application validation.</p>
*/
inline void SetAppValidationConfigurations(Aws::Vector<AppValidationConfiguration>&& value) { m_appValidationConfigurationsHasBeenSet = true; m_appValidationConfigurations = std::move(value); }
/**
* <p>The configuration for application validation.</p>
*/
inline PutAppValidationConfigurationRequest& WithAppValidationConfigurations(const Aws::Vector<AppValidationConfiguration>& value) { SetAppValidationConfigurations(value); return *this;}
/**
* <p>The configuration for application validation.</p>
*/
inline PutAppValidationConfigurationRequest& WithAppValidationConfigurations(Aws::Vector<AppValidationConfiguration>&& value) { SetAppValidationConfigurations(std::move(value)); return *this;}
/**
* <p>The configuration for application validation.</p>
*/
inline PutAppValidationConfigurationRequest& AddAppValidationConfigurations(const AppValidationConfiguration& value) { m_appValidationConfigurationsHasBeenSet = true; m_appValidationConfigurations.push_back(value); return *this; }
/**
* <p>The configuration for application validation.</p>
*/
inline PutAppValidationConfigurationRequest& AddAppValidationConfigurations(AppValidationConfiguration&& value) { m_appValidationConfigurationsHasBeenSet = true; m_appValidationConfigurations.push_back(std::move(value)); return *this; }
/**
* <p>The configuration for instance validation.</p>
*/
inline const Aws::Vector<ServerGroupValidationConfiguration>& GetServerGroupValidationConfigurations() const{ return m_serverGroupValidationConfigurations; }
/**
* <p>The configuration for instance validation.</p>
*/
inline bool ServerGroupValidationConfigurationsHasBeenSet() const { return m_serverGroupValidationConfigurationsHasBeenSet; }
/**
* <p>The configuration for instance validation.</p>
*/
inline void SetServerGroupValidationConfigurations(const Aws::Vector<ServerGroupValidationConfiguration>& value) { m_serverGroupValidationConfigurationsHasBeenSet = true; m_serverGroupValidationConfigurations = value; }
/**
* <p>The configuration for instance validation.</p>
*/
inline void SetServerGroupValidationConfigurations(Aws::Vector<ServerGroupValidationConfiguration>&& value) { m_serverGroupValidationConfigurationsHasBeenSet = true; m_serverGroupValidationConfigurations = std::move(value); }
/**
* <p>The configuration for instance validation.</p>
*/
inline PutAppValidationConfigurationRequest& WithServerGroupValidationConfigurations(const Aws::Vector<ServerGroupValidationConfiguration>& value) { SetServerGroupValidationConfigurations(value); return *this;}
/**
* <p>The configuration for instance validation.</p>
*/
inline PutAppValidationConfigurationRequest& WithServerGroupValidationConfigurations(Aws::Vector<ServerGroupValidationConfiguration>&& value) { SetServerGroupValidationConfigurations(std::move(value)); return *this;}
/**
* <p>The configuration for instance validation.</p>
*/
inline PutAppValidationConfigurationRequest& AddServerGroupValidationConfigurations(const ServerGroupValidationConfiguration& value) { m_serverGroupValidationConfigurationsHasBeenSet = true; m_serverGroupValidationConfigurations.push_back(value); return *this; }
/**
* <p>The configuration for instance validation.</p>
*/
inline PutAppValidationConfigurationRequest& AddServerGroupValidationConfigurations(ServerGroupValidationConfiguration&& value) { m_serverGroupValidationConfigurationsHasBeenSet = true; m_serverGroupValidationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_appId;
bool m_appIdHasBeenSet;
Aws::Vector<AppValidationConfiguration> m_appValidationConfigurations;
bool m_appValidationConfigurationsHasBeenSet;
Aws::Vector<ServerGroupValidationConfiguration> m_serverGroupValidationConfigurations;
bool m_serverGroupValidationConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
class AWS_SMS_API PutAppValidationConfigurationResult
{
public:
PutAppValidationConfigurationResult();
PutAppValidationConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutAppValidationConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,753 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ServerType.h>
#include <aws/sms/model/VmServer.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/LicenseType.h>
#include <aws/sms/model/ReplicationJobState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ReplicationRun.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Represents a replication job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ReplicationJob">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ReplicationJob
{
public:
ReplicationJob();
ReplicationJob(Aws::Utils::Json::JsonView jsonValue);
ReplicationJob& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The ID of the replication job.</p>
*/
inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline ReplicationJob& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline ReplicationJob& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline ReplicationJob& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline const Aws::String& GetServerId() const{ return m_serverId; }
/**
* <p>The ID of the server.</p>
*/
inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
/**
* <p>The ID of the server.</p>
*/
inline ReplicationJob& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline ReplicationJob& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline ReplicationJob& WithServerId(const char* value) { SetServerId(value); return *this;}
/**
* <p>The type of server.</p>
*/
inline const ServerType& GetServerType() const{ return m_serverType; }
/**
* <p>The type of server.</p>
*/
inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
/**
* <p>The type of server.</p>
*/
inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
/**
* <p>The type of server.</p>
*/
inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
/**
* <p>The type of server.</p>
*/
inline ReplicationJob& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
/**
* <p>The type of server.</p>
*/
inline ReplicationJob& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
/**
* <p>Information about the VM server.</p>
*/
inline const VmServer& GetVmServer() const{ return m_vmServer; }
/**
* <p>Information about the VM server.</p>
*/
inline bool VmServerHasBeenSet() const { return m_vmServerHasBeenSet; }
/**
* <p>Information about the VM server.</p>
*/
inline void SetVmServer(const VmServer& value) { m_vmServerHasBeenSet = true; m_vmServer = value; }
/**
* <p>Information about the VM server.</p>
*/
inline void SetVmServer(VmServer&& value) { m_vmServerHasBeenSet = true; m_vmServer = std::move(value); }
/**
* <p>Information about the VM server.</p>
*/
inline ReplicationJob& WithVmServer(const VmServer& value) { SetVmServer(value); return *this;}
/**
* <p>Information about the VM server.</p>
*/
inline ReplicationJob& WithVmServer(VmServer&& value) { SetVmServer(std::move(value)); return *this;}
/**
* <p>The seed replication time.</p>
*/
inline const Aws::Utils::DateTime& GetSeedReplicationTime() const{ return m_seedReplicationTime; }
/**
* <p>The seed replication time.</p>
*/
inline bool SeedReplicationTimeHasBeenSet() const { return m_seedReplicationTimeHasBeenSet; }
/**
* <p>The seed replication time.</p>
*/
inline void SetSeedReplicationTime(const Aws::Utils::DateTime& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = value; }
/**
* <p>The seed replication time.</p>
*/
inline void SetSeedReplicationTime(Aws::Utils::DateTime&& value) { m_seedReplicationTimeHasBeenSet = true; m_seedReplicationTime = std::move(value); }
/**
* <p>The seed replication time.</p>
*/
inline ReplicationJob& WithSeedReplicationTime(const Aws::Utils::DateTime& value) { SetSeedReplicationTime(value); return *this;}
/**
* <p>The seed replication time.</p>
*/
inline ReplicationJob& WithSeedReplicationTime(Aws::Utils::DateTime&& value) { SetSeedReplicationTime(std::move(value)); return *this;}
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline int GetFrequency() const{ return m_frequency; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
/**
* <p>The time between consecutive replication runs, in hours.</p>
*/
inline ReplicationJob& WithFrequency(int value) { SetFrequency(value); return *this;}
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool GetRunOnce() const{ return m_runOnce; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline ReplicationJob& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
/**
* <p>The start time of the next replication run.</p>
*/
inline const Aws::Utils::DateTime& GetNextReplicationRunStartTime() const{ return m_nextReplicationRunStartTime; }
/**
* <p>The start time of the next replication run.</p>
*/
inline bool NextReplicationRunStartTimeHasBeenSet() const { return m_nextReplicationRunStartTimeHasBeenSet; }
/**
* <p>The start time of the next replication run.</p>
*/
inline void SetNextReplicationRunStartTime(const Aws::Utils::DateTime& value) { m_nextReplicationRunStartTimeHasBeenSet = true; m_nextReplicationRunStartTime = value; }
/**
* <p>The start time of the next replication run.</p>
*/
inline void SetNextReplicationRunStartTime(Aws::Utils::DateTime&& value) { m_nextReplicationRunStartTimeHasBeenSet = true; m_nextReplicationRunStartTime = std::move(value); }
/**
* <p>The start time of the next replication run.</p>
*/
inline ReplicationJob& WithNextReplicationRunStartTime(const Aws::Utils::DateTime& value) { SetNextReplicationRunStartTime(value); return *this;}
/**
* <p>The start time of the next replication run.</p>
*/
inline ReplicationJob& WithNextReplicationRunStartTime(Aws::Utils::DateTime&& value) { SetNextReplicationRunStartTime(std::move(value)); return *this;}
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline ReplicationJob& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
/**
* <p>The license type to be used for the AMI created by a successful replication
* run.</p>
*/
inline ReplicationJob& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline const Aws::String& GetRoleName() const{ return m_roleName; }
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline ReplicationJob& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline ReplicationJob& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
/**
* <p>The name of the IAM role to be used by AWS SMS.</p>
*/
inline ReplicationJob& WithRoleName(const char* value) { SetRoleName(value); return *this;}
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline const Aws::String& GetLatestAmiId() const{ return m_latestAmiId; }
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline bool LatestAmiIdHasBeenSet() const { return m_latestAmiIdHasBeenSet; }
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline void SetLatestAmiId(const Aws::String& value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId = value; }
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline void SetLatestAmiId(Aws::String&& value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId = std::move(value); }
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline void SetLatestAmiId(const char* value) { m_latestAmiIdHasBeenSet = true; m_latestAmiId.assign(value); }
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline ReplicationJob& WithLatestAmiId(const Aws::String& value) { SetLatestAmiId(value); return *this;}
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline ReplicationJob& WithLatestAmiId(Aws::String&& value) { SetLatestAmiId(std::move(value)); return *this;}
/**
* <p>The ID of the latest Amazon Machine Image (AMI).</p>
*/
inline ReplicationJob& WithLatestAmiId(const char* value) { SetLatestAmiId(value); return *this;}
/**
* <p>The state of the replication job.</p>
*/
inline const ReplicationJobState& GetState() const{ return m_state; }
/**
* <p>The state of the replication job.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the replication job.</p>
*/
inline void SetState(const ReplicationJobState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the replication job.</p>
*/
inline void SetState(ReplicationJobState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the replication job.</p>
*/
inline ReplicationJob& WithState(const ReplicationJobState& value) { SetState(value); return *this;}
/**
* <p>The state of the replication job.</p>
*/
inline ReplicationJob& WithState(ReplicationJobState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationJob& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationJob& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationJob& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the replication job.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the replication job.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the replication job.</p>
*/
inline ReplicationJob& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline ReplicationJob& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the replication job.</p>
*/
inline ReplicationJob& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The number of recent AMIs to keep in the customer's account for a replication
* job. By default, the value is set to zero, meaning that all AMIs are kept.</p>
*/
inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
/**
* <p>The number of recent AMIs to keep in the customer's account for a replication
* job. By default, the value is set to zero, meaning that all AMIs are kept.</p>
*/
inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
/**
* <p>The number of recent AMIs to keep in the customer's account for a replication
* job. By default, the value is set to zero, meaning that all AMIs are kept.</p>
*/
inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
/**
* <p>The number of recent AMIs to keep in the customer's account for a replication
* job. By default, the value is set to zero, meaning that all AMIs are kept.</p>
*/
inline ReplicationJob& WithNumberOfRecentAmisToKeep(int value) { SetNumberOfRecentAmisToKeep(value); return *this;}
/**
* <p>Indicates whether the replication job should produce encrypted AMIs.</p>
*/
inline bool GetEncrypted() const{ return m_encrypted; }
/**
* <p>Indicates whether the replication job should produce encrypted AMIs.</p>
*/
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
/**
* <p>Indicates whether the replication job should produce encrypted AMIs.</p>
*/
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
/**
* <p>Indicates whether the replication job should produce encrypted AMIs.</p>
*/
inline ReplicationJob& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ReplicationJob& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ReplicationJob& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following: </p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ReplicationJob& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline const Aws::Vector<ReplicationRun>& GetReplicationRunList() const{ return m_replicationRunList; }
/**
* <p>Information about the replication runs.</p>
*/
inline bool ReplicationRunListHasBeenSet() const { return m_replicationRunListHasBeenSet; }
/**
* <p>Information about the replication runs.</p>
*/
inline void SetReplicationRunList(const Aws::Vector<ReplicationRun>& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList = value; }
/**
* <p>Information about the replication runs.</p>
*/
inline void SetReplicationRunList(Aws::Vector<ReplicationRun>&& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList = std::move(value); }
/**
* <p>Information about the replication runs.</p>
*/
inline ReplicationJob& WithReplicationRunList(const Aws::Vector<ReplicationRun>& value) { SetReplicationRunList(value); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline ReplicationJob& WithReplicationRunList(Aws::Vector<ReplicationRun>&& value) { SetReplicationRunList(std::move(value)); return *this;}
/**
* <p>Information about the replication runs.</p>
*/
inline ReplicationJob& AddReplicationRunList(const ReplicationRun& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList.push_back(value); return *this; }
/**
* <p>Information about the replication runs.</p>
*/
inline ReplicationJob& AddReplicationRunList(ReplicationRun&& value) { m_replicationRunListHasBeenSet = true; m_replicationRunList.push_back(std::move(value)); return *this; }
private:
Aws::String m_replicationJobId;
bool m_replicationJobIdHasBeenSet;
Aws::String m_serverId;
bool m_serverIdHasBeenSet;
ServerType m_serverType;
bool m_serverTypeHasBeenSet;
VmServer m_vmServer;
bool m_vmServerHasBeenSet;
Aws::Utils::DateTime m_seedReplicationTime;
bool m_seedReplicationTimeHasBeenSet;
int m_frequency;
bool m_frequencyHasBeenSet;
bool m_runOnce;
bool m_runOnceHasBeenSet;
Aws::Utils::DateTime m_nextReplicationRunStartTime;
bool m_nextReplicationRunStartTimeHasBeenSet;
LicenseType m_licenseType;
bool m_licenseTypeHasBeenSet;
Aws::String m_roleName;
bool m_roleNameHasBeenSet;
Aws::String m_latestAmiId;
bool m_latestAmiIdHasBeenSet;
ReplicationJobState m_state;
bool m_stateHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_numberOfRecentAmisToKeep;
bool m_numberOfRecentAmisToKeepHasBeenSet;
bool m_encrypted;
bool m_encryptedHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
Aws::Vector<ReplicationRun> m_replicationRunList;
bool m_replicationRunListHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,37 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ReplicationJobState
{
NOT_SET,
PENDING,
ACTIVE,
FAILED,
DELETING,
DELETED,
COMPLETED,
PAUSED_ON_FAILURE,
FAILING
};
namespace ReplicationJobStateMapper
{
AWS_SMS_API ReplicationJobState GetReplicationJobStateForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForReplicationJobState(ReplicationJobState value);
} // namespace ReplicationJobStateMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,502 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ReplicationRunState.h>
#include <aws/sms/model/ReplicationRunType.h>
#include <aws/sms/model/ReplicationRunStageDetails.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Represents a replication run.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ReplicationRun">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ReplicationRun
{
public:
ReplicationRun();
ReplicationRun(Aws::Utils::Json::JsonView jsonValue);
ReplicationRun& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the replication run.</p>
*/
inline const Aws::String& GetReplicationRunId() const{ return m_replicationRunId; }
/**
* <p>The ID of the replication run.</p>
*/
inline bool ReplicationRunIdHasBeenSet() const { return m_replicationRunIdHasBeenSet; }
/**
* <p>The ID of the replication run.</p>
*/
inline void SetReplicationRunId(const Aws::String& value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId = value; }
/**
* <p>The ID of the replication run.</p>
*/
inline void SetReplicationRunId(Aws::String&& value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId = std::move(value); }
/**
* <p>The ID of the replication run.</p>
*/
inline void SetReplicationRunId(const char* value) { m_replicationRunIdHasBeenSet = true; m_replicationRunId.assign(value); }
/**
* <p>The ID of the replication run.</p>
*/
inline ReplicationRun& WithReplicationRunId(const Aws::String& value) { SetReplicationRunId(value); return *this;}
/**
* <p>The ID of the replication run.</p>
*/
inline ReplicationRun& WithReplicationRunId(Aws::String&& value) { SetReplicationRunId(std::move(value)); return *this;}
/**
* <p>The ID of the replication run.</p>
*/
inline ReplicationRun& WithReplicationRunId(const char* value) { SetReplicationRunId(value); return *this;}
/**
* <p>The state of the replication run.</p>
*/
inline const ReplicationRunState& GetState() const{ return m_state; }
/**
* <p>The state of the replication run.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the replication run.</p>
*/
inline void SetState(const ReplicationRunState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the replication run.</p>
*/
inline void SetState(ReplicationRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the replication run.</p>
*/
inline ReplicationRun& WithState(const ReplicationRunState& value) { SetState(value); return *this;}
/**
* <p>The state of the replication run.</p>
*/
inline ReplicationRun& WithState(ReplicationRunState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The type of replication run.</p>
*/
inline const ReplicationRunType& GetType() const{ return m_type; }
/**
* <p>The type of replication run.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of replication run.</p>
*/
inline void SetType(const ReplicationRunType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of replication run.</p>
*/
inline void SetType(ReplicationRunType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of replication run.</p>
*/
inline ReplicationRun& WithType(const ReplicationRunType& value) { SetType(value); return *this;}
/**
* <p>The type of replication run.</p>
*/
inline ReplicationRun& WithType(ReplicationRunType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline const ReplicationRunStageDetails& GetStageDetails() const{ return m_stageDetails; }
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline bool StageDetailsHasBeenSet() const { return m_stageDetailsHasBeenSet; }
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline void SetStageDetails(const ReplicationRunStageDetails& value) { m_stageDetailsHasBeenSet = true; m_stageDetails = value; }
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline void SetStageDetails(ReplicationRunStageDetails&& value) { m_stageDetailsHasBeenSet = true; m_stageDetails = std::move(value); }
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline ReplicationRun& WithStageDetails(const ReplicationRunStageDetails& value) { SetStageDetails(value); return *this;}
/**
* <p>Details about the current stage of the replication run.</p>
*/
inline ReplicationRun& WithStageDetails(ReplicationRunStageDetails&& value) { SetStageDetails(std::move(value)); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationRun& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationRun& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The description of the current status of the replication job.</p>
*/
inline ReplicationRun& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline const Aws::String& GetAmiId() const{ return m_amiId; }
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline ReplicationRun& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline ReplicationRun& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
/**
* <p>The ID of the Amazon Machine Image (AMI) from the replication run.</p>
*/
inline ReplicationRun& WithAmiId(const char* value) { SetAmiId(value); return *this;}
/**
* <p>The start time of the next replication run.</p>
*/
inline const Aws::Utils::DateTime& GetScheduledStartTime() const{ return m_scheduledStartTime; }
/**
* <p>The start time of the next replication run.</p>
*/
inline bool ScheduledStartTimeHasBeenSet() const { return m_scheduledStartTimeHasBeenSet; }
/**
* <p>The start time of the next replication run.</p>
*/
inline void SetScheduledStartTime(const Aws::Utils::DateTime& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = value; }
/**
* <p>The start time of the next replication run.</p>
*/
inline void SetScheduledStartTime(Aws::Utils::DateTime&& value) { m_scheduledStartTimeHasBeenSet = true; m_scheduledStartTime = std::move(value); }
/**
* <p>The start time of the next replication run.</p>
*/
inline ReplicationRun& WithScheduledStartTime(const Aws::Utils::DateTime& value) { SetScheduledStartTime(value); return *this;}
/**
* <p>The start time of the next replication run.</p>
*/
inline ReplicationRun& WithScheduledStartTime(Aws::Utils::DateTime&& value) { SetScheduledStartTime(std::move(value)); return *this;}
/**
* <p>The completion time of the last replication run.</p>
*/
inline const Aws::Utils::DateTime& GetCompletedTime() const{ return m_completedTime; }
/**
* <p>The completion time of the last replication run.</p>
*/
inline bool CompletedTimeHasBeenSet() const { return m_completedTimeHasBeenSet; }
/**
* <p>The completion time of the last replication run.</p>
*/
inline void SetCompletedTime(const Aws::Utils::DateTime& value) { m_completedTimeHasBeenSet = true; m_completedTime = value; }
/**
* <p>The completion time of the last replication run.</p>
*/
inline void SetCompletedTime(Aws::Utils::DateTime&& value) { m_completedTimeHasBeenSet = true; m_completedTime = std::move(value); }
/**
* <p>The completion time of the last replication run.</p>
*/
inline ReplicationRun& WithCompletedTime(const Aws::Utils::DateTime& value) { SetCompletedTime(value); return *this;}
/**
* <p>The completion time of the last replication run.</p>
*/
inline ReplicationRun& WithCompletedTime(Aws::Utils::DateTime&& value) { SetCompletedTime(std::move(value)); return *this;}
/**
* <p>The description of the replication run.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the replication run.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the replication run.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the replication run.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the replication run.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the replication run.</p>
*/
inline ReplicationRun& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the replication run.</p>
*/
inline ReplicationRun& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the replication run.</p>
*/
inline ReplicationRun& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Indicates whether the replication run should produce an encrypted AMI.</p>
*/
inline bool GetEncrypted() const{ return m_encrypted; }
/**
* <p>Indicates whether the replication run should produce an encrypted AMI.</p>
*/
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
/**
* <p>Indicates whether the replication run should produce an encrypted AMI.</p>
*/
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
/**
* <p>Indicates whether the replication run should produce an encrypted AMI.</p>
*/
inline ReplicationRun& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline ReplicationRun& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline ReplicationRun& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p> If encrypted is
* <i>true</i> but a KMS key ID is not specified, the customer's default KMS key
* for Amazon EBS is used. </p>
*/
inline ReplicationRun& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
private:
Aws::String m_replicationRunId;
bool m_replicationRunIdHasBeenSet;
ReplicationRunState m_state;
bool m_stateHasBeenSet;
ReplicationRunType m_type;
bool m_typeHasBeenSet;
ReplicationRunStageDetails m_stageDetails;
bool m_stageDetailsHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
Aws::String m_amiId;
bool m_amiIdHasBeenSet;
Aws::Utils::DateTime m_scheduledStartTime;
bool m_scheduledStartTimeHasBeenSet;
Aws::Utils::DateTime m_completedTime;
bool m_completedTimeHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
bool m_encrypted;
bool m_encryptedHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_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 SMS
{
namespace Model
{
/**
* <p>Details of the current stage of a replication run.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ReplicationRunStageDetails">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ReplicationRunStageDetails
{
public:
ReplicationRunStageDetails();
ReplicationRunStageDetails(Aws::Utils::Json::JsonView jsonValue);
ReplicationRunStageDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The current stage of a replication run.</p>
*/
inline const Aws::String& GetStage() const{ return m_stage; }
/**
* <p>The current stage of a replication run.</p>
*/
inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
/**
* <p>The current stage of a replication run.</p>
*/
inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
/**
* <p>The current stage of a replication run.</p>
*/
inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
/**
* <p>The current stage of a replication run.</p>
*/
inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
/**
* <p>The current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStage(const Aws::String& value) { SetStage(value); return *this;}
/**
* <p>The current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStage(Aws::String&& value) { SetStage(std::move(value)); return *this;}
/**
* <p>The current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStage(const char* value) { SetStage(value); return *this;}
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline const Aws::String& GetStageProgress() const{ return m_stageProgress; }
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline bool StageProgressHasBeenSet() const { return m_stageProgressHasBeenSet; }
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline void SetStageProgress(const Aws::String& value) { m_stageProgressHasBeenSet = true; m_stageProgress = value; }
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline void SetStageProgress(Aws::String&& value) { m_stageProgressHasBeenSet = true; m_stageProgress = std::move(value); }
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline void SetStageProgress(const char* value) { m_stageProgressHasBeenSet = true; m_stageProgress.assign(value); }
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStageProgress(const Aws::String& value) { SetStageProgress(value); return *this;}
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStageProgress(Aws::String&& value) { SetStageProgress(std::move(value)); return *this;}
/**
* <p>The progress of the current stage of a replication run.</p>
*/
inline ReplicationRunStageDetails& WithStageProgress(const char* value) { SetStageProgress(value); return *this;}
private:
Aws::String m_stage;
bool m_stageHasBeenSet;
Aws::String m_stageProgress;
bool m_stageProgressHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ReplicationRunState
{
NOT_SET,
PENDING,
MISSED,
ACTIVE,
FAILED,
COMPLETED,
DELETING,
DELETED
};
namespace ReplicationRunStateMapper
{
AWS_SMS_API ReplicationRunState GetReplicationRunStateForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForReplicationRunState(ReplicationRunState value);
} // namespace ReplicationRunStateMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ReplicationRunType
{
NOT_SET,
ON_DEMAND,
AUTOMATIC
};
namespace ReplicationRunTypeMapper
{
AWS_SMS_API ReplicationRunType GetReplicationRunTypeForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForReplicationRunType(ReplicationRunType value);
} // namespace ReplicationRunTypeMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_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 SMS
{
namespace Model
{
/**
* <p>Location of an Amazon S3 object.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/S3Location">AWS API
* Reference</a></p>
*/
class AWS_SMS_API S3Location
{
public:
S3Location();
S3Location(Aws::Utils::Json::JsonView jsonValue);
S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline const Aws::String& GetBucket() const{ return m_bucket; }
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
/**
* <p>The Amazon S3 bucket name.</p>
*/
inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The Amazon S3 bucket key.</p>
*/
inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
private:
Aws::String m_bucket;
bool m_bucketHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/S3Location.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Contains the location of validation output.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/SSMOutput">AWS API
* Reference</a></p>
*/
class AWS_SMS_API SSMOutput
{
public:
SSMOutput();
SSMOutput(Aws::Utils::Json::JsonView jsonValue);
SSMOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const S3Location& GetS3Location() const{ return m_s3Location; }
inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
inline void SetS3Location(const S3Location& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
inline void SetS3Location(S3Location&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
inline SSMOutput& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;}
inline SSMOutput& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;}
private:
S3Location m_s3Location;
bool m_s3LocationHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,278 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/Source.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ScriptType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Contains validation parameters.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/SSMValidationParameters">AWS
* API Reference</a></p>
*/
class AWS_SMS_API SSMValidationParameters
{
public:
SSMValidationParameters();
SSMValidationParameters(Aws::Utils::Json::JsonView jsonValue);
SSMValidationParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The location of the validation script.</p>
*/
inline const Source& GetSource() const{ return m_source; }
/**
* <p>The location of the validation script.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The location of the validation script.</p>
*/
inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The location of the validation script.</p>
*/
inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The location of the validation script.</p>
*/
inline SSMValidationParameters& WithSource(const Source& value) { SetSource(value); return *this;}
/**
* <p>The location of the validation script.</p>
*/
inline SSMValidationParameters& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline SSMValidationParameters& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline SSMValidationParameters& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The ID of the instance. The instance must have the following tag:
* UserForSMSApplicationValidation=true.</p>
*/
inline SSMValidationParameters& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The type of validation script.</p>
*/
inline const ScriptType& GetScriptType() const{ return m_scriptType; }
/**
* <p>The type of validation script.</p>
*/
inline bool ScriptTypeHasBeenSet() const { return m_scriptTypeHasBeenSet; }
/**
* <p>The type of validation script.</p>
*/
inline void SetScriptType(const ScriptType& value) { m_scriptTypeHasBeenSet = true; m_scriptType = value; }
/**
* <p>The type of validation script.</p>
*/
inline void SetScriptType(ScriptType&& value) { m_scriptTypeHasBeenSet = true; m_scriptType = std::move(value); }
/**
* <p>The type of validation script.</p>
*/
inline SSMValidationParameters& WithScriptType(const ScriptType& value) { SetScriptType(value); return *this;}
/**
* <p>The type of validation script.</p>
*/
inline SSMValidationParameters& WithScriptType(ScriptType&& value) { SetScriptType(std::move(value)); return *this;}
/**
* <p>The command to run the validation script</p>
*/
inline const Aws::String& GetCommand() const{ return m_command; }
/**
* <p>The command to run the validation script</p>
*/
inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
/**
* <p>The command to run the validation script</p>
*/
inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; }
/**
* <p>The command to run the validation script</p>
*/
inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
/**
* <p>The command to run the validation script</p>
*/
inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); }
/**
* <p>The command to run the validation script</p>
*/
inline SSMValidationParameters& WithCommand(const Aws::String& value) { SetCommand(value); return *this;}
/**
* <p>The command to run the validation script</p>
*/
inline SSMValidationParameters& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;}
/**
* <p>The command to run the validation script</p>
*/
inline SSMValidationParameters& WithCommand(const char* value) { SetCommand(value); return *this;}
/**
* <p>The timeout interval, in seconds.</p>
*/
inline int GetExecutionTimeoutSeconds() const{ return m_executionTimeoutSeconds; }
/**
* <p>The timeout interval, in seconds.</p>
*/
inline bool ExecutionTimeoutSecondsHasBeenSet() const { return m_executionTimeoutSecondsHasBeenSet; }
/**
* <p>The timeout interval, in seconds.</p>
*/
inline void SetExecutionTimeoutSeconds(int value) { m_executionTimeoutSecondsHasBeenSet = true; m_executionTimeoutSeconds = value; }
/**
* <p>The timeout interval, in seconds.</p>
*/
inline SSMValidationParameters& WithExecutionTimeoutSeconds(int value) { SetExecutionTimeoutSeconds(value); return *this;}
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline const Aws::String& GetOutputS3BucketName() const{ return m_outputS3BucketName; }
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline bool OutputS3BucketNameHasBeenSet() const { return m_outputS3BucketNameHasBeenSet; }
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline void SetOutputS3BucketName(const Aws::String& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = value; }
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline void SetOutputS3BucketName(Aws::String&& value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName = std::move(value); }
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline void SetOutputS3BucketName(const char* value) { m_outputS3BucketNameHasBeenSet = true; m_outputS3BucketName.assign(value); }
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline SSMValidationParameters& WithOutputS3BucketName(const Aws::String& value) { SetOutputS3BucketName(value); return *this;}
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline SSMValidationParameters& WithOutputS3BucketName(Aws::String&& value) { SetOutputS3BucketName(std::move(value)); return *this;}
/**
* <p>The name of the S3 bucket for output.</p>
*/
inline SSMValidationParameters& WithOutputS3BucketName(const char* value) { SetOutputS3BucketName(value); return *this;}
private:
Source m_source;
bool m_sourceHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
ScriptType m_scriptType;
bool m_scriptTypeHasBeenSet;
Aws::String m_command;
bool m_commandHasBeenSet;
int m_executionTimeoutSeconds;
bool m_executionTimeoutSecondsHasBeenSet;
Aws::String m_outputS3BucketName;
bool m_outputS3BucketNameHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ScriptType
{
NOT_SET,
SHELL_SCRIPT,
POWERSHELL_SCRIPT
};
namespace ScriptTypeMapper
{
AWS_SMS_API ScriptType GetScriptTypeForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForScriptType(ScriptType value);
} // namespace ScriptTypeMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,226 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ServerType.h>
#include <aws/sms/model/VmServer.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Represents a server.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/Server">AWS API
* Reference</a></p>
*/
class AWS_SMS_API Server
{
public:
Server();
Server(Aws::Utils::Json::JsonView jsonValue);
Server& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server.</p>
*/
inline const Aws::String& GetServerId() const{ return m_serverId; }
/**
* <p>The ID of the server.</p>
*/
inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
/**
* <p>The ID of the server.</p>
*/
inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
/**
* <p>The ID of the server.</p>
*/
inline Server& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline Server& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
/**
* <p>The ID of the server.</p>
*/
inline Server& WithServerId(const char* value) { SetServerId(value); return *this;}
/**
* <p>The type of server.</p>
*/
inline const ServerType& GetServerType() const{ return m_serverType; }
/**
* <p>The type of server.</p>
*/
inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
/**
* <p>The type of server.</p>
*/
inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
/**
* <p>The type of server.</p>
*/
inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
/**
* <p>The type of server.</p>
*/
inline Server& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
/**
* <p>The type of server.</p>
*/
inline Server& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
/**
* <p>Information about the VM server.</p>
*/
inline const VmServer& GetVmServer() const{ return m_vmServer; }
/**
* <p>Information about the VM server.</p>
*/
inline bool VmServerHasBeenSet() const { return m_vmServerHasBeenSet; }
/**
* <p>Information about the VM server.</p>
*/
inline void SetVmServer(const VmServer& value) { m_vmServerHasBeenSet = true; m_vmServer = value; }
/**
* <p>Information about the VM server.</p>
*/
inline void SetVmServer(VmServer&& value) { m_vmServerHasBeenSet = true; m_vmServer = std::move(value); }
/**
* <p>Information about the VM server.</p>
*/
inline Server& WithVmServer(const VmServer& value) { SetVmServer(value); return *this;}
/**
* <p>Information about the VM server.</p>
*/
inline Server& WithVmServer(VmServer&& value) { SetVmServer(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline const Aws::String& GetReplicationJobId() const{ return m_replicationJobId; }
/**
* <p>The ID of the replication job.</p>
*/
inline bool ReplicationJobIdHasBeenSet() const { return m_replicationJobIdHasBeenSet; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const Aws::String& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = value; }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(Aws::String&& value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId = std::move(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline void SetReplicationJobId(const char* value) { m_replicationJobIdHasBeenSet = true; m_replicationJobId.assign(value); }
/**
* <p>The ID of the replication job.</p>
*/
inline Server& WithReplicationJobId(const Aws::String& value) { SetReplicationJobId(value); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline Server& WithReplicationJobId(Aws::String&& value) { SetReplicationJobId(std::move(value)); return *this;}
/**
* <p>The ID of the replication job.</p>
*/
inline Server& WithReplicationJobId(const char* value) { SetReplicationJobId(value); return *this;}
/**
* <p>Indicates whether the replication job is deleted or failed.</p>
*/
inline bool GetReplicationJobTerminated() const{ return m_replicationJobTerminated; }
/**
* <p>Indicates whether the replication job is deleted or failed.</p>
*/
inline bool ReplicationJobTerminatedHasBeenSet() const { return m_replicationJobTerminatedHasBeenSet; }
/**
* <p>Indicates whether the replication job is deleted or failed.</p>
*/
inline void SetReplicationJobTerminated(bool value) { m_replicationJobTerminatedHasBeenSet = true; m_replicationJobTerminated = value; }
/**
* <p>Indicates whether the replication job is deleted or failed.</p>
*/
inline Server& WithReplicationJobTerminated(bool value) { SetReplicationJobTerminated(value); return *this;}
private:
Aws::String m_serverId;
bool m_serverIdHasBeenSet;
ServerType m_serverType;
bool m_serverTypeHasBeenSet;
VmServer m_vmServer;
bool m_vmServerHasBeenSet;
Aws::String m_replicationJobId;
bool m_replicationJobIdHasBeenSet;
bool m_replicationJobTerminated;
bool m_replicationJobTerminatedHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ServerCatalogStatus
{
NOT_SET,
NOT_IMPORTED,
IMPORTING,
AVAILABLE,
DELETED,
EXPIRED
};
namespace ServerCatalogStatusMapper
{
AWS_SMS_API ServerCatalogStatus GetServerCatalogStatusForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForServerCatalogStatus(ServerCatalogStatus value);
} // namespace ServerCatalogStatusMapper
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/Server.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Logical grouping of servers.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerGroup">AWS API
* Reference</a></p>
*/
class AWS_SMS_API ServerGroup
{
public:
ServerGroup();
ServerGroup(Aws::Utils::Json::JsonView jsonValue);
ServerGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of a server group.</p>
*/
inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
/**
* <p>The ID of a server group.</p>
*/
inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
/**
* <p>The ID of a server group.</p>
*/
inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
/**
* <p>The ID of a server group.</p>
*/
inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
/**
* <p>The ID of a server group.</p>
*/
inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
/**
* <p>The ID of a server group.</p>
*/
inline ServerGroup& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;}
/**
* <p>The ID of a server group.</p>
*/
inline ServerGroup& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
/**
* <p>The ID of a server group.</p>
*/
inline ServerGroup& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
/**
* <p>The name of a server group.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of a server group.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a server group.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a server group.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a server group.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of a server group.</p>
*/
inline ServerGroup& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of a server group.</p>
*/
inline ServerGroup& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of a server group.</p>
*/
inline ServerGroup& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The servers that belong to a server group.</p>
*/
inline const Aws::Vector<Server>& GetServerList() const{ return m_serverList; }
/**
* <p>The servers that belong to a server group.</p>
*/
inline bool ServerListHasBeenSet() const { return m_serverListHasBeenSet; }
/**
* <p>The servers that belong to a server group.</p>
*/
inline void SetServerList(const Aws::Vector<Server>& value) { m_serverListHasBeenSet = true; m_serverList = value; }
/**
* <p>The servers that belong to a server group.</p>
*/
inline void SetServerList(Aws::Vector<Server>&& value) { m_serverListHasBeenSet = true; m_serverList = std::move(value); }
/**
* <p>The servers that belong to a server group.</p>
*/
inline ServerGroup& WithServerList(const Aws::Vector<Server>& value) { SetServerList(value); return *this;}
/**
* <p>The servers that belong to a server group.</p>
*/
inline ServerGroup& WithServerList(Aws::Vector<Server>&& value) { SetServerList(std::move(value)); return *this;}
/**
* <p>The servers that belong to a server group.</p>
*/
inline ServerGroup& AddServerList(const Server& value) { m_serverListHasBeenSet = true; m_serverList.push_back(value); return *this; }
/**
* <p>The servers that belong to a server group.</p>
*/
inline ServerGroup& AddServerList(Server&& value) { m_serverListHasBeenSet = true; m_serverList.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverGroupId;
bool m_serverGroupIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Vector<Server> m_serverList;
bool m_serverListHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerLaunchConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Launch configuration for a server group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerGroupLaunchConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerGroupLaunchConfiguration
{
public:
ServerGroupLaunchConfiguration();
ServerGroupLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerGroupLaunchConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline ServerGroupLaunchConfiguration& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;}
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline ServerGroupLaunchConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
/**
* <p>The ID of the server group with which the launch configuration is
* associated.</p>
*/
inline ServerGroupLaunchConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
/**
* <p>The launch order of servers in the server group.</p>
*/
inline int GetLaunchOrder() const{ return m_launchOrder; }
/**
* <p>The launch order of servers in the server group.</p>
*/
inline bool LaunchOrderHasBeenSet() const { return m_launchOrderHasBeenSet; }
/**
* <p>The launch order of servers in the server group.</p>
*/
inline void SetLaunchOrder(int value) { m_launchOrderHasBeenSet = true; m_launchOrder = value; }
/**
* <p>The launch order of servers in the server group.</p>
*/
inline ServerGroupLaunchConfiguration& WithLaunchOrder(int value) { SetLaunchOrder(value); return *this;}
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline const Aws::Vector<ServerLaunchConfiguration>& GetServerLaunchConfigurations() const{ return m_serverLaunchConfigurations; }
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline bool ServerLaunchConfigurationsHasBeenSet() const { return m_serverLaunchConfigurationsHasBeenSet; }
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline void SetServerLaunchConfigurations(const Aws::Vector<ServerLaunchConfiguration>& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations = value; }
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline void SetServerLaunchConfigurations(Aws::Vector<ServerLaunchConfiguration>&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations = std::move(value); }
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline ServerGroupLaunchConfiguration& WithServerLaunchConfigurations(const Aws::Vector<ServerLaunchConfiguration>& value) { SetServerLaunchConfigurations(value); return *this;}
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline ServerGroupLaunchConfiguration& WithServerLaunchConfigurations(Aws::Vector<ServerLaunchConfiguration>&& value) { SetServerLaunchConfigurations(std::move(value)); return *this;}
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline ServerGroupLaunchConfiguration& AddServerLaunchConfigurations(const ServerLaunchConfiguration& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations.push_back(value); return *this; }
/**
* <p>The launch configuration for servers in the server group.</p>
*/
inline ServerGroupLaunchConfiguration& AddServerLaunchConfigurations(ServerLaunchConfiguration&& value) { m_serverLaunchConfigurationsHasBeenSet = true; m_serverLaunchConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverGroupId;
bool m_serverGroupIdHasBeenSet;
int m_launchOrder;
bool m_launchOrderHasBeenSet;
Aws::Vector<ServerLaunchConfiguration> m_serverLaunchConfigurations;
bool m_serverLaunchConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,142 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerReplicationConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Replication configuration for a server group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerGroupReplicationConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerGroupReplicationConfiguration
{
public:
ServerGroupReplicationConfiguration();
ServerGroupReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerGroupReplicationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline ServerGroupReplicationConfiguration& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;}
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline ServerGroupReplicationConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
/**
* <p>The ID of the server group with which this replication configuration is
* associated.</p>
*/
inline ServerGroupReplicationConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline const Aws::Vector<ServerReplicationConfiguration>& GetServerReplicationConfigurations() const{ return m_serverReplicationConfigurations; }
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline bool ServerReplicationConfigurationsHasBeenSet() const { return m_serverReplicationConfigurationsHasBeenSet; }
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline void SetServerReplicationConfigurations(const Aws::Vector<ServerReplicationConfiguration>& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = value; }
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline void SetServerReplicationConfigurations(Aws::Vector<ServerReplicationConfiguration>&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations = std::move(value); }
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline ServerGroupReplicationConfiguration& WithServerReplicationConfigurations(const Aws::Vector<ServerReplicationConfiguration>& value) { SetServerReplicationConfigurations(value); return *this;}
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline ServerGroupReplicationConfiguration& WithServerReplicationConfigurations(Aws::Vector<ServerReplicationConfiguration>&& value) { SetServerReplicationConfigurations(std::move(value)); return *this;}
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(const ServerReplicationConfiguration& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(value); return *this; }
/**
* <p>The replication configuration for servers in the server group.</p>
*/
inline ServerGroupReplicationConfiguration& AddServerReplicationConfigurations(ServerReplicationConfiguration&& value) { m_serverReplicationConfigurationsHasBeenSet = true; m_serverReplicationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverGroupId;
bool m_serverGroupIdHasBeenSet;
Aws::Vector<ServerReplicationConfiguration> m_serverReplicationConfigurations;
bool m_serverReplicationConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // 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/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sms/model/ServerValidationConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Configuration for validating an instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerGroupValidationConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerGroupValidationConfiguration
{
public:
ServerGroupValidationConfiguration();
ServerGroupValidationConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerGroupValidationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server group.</p>
*/
inline const Aws::String& GetServerGroupId() const{ return m_serverGroupId; }
/**
* <p>The ID of the server group.</p>
*/
inline bool ServerGroupIdHasBeenSet() const { return m_serverGroupIdHasBeenSet; }
/**
* <p>The ID of the server group.</p>
*/
inline void SetServerGroupId(const Aws::String& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = value; }
/**
* <p>The ID of the server group.</p>
*/
inline void SetServerGroupId(Aws::String&& value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId = std::move(value); }
/**
* <p>The ID of the server group.</p>
*/
inline void SetServerGroupId(const char* value) { m_serverGroupIdHasBeenSet = true; m_serverGroupId.assign(value); }
/**
* <p>The ID of the server group.</p>
*/
inline ServerGroupValidationConfiguration& WithServerGroupId(const Aws::String& value) { SetServerGroupId(value); return *this;}
/**
* <p>The ID of the server group.</p>
*/
inline ServerGroupValidationConfiguration& WithServerGroupId(Aws::String&& value) { SetServerGroupId(std::move(value)); return *this;}
/**
* <p>The ID of the server group.</p>
*/
inline ServerGroupValidationConfiguration& WithServerGroupId(const char* value) { SetServerGroupId(value); return *this;}
/**
* <p>The validation configuration.</p>
*/
inline const Aws::Vector<ServerValidationConfiguration>& GetServerValidationConfigurations() const{ return m_serverValidationConfigurations; }
/**
* <p>The validation configuration.</p>
*/
inline bool ServerValidationConfigurationsHasBeenSet() const { return m_serverValidationConfigurationsHasBeenSet; }
/**
* <p>The validation configuration.</p>
*/
inline void SetServerValidationConfigurations(const Aws::Vector<ServerValidationConfiguration>& value) { m_serverValidationConfigurationsHasBeenSet = true; m_serverValidationConfigurations = value; }
/**
* <p>The validation configuration.</p>
*/
inline void SetServerValidationConfigurations(Aws::Vector<ServerValidationConfiguration>&& value) { m_serverValidationConfigurationsHasBeenSet = true; m_serverValidationConfigurations = std::move(value); }
/**
* <p>The validation configuration.</p>
*/
inline ServerGroupValidationConfiguration& WithServerValidationConfigurations(const Aws::Vector<ServerValidationConfiguration>& value) { SetServerValidationConfigurations(value); return *this;}
/**
* <p>The validation configuration.</p>
*/
inline ServerGroupValidationConfiguration& WithServerValidationConfigurations(Aws::Vector<ServerValidationConfiguration>&& value) { SetServerValidationConfigurations(std::move(value)); return *this;}
/**
* <p>The validation configuration.</p>
*/
inline ServerGroupValidationConfiguration& AddServerValidationConfigurations(const ServerValidationConfiguration& value) { m_serverValidationConfigurationsHasBeenSet = true; m_serverValidationConfigurations.push_back(value); return *this; }
/**
* <p>The validation configuration.</p>
*/
inline ServerGroupValidationConfiguration& AddServerValidationConfigurations(ServerValidationConfiguration&& value) { m_serverValidationConfigurationsHasBeenSet = true; m_serverValidationConfigurations.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverGroupId;
bool m_serverGroupIdHasBeenSet;
Aws::Vector<ServerValidationConfiguration> m_serverValidationConfigurations;
bool m_serverValidationConfigurationsHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,522 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/Server.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/UserData.h>
#include <aws/sms/model/S3Location.h>
#include <aws/sms/model/ScriptType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Launch configuration for a server.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerLaunchConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerLaunchConfiguration
{
public:
ServerLaunchConfiguration();
ServerLaunchConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerLaunchConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; }
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline ServerLaunchConfiguration& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>The ID of the server with which the launch configuration is associated.</p>
*/
inline ServerLaunchConfiguration& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline const Aws::String& GetLogicalId() const{ return m_logicalId; }
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline bool LogicalIdHasBeenSet() const { return m_logicalIdHasBeenSet; }
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline void SetLogicalId(const Aws::String& value) { m_logicalIdHasBeenSet = true; m_logicalId = value; }
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline void SetLogicalId(Aws::String&& value) { m_logicalIdHasBeenSet = true; m_logicalId = std::move(value); }
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline void SetLogicalId(const char* value) { m_logicalIdHasBeenSet = true; m_logicalId.assign(value); }
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline ServerLaunchConfiguration& WithLogicalId(const Aws::String& value) { SetLogicalId(value); return *this;}
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline ServerLaunchConfiguration& WithLogicalId(Aws::String&& value) { SetLogicalId(std::move(value)); return *this;}
/**
* <p>The logical ID of the server in the AWS CloudFormation template.</p>
*/
inline ServerLaunchConfiguration& WithLogicalId(const char* value) { SetLogicalId(value); return *this;}
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline const Aws::String& GetVpc() const{ return m_vpc; }
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline void SetVpc(const Aws::String& value) { m_vpcHasBeenSet = true; m_vpc = value; }
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline void SetVpc(Aws::String&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline void SetVpc(const char* value) { m_vpcHasBeenSet = true; m_vpc.assign(value); }
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline ServerLaunchConfiguration& WithVpc(const Aws::String& value) { SetVpc(value); return *this;}
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline ServerLaunchConfiguration& WithVpc(Aws::String&& value) { SetVpc(std::move(value)); return *this;}
/**
* <p>The ID of the VPC into which the server should be launched.</p>
*/
inline ServerLaunchConfiguration& WithVpc(const char* value) { SetVpc(value); return *this;}
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline const Aws::String& GetSubnet() const{ return m_subnet; }
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline bool SubnetHasBeenSet() const { return m_subnetHasBeenSet; }
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline void SetSubnet(const Aws::String& value) { m_subnetHasBeenSet = true; m_subnet = value; }
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline void SetSubnet(Aws::String&& value) { m_subnetHasBeenSet = true; m_subnet = std::move(value); }
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline void SetSubnet(const char* value) { m_subnetHasBeenSet = true; m_subnet.assign(value); }
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline ServerLaunchConfiguration& WithSubnet(const Aws::String& value) { SetSubnet(value); return *this;}
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline ServerLaunchConfiguration& WithSubnet(Aws::String&& value) { SetSubnet(std::move(value)); return *this;}
/**
* <p>The ID of the subnet the server should be launched into.</p>
*/
inline ServerLaunchConfiguration& WithSubnet(const char* value) { SetSubnet(value); return *this;}
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline const Aws::String& GetSecurityGroup() const{ return m_securityGroup; }
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline bool SecurityGroupHasBeenSet() const { return m_securityGroupHasBeenSet; }
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline void SetSecurityGroup(const Aws::String& value) { m_securityGroupHasBeenSet = true; m_securityGroup = value; }
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline void SetSecurityGroup(Aws::String&& value) { m_securityGroupHasBeenSet = true; m_securityGroup = std::move(value); }
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline void SetSecurityGroup(const char* value) { m_securityGroupHasBeenSet = true; m_securityGroup.assign(value); }
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline ServerLaunchConfiguration& WithSecurityGroup(const Aws::String& value) { SetSecurityGroup(value); return *this;}
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline ServerLaunchConfiguration& WithSecurityGroup(Aws::String&& value) { SetSecurityGroup(std::move(value)); return *this;}
/**
* <p>The ID of the security group that applies to the launched server.</p>
*/
inline ServerLaunchConfiguration& WithSecurityGroup(const char* value) { SetSecurityGroup(value); return *this;}
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline const Aws::String& GetEc2KeyName() const{ return m_ec2KeyName; }
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline bool Ec2KeyNameHasBeenSet() const { return m_ec2KeyNameHasBeenSet; }
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline void SetEc2KeyName(const Aws::String& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = value; }
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline void SetEc2KeyName(Aws::String&& value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName = std::move(value); }
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline void SetEc2KeyName(const char* value) { m_ec2KeyNameHasBeenSet = true; m_ec2KeyName.assign(value); }
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline ServerLaunchConfiguration& WithEc2KeyName(const Aws::String& value) { SetEc2KeyName(value); return *this;}
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline ServerLaunchConfiguration& WithEc2KeyName(Aws::String&& value) { SetEc2KeyName(std::move(value)); return *this;}
/**
* <p>The name of the Amazon EC2 SSH key to be used for connecting to the launched
* server.</p>
*/
inline ServerLaunchConfiguration& WithEc2KeyName(const char* value) { SetEc2KeyName(value); return *this;}
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline const UserData& GetUserData() const{ return m_userData; }
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline bool UserDataHasBeenSet() const { return m_userDataHasBeenSet; }
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline void SetUserData(const UserData& value) { m_userDataHasBeenSet = true; m_userData = value; }
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline void SetUserData(UserData&& value) { m_userDataHasBeenSet = true; m_userData = std::move(value); }
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline ServerLaunchConfiguration& WithUserData(const UserData& value) { SetUserData(value); return *this;}
/**
* <p>Location of the user-data script to be executed when launching the
* server.</p>
*/
inline ServerLaunchConfiguration& WithUserData(UserData&& value) { SetUserData(std::move(value)); return *this;}
/**
* <p>The instance type to use when launching the server.</p>
*/
inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
/**
* <p>The instance type to use when launching the server.</p>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>The instance type to use when launching the server.</p>
*/
inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>The instance type to use when launching the server.</p>
*/
inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>The instance type to use when launching the server.</p>
*/
inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
/**
* <p>The instance type to use when launching the server.</p>
*/
inline ServerLaunchConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
/**
* <p>The instance type to use when launching the server.</p>
*/
inline ServerLaunchConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
/**
* <p>The instance type to use when launching the server.</p>
*/
inline ServerLaunchConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
/**
* <p>Indicates whether a publicly accessible IP address is created when launching
* the server.</p>
*/
inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; }
/**
* <p>Indicates whether a publicly accessible IP address is created when launching
* the server.</p>
*/
inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; }
/**
* <p>Indicates whether a publicly accessible IP address is created when launching
* the server.</p>
*/
inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddressHasBeenSet = true; m_associatePublicIpAddress = value; }
/**
* <p>Indicates whether a publicly accessible IP address is created when launching
* the server.</p>
*/
inline ServerLaunchConfiguration& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;}
/**
* <p>The name of the IAM instance profile.</p>
*/
inline const Aws::String& GetIamInstanceProfileName() const{ return m_iamInstanceProfileName; }
/**
* <p>The name of the IAM instance profile.</p>
*/
inline bool IamInstanceProfileNameHasBeenSet() const { return m_iamInstanceProfileNameHasBeenSet; }
/**
* <p>The name of the IAM instance profile.</p>
*/
inline void SetIamInstanceProfileName(const Aws::String& value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName = value; }
/**
* <p>The name of the IAM instance profile.</p>
*/
inline void SetIamInstanceProfileName(Aws::String&& value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName = std::move(value); }
/**
* <p>The name of the IAM instance profile.</p>
*/
inline void SetIamInstanceProfileName(const char* value) { m_iamInstanceProfileNameHasBeenSet = true; m_iamInstanceProfileName.assign(value); }
/**
* <p>The name of the IAM instance profile.</p>
*/
inline ServerLaunchConfiguration& WithIamInstanceProfileName(const Aws::String& value) { SetIamInstanceProfileName(value); return *this;}
/**
* <p>The name of the IAM instance profile.</p>
*/
inline ServerLaunchConfiguration& WithIamInstanceProfileName(Aws::String&& value) { SetIamInstanceProfileName(std::move(value)); return *this;}
/**
* <p>The name of the IAM instance profile.</p>
*/
inline ServerLaunchConfiguration& WithIamInstanceProfileName(const char* value) { SetIamInstanceProfileName(value); return *this;}
inline const S3Location& GetConfigureScript() const{ return m_configureScript; }
inline bool ConfigureScriptHasBeenSet() const { return m_configureScriptHasBeenSet; }
inline void SetConfigureScript(const S3Location& value) { m_configureScriptHasBeenSet = true; m_configureScript = value; }
inline void SetConfigureScript(S3Location&& value) { m_configureScriptHasBeenSet = true; m_configureScript = std::move(value); }
inline ServerLaunchConfiguration& WithConfigureScript(const S3Location& value) { SetConfigureScript(value); return *this;}
inline ServerLaunchConfiguration& WithConfigureScript(S3Location&& value) { SetConfigureScript(std::move(value)); return *this;}
/**
* <p>The type of configuration script.</p>
*/
inline const ScriptType& GetConfigureScriptType() const{ return m_configureScriptType; }
/**
* <p>The type of configuration script.</p>
*/
inline bool ConfigureScriptTypeHasBeenSet() const { return m_configureScriptTypeHasBeenSet; }
/**
* <p>The type of configuration script.</p>
*/
inline void SetConfigureScriptType(const ScriptType& value) { m_configureScriptTypeHasBeenSet = true; m_configureScriptType = value; }
/**
* <p>The type of configuration script.</p>
*/
inline void SetConfigureScriptType(ScriptType&& value) { m_configureScriptTypeHasBeenSet = true; m_configureScriptType = std::move(value); }
/**
* <p>The type of configuration script.</p>
*/
inline ServerLaunchConfiguration& WithConfigureScriptType(const ScriptType& value) { SetConfigureScriptType(value); return *this;}
/**
* <p>The type of configuration script.</p>
*/
inline ServerLaunchConfiguration& WithConfigureScriptType(ScriptType&& value) { SetConfigureScriptType(std::move(value)); return *this;}
private:
Server m_server;
bool m_serverHasBeenSet;
Aws::String m_logicalId;
bool m_logicalIdHasBeenSet;
Aws::String m_vpc;
bool m_vpcHasBeenSet;
Aws::String m_subnet;
bool m_subnetHasBeenSet;
Aws::String m_securityGroup;
bool m_securityGroupHasBeenSet;
Aws::String m_ec2KeyName;
bool m_ec2KeyNameHasBeenSet;
UserData m_userData;
bool m_userDataHasBeenSet;
Aws::String m_instanceType;
bool m_instanceTypeHasBeenSet;
bool m_associatePublicIpAddress;
bool m_associatePublicIpAddressHasBeenSet;
Aws::String m_iamInstanceProfileName;
bool m_iamInstanceProfileNameHasBeenSet;
S3Location m_configureScript;
bool m_configureScriptHasBeenSet;
ScriptType m_configureScriptType;
bool m_configureScriptTypeHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,119 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/Server.h>
#include <aws/sms/model/ServerReplicationParameters.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Replication configuration of a server.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerReplicationConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerReplicationConfiguration
{
public:
ServerReplicationConfiguration();
ServerReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerReplicationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; }
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline ServerReplicationConfiguration& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>The ID of the server with which this replication configuration is
* associated.</p>
*/
inline ServerReplicationConfiguration& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
/**
* <p>The parameters for replicating the server.</p>
*/
inline const ServerReplicationParameters& GetServerReplicationParameters() const{ return m_serverReplicationParameters; }
/**
* <p>The parameters for replicating the server.</p>
*/
inline bool ServerReplicationParametersHasBeenSet() const { return m_serverReplicationParametersHasBeenSet; }
/**
* <p>The parameters for replicating the server.</p>
*/
inline void SetServerReplicationParameters(const ServerReplicationParameters& value) { m_serverReplicationParametersHasBeenSet = true; m_serverReplicationParameters = value; }
/**
* <p>The parameters for replicating the server.</p>
*/
inline void SetServerReplicationParameters(ServerReplicationParameters&& value) { m_serverReplicationParametersHasBeenSet = true; m_serverReplicationParameters = std::move(value); }
/**
* <p>The parameters for replicating the server.</p>
*/
inline ServerReplicationConfiguration& WithServerReplicationParameters(const ServerReplicationParameters& value) { SetServerReplicationParameters(value); return *this;}
/**
* <p>The parameters for replicating the server.</p>
*/
inline ServerReplicationConfiguration& WithServerReplicationParameters(ServerReplicationParameters&& value) { SetServerReplicationParameters(std::move(value)); return *this;}
private:
Server m_server;
bool m_serverHasBeenSet;
ServerReplicationParameters m_serverReplicationParameters;
bool m_serverReplicationParametersHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,299 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/sms/model/LicenseType.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 SMS
{
namespace Model
{
/**
* <p>The replication parameters for replicating a server.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerReplicationParameters">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerReplicationParameters
{
public:
ServerReplicationParameters();
ServerReplicationParameters(Aws::Utils::Json::JsonView jsonValue);
ServerReplicationParameters& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline const Aws::Utils::DateTime& GetSeedTime() const{ return m_seedTime; }
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline bool SeedTimeHasBeenSet() const { return m_seedTimeHasBeenSet; }
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline void SetSeedTime(const Aws::Utils::DateTime& value) { m_seedTimeHasBeenSet = true; m_seedTime = value; }
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline void SetSeedTime(Aws::Utils::DateTime&& value) { m_seedTimeHasBeenSet = true; m_seedTime = std::move(value); }
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline ServerReplicationParameters& WithSeedTime(const Aws::Utils::DateTime& value) { SetSeedTime(value); return *this;}
/**
* <p>The seed time for creating a replication job for the server.</p>
*/
inline ServerReplicationParameters& WithSeedTime(Aws::Utils::DateTime&& value) { SetSeedTime(std::move(value)); return *this;}
/**
* <p>The frequency of creating replication jobs for the server.</p>
*/
inline int GetFrequency() const{ return m_frequency; }
/**
* <p>The frequency of creating replication jobs for the server.</p>
*/
inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
/**
* <p>The frequency of creating replication jobs for the server.</p>
*/
inline void SetFrequency(int value) { m_frequencyHasBeenSet = true; m_frequency = value; }
/**
* <p>The frequency of creating replication jobs for the server.</p>
*/
inline ServerReplicationParameters& WithFrequency(int value) { SetFrequency(value); return *this;}
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool GetRunOnce() const{ return m_runOnce; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline bool RunOnceHasBeenSet() const { return m_runOnceHasBeenSet; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline void SetRunOnce(bool value) { m_runOnceHasBeenSet = true; m_runOnce = value; }
/**
* <p>Indicates whether to run the replication job one time.</p>
*/
inline ServerReplicationParameters& WithRunOnce(bool value) { SetRunOnce(value); return *this;}
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline ServerReplicationParameters& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
/**
* <p>The license type for creating a replication job for the server.</p>
*/
inline ServerReplicationParameters& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
/**
* <p>The number of recent AMIs to keep when creating a replication job for this
* server.</p>
*/
inline int GetNumberOfRecentAmisToKeep() const{ return m_numberOfRecentAmisToKeep; }
/**
* <p>The number of recent AMIs to keep when creating a replication job for this
* server.</p>
*/
inline bool NumberOfRecentAmisToKeepHasBeenSet() const { return m_numberOfRecentAmisToKeepHasBeenSet; }
/**
* <p>The number of recent AMIs to keep when creating a replication job for this
* server.</p>
*/
inline void SetNumberOfRecentAmisToKeep(int value) { m_numberOfRecentAmisToKeepHasBeenSet = true; m_numberOfRecentAmisToKeep = value; }
/**
* <p>The number of recent AMIs to keep when creating a replication job for this
* server.</p>
*/
inline ServerReplicationParameters& WithNumberOfRecentAmisToKeep(int value) { SetNumberOfRecentAmisToKeep(value); return *this;}
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline bool GetEncrypted() const{ return m_encrypted; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline bool EncryptedHasBeenSet() const { return m_encryptedHasBeenSet; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
/**
* <p>Indicates whether the replication job produces encrypted AMIs.</p>
*/
inline ServerReplicationParameters& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ServerReplicationParameters& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ServerReplicationParameters& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>The ID of the KMS key for replication jobs that produce encrypted AMIs. This
* value can be any of the following:</p> <ul> <li> <p>KMS key ID</p> </li> <li>
* <p>KMS key alias</p> </li> <li> <p>ARN referring to the KMS key ID</p> </li>
* <li> <p>ARN referring to the KMS key alias</p> </li> </ul> <p>If encrypted is
* enabled but a KMS key ID is not specified, the customer's default KMS key for
* Amazon EBS is used.</p>
*/
inline ServerReplicationParameters& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
private:
Aws::Utils::DateTime m_seedTime;
bool m_seedTimeHasBeenSet;
int m_frequency;
bool m_frequencyHasBeenSet;
bool m_runOnce;
bool m_runOnceHasBeenSet;
LicenseType m_licenseType;
bool m_licenseTypeHasBeenSet;
int m_numberOfRecentAmisToKeep;
bool m_numberOfRecentAmisToKeepHasBeenSet;
bool m_encrypted;
bool m_encryptedHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace SMS
{
namespace Model
{
enum class ServerType
{
NOT_SET,
VIRTUAL_MACHINE
};
namespace ServerTypeMapper
{
AWS_SMS_API ServerType GetServerTypeForName(const Aws::String& name);
AWS_SMS_API Aws::String GetNameForServerType(ServerType value);
} // namespace ServerTypeMapper
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,225 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/Server.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sms/model/ServerValidationStrategy.h>
#include <aws/sms/model/UserDataValidationParameters.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Configuration for validating an instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerValidationConfiguration">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerValidationConfiguration
{
public:
ServerValidationConfiguration();
ServerValidationConfiguration(Aws::Utils::Json::JsonView jsonValue);
ServerValidationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Server& GetServer() const{ return m_server; }
inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; }
inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
inline ServerValidationConfiguration& WithServer(const Server& value) { SetServer(value); return *this;}
inline ServerValidationConfiguration& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline const Aws::String& GetValidationId() const{ return m_validationId; }
/**
* <p>The ID of the validation.</p>
*/
inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); }
/**
* <p>The ID of the validation.</p>
*/
inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); }
/**
* <p>The ID of the validation.</p>
*/
inline ServerValidationConfiguration& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline ServerValidationConfiguration& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;}
/**
* <p>The ID of the validation.</p>
*/
inline ServerValidationConfiguration& WithValidationId(const char* value) { SetValidationId(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline ServerValidationConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline ServerValidationConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline ServerValidationConfiguration& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The validation strategy.</p>
*/
inline const ServerValidationStrategy& GetServerValidationStrategy() const{ return m_serverValidationStrategy; }
/**
* <p>The validation strategy.</p>
*/
inline bool ServerValidationStrategyHasBeenSet() const { return m_serverValidationStrategyHasBeenSet; }
/**
* <p>The validation strategy.</p>
*/
inline void SetServerValidationStrategy(const ServerValidationStrategy& value) { m_serverValidationStrategyHasBeenSet = true; m_serverValidationStrategy = value; }
/**
* <p>The validation strategy.</p>
*/
inline void SetServerValidationStrategy(ServerValidationStrategy&& value) { m_serverValidationStrategyHasBeenSet = true; m_serverValidationStrategy = std::move(value); }
/**
* <p>The validation strategy.</p>
*/
inline ServerValidationConfiguration& WithServerValidationStrategy(const ServerValidationStrategy& value) { SetServerValidationStrategy(value); return *this;}
/**
* <p>The validation strategy.</p>
*/
inline ServerValidationConfiguration& WithServerValidationStrategy(ServerValidationStrategy&& value) { SetServerValidationStrategy(std::move(value)); return *this;}
/**
* <p>The validation parameters.</p>
*/
inline const UserDataValidationParameters& GetUserDataValidationParameters() const{ return m_userDataValidationParameters; }
/**
* <p>The validation parameters.</p>
*/
inline bool UserDataValidationParametersHasBeenSet() const { return m_userDataValidationParametersHasBeenSet; }
/**
* <p>The validation parameters.</p>
*/
inline void SetUserDataValidationParameters(const UserDataValidationParameters& value) { m_userDataValidationParametersHasBeenSet = true; m_userDataValidationParameters = value; }
/**
* <p>The validation parameters.</p>
*/
inline void SetUserDataValidationParameters(UserDataValidationParameters&& value) { m_userDataValidationParametersHasBeenSet = true; m_userDataValidationParameters = std::move(value); }
/**
* <p>The validation parameters.</p>
*/
inline ServerValidationConfiguration& WithUserDataValidationParameters(const UserDataValidationParameters& value) { SetUserDataValidationParameters(value); return *this;}
/**
* <p>The validation parameters.</p>
*/
inline ServerValidationConfiguration& WithUserDataValidationParameters(UserDataValidationParameters&& value) { SetUserDataValidationParameters(std::move(value)); return *this;}
private:
Server m_server;
bool m_serverHasBeenSet;
Aws::String m_validationId;
bool m_validationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
ServerValidationStrategy m_serverValidationStrategy;
bool m_serverValidationStrategyHasBeenSet;
UserDataValidationParameters m_userDataValidationParameters;
bool m_userDataValidationParametersHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sms/SMS_EXPORTS.h>
#include <aws/sms/model/Server.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SMS
{
namespace Model
{
/**
* <p>Contains output from validating an instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ServerValidationOutput">AWS
* API Reference</a></p>
*/
class AWS_SMS_API ServerValidationOutput
{
public:
ServerValidationOutput();
ServerValidationOutput(Aws::Utils::Json::JsonView jsonValue);
ServerValidationOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Server& GetServer() const{ return m_server; }
inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; }
inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
inline ServerValidationOutput& WithServer(const Server& value) { SetServer(value); return *this;}
inline ServerValidationOutput& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
private:
Server m_server;
bool m_serverHasBeenSet;
};
} // namespace Model
} // namespace SMS
} // namespace Aws

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