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

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

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace AppConfigEndpoint
{
AWS_APPCONFIG_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace AppConfigEndpoint
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_APPCONFIG_API AppConfigErrorMarshaller : 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,76 @@
/**
* 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/appconfig/AppConfig_EXPORTS.h>
namespace Aws
{
namespace AppConfig
{
enum class AppConfigErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
BAD_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICT,
INTERNAL_SERVER,
PAYLOAD_TOO_LARGE,
SERVICE_QUOTA_EXCEEDED
};
class AWS_APPCONFIG_API AppConfigError : public Aws::Client::AWSError<AppConfigErrors>
{
public:
AppConfigError() {}
AppConfigError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<AppConfigErrors>(rhs) {}
AppConfigError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<AppConfigErrors>(rhs) {}
AppConfigError(const Aws::Client::AWSError<AppConfigErrors>& rhs) : Aws::Client::AWSError<AppConfigErrors>(rhs) {}
AppConfigError(Aws::Client::AWSError<AppConfigErrors>&& rhs) : Aws::Client::AWSError<AppConfigErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace AppConfigErrorMapper
{
AWS_APPCONFIG_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
#include <aws/core/AmazonStreamingWebServiceRequest.h>
namespace Aws
{
namespace AppConfig
{
class AWS_APPCONFIG_API AppConfigRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~AppConfigRequest () {}
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, "2019-10-09"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
typedef Aws::AmazonStreamingWebServiceRequest StreamingAppConfigRequest;
} // namespace AppConfig
} // 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_APPCONFIG_EXPORTS
#define AWS_APPCONFIG_API __declspec(dllexport)
#else
#define AWS_APPCONFIG_API __declspec(dllimport)
#endif /* AWS_APPCONFIG_EXPORTS */
#else
#define AWS_APPCONFIG_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_APPCONFIG_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,171 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API Application
{
public:
Application();
Application(Aws::Utils::Json::JsonView jsonValue);
Application& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The application ID.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The application ID.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The application ID.</p>
*/
inline Application& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline Application& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline Application& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The application name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The application name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The application name.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The application name.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The application name.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The application name.</p>
*/
inline Application& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The application name.</p>
*/
inline Application& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The application name.</p>
*/
inline Application& 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 Application& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline Application& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the application.</p>
*/
inline Application& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class BytesMeasure
{
NOT_SET,
KILOBYTES
};
namespace BytesMeasureMapper
{
AWS_APPCONFIG_API BytesMeasure GetBytesMeasureForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForBytesMeasure(BytesMeasure value);
} // namespace BytesMeasureMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,266 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/ValidatorType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
/**
* <p>A summary of a configuration profile.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ConfigurationProfileSummary">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API ConfigurationProfileSummary
{
public:
ConfigurationProfileSummary();
ConfigurationProfileSummary(Aws::Utils::Json::JsonView jsonValue);
ConfigurationProfileSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ConfigurationProfileSummary& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ConfigurationProfileSummary& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ConfigurationProfileSummary& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration profile.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URI location of the configuration.</p>
*/
inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline ConfigurationProfileSummary& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline ConfigurationProfileSummary& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline ConfigurationProfileSummary& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline const Aws::Vector<ValidatorType>& GetValidatorTypes() const{ return m_validatorTypes; }
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline bool ValidatorTypesHasBeenSet() const { return m_validatorTypesHasBeenSet; }
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline void SetValidatorTypes(const Aws::Vector<ValidatorType>& value) { m_validatorTypesHasBeenSet = true; m_validatorTypes = value; }
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline void SetValidatorTypes(Aws::Vector<ValidatorType>&& value) { m_validatorTypesHasBeenSet = true; m_validatorTypes = std::move(value); }
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithValidatorTypes(const Aws::Vector<ValidatorType>& value) { SetValidatorTypes(value); return *this;}
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline ConfigurationProfileSummary& WithValidatorTypes(Aws::Vector<ValidatorType>&& value) { SetValidatorTypes(std::move(value)); return *this;}
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline ConfigurationProfileSummary& AddValidatorTypes(const ValidatorType& value) { m_validatorTypesHasBeenSet = true; m_validatorTypes.push_back(value); return *this; }
/**
* <p>The types of validators in the configuration profile.</p>
*/
inline ConfigurationProfileSummary& AddValidatorTypes(ValidatorType&& value) { m_validatorTypesHasBeenSet = true; m_validatorTypes.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_locationUri;
bool m_locationUriHasBeenSet;
Aws::Vector<ValidatorType> m_validatorTypes;
bool m_validatorTypesHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,223 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API CreateApplicationRequest : public AppConfigRequest
{
public:
CreateApplicationRequest();
// 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 "CreateApplication"; }
Aws::String SerializePayload() const override;
/**
* <p>A name for the application.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A name for the application.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A name for the application.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A name for the application.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A name for the application.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A name for the application.</p>
*/
inline CreateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A name for the application.</p>
*/
inline CreateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A name for the application.</p>
*/
inline CreateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the application.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the application.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the application.</p>
*/
inline CreateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the application.</p>
*/
inline CreateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the application.</p>
*/
inline CreateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the application. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API CreateApplicationResult
{
public:
CreateApplicationResult();
CreateApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateApplicationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The application ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The application ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateApplicationResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateApplicationResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateApplicationResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The application name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The application name.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The application name.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The application name.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The application name.</p>
*/
inline CreateApplicationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The application name.</p>
*/
inline CreateApplicationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The application name.</p>
*/
inline CreateApplicationResult& 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 void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the application.</p>
*/
inline CreateApplicationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline CreateApplicationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the application.</p>
*/
inline CreateApplicationResult& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,473 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/appconfig/model/Validator.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API CreateConfigurationProfileRequest : public AppConfigRequest
{
public:
CreateConfigurationProfileRequest();
// 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 "CreateConfigurationProfile"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>A name for the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A name for the configuration profile.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A name for the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A name for the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A name for the configuration profile.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A name for the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A name for the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A name for the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration profile.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline CreateConfigurationProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; }
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); }
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); }
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline CreateConfigurationProfileRequest& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline CreateConfigurationProfileRequest& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>A URI to locate the configuration. You can specify a Systems Manager (SSM)
* document, an SSM Parameter Store parameter, or an Amazon S3 object. For an SSM
* document, specify either the document name in the format
* <code>ssm-document://&lt;Document_name&gt;</code> or the Amazon Resource Name
* (ARN). For a parameter, specify either the parameter name in the format
* <code>ssm-parameter://&lt;Parameter_name&gt;</code> or the ARN. For an Amazon S3
* object, specify the URI in the following format:
* <code>s3://&lt;bucket&gt;/&lt;objectKey&gt; </code>. Here is an example:
* s3://my-bucket/my-app/us-east-1/my-config.json</p>
*/
inline CreateConfigurationProfileRequest& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline bool RetrievalRoleArnHasBeenSet() const { return m_retrievalRoleArnHasBeenSet; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = value; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = std::move(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn.assign(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileRequest& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline const Aws::Vector<Validator>& GetValidators() const{ return m_validators; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(const Aws::Vector<Validator>& value) { m_validatorsHasBeenSet = true; m_validators = value; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(Aws::Vector<Validator>&& value) { m_validatorsHasBeenSet = true; m_validators = std::move(value); }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileRequest& WithValidators(const Aws::Vector<Validator>& value) { SetValidators(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileRequest& WithValidators(Aws::Vector<Validator>&& value) { SetValidators(std::move(value)); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileRequest& AddValidators(const Validator& value) { m_validatorsHasBeenSet = true; m_validators.push_back(value); return *this; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileRequest& AddValidators(Validator&& value) { m_validatorsHasBeenSet = true; m_validators.push_back(std::move(value)); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the configuration profile. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateConfigurationProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_locationUri;
bool m_locationUriHasBeenSet;
Aws::String m_retrievalRoleArn;
bool m_retrievalRoleArnHasBeenSet;
Aws::Vector<Validator> m_validators;
bool m_validatorsHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,314 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Validator.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API CreateConfigurationProfileResult
{
public:
CreateConfigurationProfileResult();
CreateConfigurationProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateConfigurationProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateConfigurationProfileResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline CreateConfigurationProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateConfigurationProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateConfigurationProfileResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline CreateConfigurationProfileResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline CreateConfigurationProfileResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline CreateConfigurationProfileResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The configuration profile description.</p>
*/
inline CreateConfigurationProfileResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline CreateConfigurationProfileResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline CreateConfigurationProfileResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline CreateConfigurationProfileResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline CreateConfigurationProfileResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline CreateConfigurationProfileResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArn = value; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArn = std::move(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArn.assign(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileResult& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileResult& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline CreateConfigurationProfileResult& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline const Aws::Vector<Validator>& GetValidators() const{ return m_validators; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(const Aws::Vector<Validator>& value) { m_validators = value; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(Aws::Vector<Validator>&& value) { m_validators = std::move(value); }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileResult& WithValidators(const Aws::Vector<Validator>& value) { SetValidators(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileResult& WithValidators(Aws::Vector<Validator>&& value) { SetValidators(std::move(value)); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileResult& AddValidators(const Validator& value) { m_validators.push_back(value); return *this; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline CreateConfigurationProfileResult& AddValidators(Validator&& value) { m_validators.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
Aws::String m_locationUri;
Aws::String m_retrievalRoleArn;
Aws::Vector<Validator> m_validators;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,475 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/ReplicateTo.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API CreateDeploymentStrategyRequest : public AppConfigRequest
{
public:
CreateDeploymentStrategyRequest();
// 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 "CreateDeploymentStrategy"; }
Aws::String SerializePayload() const override;
/**
* <p>A name for the deployment strategy.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A name for the deployment strategy.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A name for the deployment strategy.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A name for the deployment strategy.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A name for the deployment strategy.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A name for the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A name for the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A name for the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline CreateDeploymentStrategyRequest& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline CreateDeploymentStrategyRequest& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline CreateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline CreateDeploymentStrategyRequest& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by dividing the total number of targets by
* the value specified for <code>Step percentage</code>. For example, a linear
* deployment that uses a <code>Step percentage</code> of 10 deploys the
* configuration to 10 percent of the hosts. After those deployments are complete,
* the system deploys the configuration to the next 10 percent. This continues
* until 100% of the targets have successfully received the configuration.</p> <p>
* <b>Exponential</b>: For this type, AppConfig processes the deployment
* exponentially using the following formula: <code>G*(2^N)</code>. In this
* formula, <code>G</code> is the growth factor specified by the user and
* <code>N</code> is the number of steps until the configuration is deployed to all
* targets. For example, if you specify a growth factor of 2, then the system rolls
* out the configuration as follows:</p> <p> <code>2*(2^0)</code> </p> <p>
* <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code> </p> <p>Expressed
* numerically, the deployment rolls out as follows: 2% of the targets, 4% of the
* targets, 8% of the targets, and continues until the configuration has been
* deployed to all targets.</p>
*/
inline CreateDeploymentStrategyRequest& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(const ReplicateTo& value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(ReplicateTo&& value) { m_replicateToHasBeenSet = true; m_replicateTo = std::move(value); }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline CreateDeploymentStrategyRequest& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline CreateDeploymentStrategyRequest& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the deployment strategy. Tags help organize and
* categorize your AppConfig resources. Each tag consists of a key and an optional
* value, both of which you define.</p>
*/
inline CreateDeploymentStrategyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_deploymentDurationInMinutes;
bool m_deploymentDurationInMinutesHasBeenSet;
int m_finalBakeTimeInMinutes;
bool m_finalBakeTimeInMinutesHasBeenSet;
double m_growthFactor;
bool m_growthFactorHasBeenSet;
GrowthType m_growthType;
bool m_growthTypeHasBeenSet;
ReplicateTo m_replicateTo;
bool m_replicateToHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,271 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/ReplicateTo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API CreateDeploymentStrategyResult
{
public:
CreateDeploymentStrategyResult();
CreateDeploymentStrategyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDeploymentStrategyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline CreateDeploymentStrategyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline CreateDeploymentStrategyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline CreateDeploymentStrategyResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline CreateDeploymentStrategyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline CreateDeploymentStrategyResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline CreateDeploymentStrategyResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline CreateDeploymentStrategyResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline CreateDeploymentStrategyResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline CreateDeploymentStrategyResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(const ReplicateTo& value) { m_replicateTo = value; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(ReplicateTo&& value) { m_replicateTo = std::move(value); }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline CreateDeploymentStrategyResult& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline CreateDeploymentStrategyResult& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
ReplicateTo m_replicateTo;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,313 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API CreateEnvironmentRequest : public AppConfigRequest
{
public:
CreateEnvironmentRequest();
// 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 "CreateEnvironment"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>A name for the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>A name for the environment.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A name for the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A name for the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A name for the environment.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>A name for the environment.</p>
*/
inline CreateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>A name for the environment.</p>
*/
inline CreateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>A name for the environment.</p>
*/
inline CreateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the environment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the environment.</p>
*/
inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline CreateEnvironmentRequest& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline CreateEnvironmentRequest& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline CreateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline CreateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the environment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline CreateEnvironmentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Monitor> m_monitors;
bool m_monitorsHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,270 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/EnvironmentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API CreateEnvironmentResult
{
public:
CreateEnvironmentResult();
CreateEnvironmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateEnvironmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline CreateEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline CreateEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline CreateEnvironmentResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the environment.</p>
*/
inline CreateEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline CreateEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline CreateEnvironmentResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the environment.</p>
*/
inline CreateEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline CreateEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline CreateEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline const EnvironmentState& GetState() const{ return m_state; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(const EnvironmentState& value) { m_state = value; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(EnvironmentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline CreateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline CreateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline CreateEnvironmentResult& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline CreateEnvironmentResult& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline CreateEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline CreateEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
EnvironmentState m_state;
Aws::Vector<Monitor> m_monitors;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API CreateHostedConfigurationVersionRequest : public StreamingAppConfigRequest
{
public:
CreateHostedConfigurationVersionRequest();
// 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 "CreateHostedConfigurationVersion"; }
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>An optional locking token used to prevent race conditions from overwriting
* configuration updates when creating a new version. To ensure your data is not
* overwritten when creating multiple hosted configuration versions in rapid
* succession, specify the version of the latest hosted configuration version.</p>
*/
inline int GetLatestVersionNumber() const{ return m_latestVersionNumber; }
/**
* <p>An optional locking token used to prevent race conditions from overwriting
* configuration updates when creating a new version. To ensure your data is not
* overwritten when creating multiple hosted configuration versions in rapid
* succession, specify the version of the latest hosted configuration version.</p>
*/
inline bool LatestVersionNumberHasBeenSet() const { return m_latestVersionNumberHasBeenSet; }
/**
* <p>An optional locking token used to prevent race conditions from overwriting
* configuration updates when creating a new version. To ensure your data is not
* overwritten when creating multiple hosted configuration versions in rapid
* succession, specify the version of the latest hosted configuration version.</p>
*/
inline void SetLatestVersionNumber(int value) { m_latestVersionNumberHasBeenSet = true; m_latestVersionNumber = value; }
/**
* <p>An optional locking token used to prevent race conditions from overwriting
* configuration updates when creating a new version. To ensure your data is not
* overwritten when creating multiple hosted configuration versions in rapid
* succession, specify the version of the latest hosted configuration version.</p>
*/
inline CreateHostedConfigurationVersionRequest& WithLatestVersionNumber(int value) { SetLatestVersionNumber(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_latestVersionNumber;
bool m_latestVersionNumberHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,241 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/stream/ResponseStream.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API CreateHostedConfigurationVersionResult
{
public:
CreateHostedConfigurationVersionResult();
//We have to define these because Microsoft doesn't auto generate them
CreateHostedConfigurationVersionResult(CreateHostedConfigurationVersionResult&&);
CreateHostedConfigurationVersionResult& operator=(CreateHostedConfigurationVersionResult&&);
//we delete these because Microsoft doesn't handle move generation correctly
//and we therefore don't trust them to get it right here either.
CreateHostedConfigurationVersionResult(const CreateHostedConfigurationVersionResult&) = delete;
CreateHostedConfigurationVersionResult& operator=(const CreateHostedConfigurationVersionResult&) = delete;
CreateHostedConfigurationVersionResult(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
CreateHostedConfigurationVersionResult& operator=(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline CreateHostedConfigurationVersionResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration version.</p>
*/
inline int GetVersionNumber() const{ return m_versionNumber; }
/**
* <p>The configuration version.</p>
*/
inline void SetVersionNumber(int value) { m_versionNumber = value; }
/**
* <p>The configuration version.</p>
*/
inline CreateHostedConfigurationVersionResult& WithVersionNumber(int value) { SetVersionNumber(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline CreateHostedConfigurationVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline Aws::IOStream& GetContent() { return m_content.GetUnderlyingStream(); }
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentType = value; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const char* value) { m_contentType.assign(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline CreateHostedConfigurationVersionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline CreateHostedConfigurationVersionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline CreateHostedConfigurationVersionResult& WithContentType(const char* value) { SetContentType(value); return *this;}
private:
Aws::String m_applicationId;
Aws::String m_configurationProfileId;
int m_versionNumber;
Aws::String m_description;
Aws::Utils::Stream::ResponseStream m_content;
Aws::String m_contentType;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API DeleteApplicationRequest : public AppConfigRequest
{
public:
DeleteApplicationRequest();
// 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 "DeleteApplication"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the application to delete.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application to delete.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The ID of the application to delete.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The ID of the application to delete.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The ID of the application to delete.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The ID of the application to delete.</p>
*/
inline DeleteApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application to delete.</p>
*/
inline DeleteApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application to delete.</p>
*/
inline DeleteApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API DeleteConfigurationProfileRequest : public AppConfigRequest
{
public:
DeleteConfigurationProfileRequest();
// 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 "DeleteConfigurationProfile"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID that includes the configuration profile you want to
* delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile you want to delete.</p>
*/
inline DeleteConfigurationProfileRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API DeleteDeploymentStrategyRequest : public AppConfigRequest
{
public:
DeleteDeploymentStrategyRequest();
// 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 "DeleteDeploymentStrategy"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; }
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); }
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); }
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline DeleteDeploymentStrategyRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline DeleteDeploymentStrategyRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The ID of the deployment strategy you want to delete.</p>
*/
inline DeleteDeploymentStrategyRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
private:
Aws::String m_deploymentStrategyId;
bool m_deploymentStrategyIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API DeleteEnvironmentRequest : public AppConfigRequest
{
public:
DeleteEnvironmentRequest();
// 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 "DeleteEnvironment"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID that includes the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment you want to delete.</p>
*/
inline DeleteEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API DeleteHostedConfigurationVersionRequest : public AppConfigRequest
{
public:
DeleteHostedConfigurationVersionRequest();
// 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 "DeleteHostedConfigurationVersion"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The versions number to delete.</p>
*/
inline int GetVersionNumber() const{ return m_versionNumber; }
/**
* <p>The versions number to delete.</p>
*/
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
/**
* <p>The versions number to delete.</p>
*/
inline void SetVersionNumber(int value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
/**
* <p>The versions number to delete.</p>
*/
inline DeleteHostedConfigurationVersionRequest& WithVersionNumber(int value) { SetVersionNumber(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
int m_versionNumber;
bool m_versionNumberHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,235 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/model/DeploymentEventType.h>
#include <aws/appconfig/model/TriggeredBy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
/**
* <p>An object that describes a deployment event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeploymentEvent">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API DeploymentEvent
{
public:
DeploymentEvent();
DeploymentEvent(Aws::Utils::Json::JsonView jsonValue);
DeploymentEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline const DeploymentEventType& GetEventType() const{ return m_eventType; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline void SetEventType(const DeploymentEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline void SetEventType(DeploymentEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline DeploymentEvent& WithEventType(const DeploymentEventType& value) { SetEventType(value); return *this;}
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline DeploymentEvent& WithEventType(DeploymentEventType&& value) { SetEventType(std::move(value)); return *this;}
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline const TriggeredBy& GetTriggeredBy() const{ return m_triggeredBy; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline void SetTriggeredBy(const TriggeredBy& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = value; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline void SetTriggeredBy(TriggeredBy&& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = std::move(value); }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline DeploymentEvent& WithTriggeredBy(const TriggeredBy& value) { SetTriggeredBy(value); return *this;}
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline DeploymentEvent& WithTriggeredBy(TriggeredBy&& value) { SetTriggeredBy(std::move(value)); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The date and time the event occurred.</p>
*/
inline const Aws::Utils::DateTime& GetOccurredAt() const{ return m_occurredAt; }
/**
* <p>The date and time the event occurred.</p>
*/
inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
/**
* <p>The date and time the event occurred.</p>
*/
inline void SetOccurredAt(const Aws::Utils::DateTime& value) { m_occurredAtHasBeenSet = true; m_occurredAt = value; }
/**
* <p>The date and time the event occurred.</p>
*/
inline void SetOccurredAt(Aws::Utils::DateTime&& value) { m_occurredAtHasBeenSet = true; m_occurredAt = std::move(value); }
/**
* <p>The date and time the event occurred.</p>
*/
inline DeploymentEvent& WithOccurredAt(const Aws::Utils::DateTime& value) { SetOccurredAt(value); return *this;}
/**
* <p>The date and time the event occurred.</p>
*/
inline DeploymentEvent& WithOccurredAt(Aws::Utils::DateTime&& value) { SetOccurredAt(std::move(value)); return *this;}
private:
DeploymentEventType m_eventType;
bool m_eventTypeHasBeenSet;
TriggeredBy m_triggeredBy;
bool m_triggeredByHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Utils::DateTime m_occurredAt;
bool m_occurredAtHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class DeploymentEventType
{
NOT_SET,
PERCENTAGE_UPDATED,
ROLLBACK_STARTED,
ROLLBACK_COMPLETED,
BAKE_TIME_STARTED,
DEPLOYMENT_STARTED,
DEPLOYMENT_COMPLETED
};
namespace DeploymentEventTypeMapper
{
AWS_APPCONFIG_API DeploymentEventType GetDeploymentEventTypeForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForDeploymentEventType(DeploymentEventType value);
} // namespace DeploymentEventTypeMapper
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class DeploymentState
{
NOT_SET,
BAKING,
VALIDATING,
DEPLOYING,
COMPLETE,
ROLLING_BACK,
ROLLED_BACK
};
namespace DeploymentStateMapper
{
AWS_APPCONFIG_API DeploymentState GetDeploymentStateForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForDeploymentState(DeploymentState value);
} // namespace DeploymentStateMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,321 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/ReplicateTo.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API DeploymentStrategy
{
public:
DeploymentStrategy();
DeploymentStrategy(Aws::Utils::Json::JsonView jsonValue);
DeploymentStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The deployment strategy ID.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline DeploymentStrategy& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline DeploymentStrategy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline DeploymentStrategy& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline DeploymentStrategy& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline DeploymentStrategy& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline DeploymentStrategy& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline DeploymentStrategy& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline DeploymentStrategy& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline DeploymentStrategy& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(const ReplicateTo& value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(ReplicateTo&& value) { m_replicateToHasBeenSet = true; m_replicateTo = std::move(value); }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline DeploymentStrategy& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline DeploymentStrategy& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_deploymentDurationInMinutes;
bool m_deploymentDurationInMinutesHasBeenSet;
GrowthType m_growthType;
bool m_growthTypeHasBeenSet;
double m_growthFactor;
bool m_growthFactorHasBeenSet;
int m_finalBakeTimeInMinutes;
bool m_finalBakeTimeInMinutesHasBeenSet;
ReplicateTo m_replicateTo;
bool m_replicateToHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,399 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/DeploymentState.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
/**
* <p>Information about the deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeploymentSummary">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API DeploymentSummary
{
public:
DeploymentSummary();
DeploymentSummary(Aws::Utils::Json::JsonView jsonValue);
DeploymentSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline DeploymentSummary& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
/**
* <p>The name of the configuration.</p>
*/
inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const Aws::String& value) { m_configurationNameHasBeenSet = true; m_configurationName = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(Aws::String&& value) { m_configurationNameHasBeenSet = true; m_configurationName = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const char* value) { m_configurationNameHasBeenSet = true; m_configurationName.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
/**
* <p>The version of the configuration.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The version of the configuration.</p>
*/
inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
/**
* <p>The version of the configuration.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = value; }
/**
* <p>The version of the configuration.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::move(value); }
/**
* <p>The version of the configuration.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersionHasBeenSet = true; m_configurationVersion.assign(value); }
/**
* <p>The version of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The version of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The version of the configuration.</p>
*/
inline DeploymentSummary& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline DeploymentSummary& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline DeploymentSummary& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time.</p>
*/
inline DeploymentSummary& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline DeploymentSummary& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline DeploymentSummary& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline const DeploymentState& GetState() const{ return m_state; }
/**
* <p>The state of the deployment.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(const DeploymentState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(DeploymentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the deployment.</p>
*/
inline DeploymentSummary& WithState(const DeploymentState& value) { SetState(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline DeploymentSummary& WithState(DeploymentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline double GetPercentageComplete() const{ return m_percentageComplete; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline void SetPercentageComplete(double value) { m_percentageCompleteHasBeenSet = true; m_percentageComplete = value; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline DeploymentSummary& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
/**
* <p>Time the deployment started.</p>
*/
inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
/**
* <p>Time the deployment started.</p>
*/
inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
/**
* <p>Time the deployment started.</p>
*/
inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
/**
* <p>Time the deployment started.</p>
*/
inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
/**
* <p>Time the deployment started.</p>
*/
inline DeploymentSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
/**
* <p>Time the deployment started.</p>
*/
inline DeploymentSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
/**
* <p>Time the deployment completed.</p>
*/
inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
/**
* <p>Time the deployment completed.</p>
*/
inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; }
/**
* <p>Time the deployment completed.</p>
*/
inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; }
/**
* <p>Time the deployment completed.</p>
*/
inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); }
/**
* <p>Time the deployment completed.</p>
*/
inline DeploymentSummary& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
/**
* <p>Time the deployment completed.</p>
*/
inline DeploymentSummary& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
private:
int m_deploymentNumber;
bool m_deploymentNumberHasBeenSet;
Aws::String m_configurationName;
bool m_configurationNameHasBeenSet;
Aws::String m_configurationVersion;
bool m_configurationVersionHasBeenSet;
int m_deploymentDurationInMinutes;
bool m_deploymentDurationInMinutesHasBeenSet;
GrowthType m_growthType;
bool m_growthTypeHasBeenSet;
double m_growthFactor;
bool m_growthFactorHasBeenSet;
int m_finalBakeTimeInMinutes;
bool m_finalBakeTimeInMinutesHasBeenSet;
DeploymentState m_state;
bool m_stateHasBeenSet;
double m_percentageComplete;
bool m_percentageCompleteHasBeenSet;
Aws::Utils::DateTime m_startedAt;
bool m_startedAtHasBeenSet;
Aws::Utils::DateTime m_completedAt;
bool m_completedAtHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,308 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/EnvironmentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API Environment
{
public:
Environment();
Environment(Aws::Utils::Json::JsonView jsonValue);
Environment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline Environment& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline Environment& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline Environment& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The environment ID.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline Environment& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline Environment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline Environment& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the environment.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the environment.</p>
*/
inline Environment& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline Environment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline Environment& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the environment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the environment.</p>
*/
inline Environment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline Environment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline Environment& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline const EnvironmentState& GetState() const{ return m_state; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(const EnvironmentState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(EnvironmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline Environment& WithState(const EnvironmentState& value) { SetState(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline Environment& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline Environment& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline Environment& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline Environment& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline Environment& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
EnvironmentState m_state;
bool m_stateHasBeenSet;
Aws::Vector<Monitor> m_monitors;
bool m_monitorsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class EnvironmentState
{
NOT_SET,
READY_FOR_DEPLOYMENT,
DEPLOYING,
ROLLING_BACK,
ROLLED_BACK
};
namespace EnvironmentStateMapper
{
AWS_APPCONFIG_API EnvironmentState GetEnvironmentStateForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForEnvironmentState(EnvironmentState value);
} // namespace EnvironmentStateMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetApplicationRequest : public AppConfigRequest
{
public:
GetApplicationRequest();
// 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 "GetApplication"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the application you want to get.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application you want to get.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The ID of the application you want to get.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The ID of the application you want to get.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The ID of the application you want to get.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The ID of the application you want to get.</p>
*/
inline GetApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application you want to get.</p>
*/
inline GetApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application you want to get.</p>
*/
inline GetApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetApplicationResult
{
public:
GetApplicationResult();
GetApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetApplicationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The application ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The application ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The application ID.</p>
*/
inline GetApplicationResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetApplicationResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetApplicationResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The application name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The application name.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The application name.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The application name.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The application name.</p>
*/
inline GetApplicationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The application name.</p>
*/
inline GetApplicationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The application name.</p>
*/
inline GetApplicationResult& 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 void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the application.</p>
*/
inline GetApplicationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline GetApplicationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the application.</p>
*/
inline GetApplicationResult& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetConfigurationProfileRequest : public AppConfigRequest
{
public:
GetConfigurationProfileRequest();
// 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 "GetConfigurationProfile"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline GetConfigurationProfileRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline GetConfigurationProfileRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that includes the configuration profile you want to
* get.</p>
*/
inline GetConfigurationProfileRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline GetConfigurationProfileRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline GetConfigurationProfileRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile you want to get.</p>
*/
inline GetConfigurationProfileRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,314 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Validator.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetConfigurationProfileResult
{
public:
GetConfigurationProfileResult();
GetConfigurationProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetConfigurationProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline GetConfigurationProfileResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetConfigurationProfileResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetConfigurationProfileResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline GetConfigurationProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetConfigurationProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetConfigurationProfileResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline GetConfigurationProfileResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline GetConfigurationProfileResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline GetConfigurationProfileResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The configuration profile description.</p>
*/
inline GetConfigurationProfileResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline GetConfigurationProfileResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline GetConfigurationProfileResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline GetConfigurationProfileResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline GetConfigurationProfileResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline GetConfigurationProfileResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArn = value; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArn = std::move(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArn.assign(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline GetConfigurationProfileResult& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline GetConfigurationProfileResult& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline GetConfigurationProfileResult& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline const Aws::Vector<Validator>& GetValidators() const{ return m_validators; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(const Aws::Vector<Validator>& value) { m_validators = value; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(Aws::Vector<Validator>&& value) { m_validators = std::move(value); }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline GetConfigurationProfileResult& WithValidators(const Aws::Vector<Validator>& value) { SetValidators(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline GetConfigurationProfileResult& WithValidators(Aws::Vector<Validator>&& value) { SetValidators(std::move(value)); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline GetConfigurationProfileResult& AddValidators(const Validator& value) { m_validators.push_back(value); return *this; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline GetConfigurationProfileResult& AddValidators(Validator&& value) { m_validators.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
Aws::String m_locationUri;
Aws::String m_retrievalRoleArn;
Aws::Vector<Validator> m_validators;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,417 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetConfigurationRequest : public AppConfigRequest
{
public:
GetConfigurationRequest();
// 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 "GetConfiguration"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline const Aws::String& GetApplication() const{ return m_application; }
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline bool ApplicationHasBeenSet() const { return m_applicationHasBeenSet; }
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline void SetApplication(const Aws::String& value) { m_applicationHasBeenSet = true; m_application = value; }
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline void SetApplication(Aws::String&& value) { m_applicationHasBeenSet = true; m_application = std::move(value); }
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline void SetApplication(const char* value) { m_applicationHasBeenSet = true; m_application.assign(value); }
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline GetConfigurationRequest& WithApplication(const Aws::String& value) { SetApplication(value); return *this;}
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline GetConfigurationRequest& WithApplication(Aws::String&& value) { SetApplication(std::move(value)); return *this;}
/**
* <p>The application to get. Specify either the application name or the
* application ID.</p>
*/
inline GetConfigurationRequest& WithApplication(const char* value) { SetApplication(value); return *this;}
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline const Aws::String& GetEnvironment() const{ return m_environment; }
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline void SetEnvironment(const Aws::String& value) { m_environmentHasBeenSet = true; m_environment = value; }
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline void SetEnvironment(Aws::String&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline void SetEnvironment(const char* value) { m_environmentHasBeenSet = true; m_environment.assign(value); }
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline GetConfigurationRequest& WithEnvironment(const Aws::String& value) { SetEnvironment(value); return *this;}
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline GetConfigurationRequest& WithEnvironment(Aws::String&& value) { SetEnvironment(std::move(value)); return *this;}
/**
* <p>The environment to get. Specify either the environment name or the
* environment ID.</p>
*/
inline GetConfigurationRequest& WithEnvironment(const char* value) { SetEnvironment(value); return *this;}
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline const Aws::String& GetConfiguration() const{ return m_configuration; }
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; }
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); }
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline GetConfigurationRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;}
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline GetConfigurationRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;}
/**
* <p>The configuration to get. Specify either the configuration name or the
* configuration ID.</p>
*/
inline GetConfigurationRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;}
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline const Aws::String& GetClientId() const{ return m_clientId; }
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline GetConfigurationRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline GetConfigurationRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
/**
* <p>A unique ID to identify the client for the configuration. This ID enables
* AppConfig to deploy the configuration in intervals, as defined in the deployment
* strategy.</p>
*/
inline GetConfigurationRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline const Aws::String& GetClientConfigurationVersion() const{ return m_clientConfigurationVersion; }
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline bool ClientConfigurationVersionHasBeenSet() const { return m_clientConfigurationVersionHasBeenSet; }
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline void SetClientConfigurationVersion(const Aws::String& value) { m_clientConfigurationVersionHasBeenSet = true; m_clientConfigurationVersion = value; }
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline void SetClientConfigurationVersion(Aws::String&& value) { m_clientConfigurationVersionHasBeenSet = true; m_clientConfigurationVersion = std::move(value); }
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline void SetClientConfigurationVersion(const char* value) { m_clientConfigurationVersionHasBeenSet = true; m_clientConfigurationVersion.assign(value); }
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline GetConfigurationRequest& WithClientConfigurationVersion(const Aws::String& value) { SetClientConfigurationVersion(value); return *this;}
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline GetConfigurationRequest& WithClientConfigurationVersion(Aws::String&& value) { SetClientConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version returned in the most recent
* <code>GetConfiguration</code> response.</p> <p>AWS AppConfig uses
* the value of the <code>ClientConfigurationVersion</code> parameter to identify
* the configuration version on your clients. If you dont send
* <code>ClientConfigurationVersion</code> with each call to
* <code>GetConfiguration</code>, your clients receive the current configuration.
* You are charged each time your clients receive a configuration.</p> <p>To avoid
* excess charges, we recommend that you include the
* <code>ClientConfigurationVersion</code> value with every call to
* <code>GetConfiguration</code>. This value must be saved on your client.
* Subsequent calls to <code>GetConfiguration</code> must pass this value by using
* the <code>ClientConfigurationVersion</code> parameter. </p> <p>For
* more information about working with configurations, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving
* the Configuration</a> in the <i>AWS AppConfig User Guide</i>.</p>
*/
inline GetConfigurationRequest& WithClientConfigurationVersion(const char* value) { SetClientConfigurationVersion(value); return *this;}
private:
Aws::String m_application;
bool m_applicationHasBeenSet;
Aws::String m_environment;
bool m_environmentHasBeenSet;
Aws::String m_configuration;
bool m_configurationHasBeenSet;
Aws::String m_clientId;
bool m_clientIdHasBeenSet;
Aws::String m_clientConfigurationVersion;
bool m_clientConfigurationVersionHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/stream/ResponseStream.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetConfigurationResult
{
public:
GetConfigurationResult();
//We have to define these because Microsoft doesn't auto generate them
GetConfigurationResult(GetConfigurationResult&&);
GetConfigurationResult& operator=(GetConfigurationResult&&);
//we delete these because Microsoft doesn't handle move generation correctly
//and we therefore don't trust them to get it right here either.
GetConfigurationResult(const GetConfigurationResult&) = delete;
GetConfigurationResult& operator=(const GetConfigurationResult&) = delete;
GetConfigurationResult(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
GetConfigurationResult& operator=(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline Aws::IOStream& GetContent() { return m_content.GetUnderlyingStream(); }
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
/**
* <p>The configuration version.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The configuration version.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersion = value; }
/**
* <p>The configuration version.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersion = std::move(value); }
/**
* <p>The configuration version.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); }
/**
* <p>The configuration version.</p>
*/
inline GetConfigurationResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The configuration version.</p>
*/
inline GetConfigurationResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version.</p>
*/
inline GetConfigurationResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentType = value; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const char* value) { m_contentType.assign(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetConfigurationResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetConfigurationResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetConfigurationResult& WithContentType(const char* value) { SetContentType(value); return *this;}
private:
Aws::Utils::Stream::ResponseStream m_content;
Aws::String m_configurationVersion;
Aws::String m_contentType;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetDeploymentRequest : public AppConfigRequest
{
public:
GetDeploymentRequest();
// 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 "GetDeployment"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment that includes the deployment you want to get. </p>
*/
inline GetDeploymentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline GetDeploymentRequest& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
int m_deploymentNumber;
bool m_deploymentNumberHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,601 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/DeploymentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/appconfig/model/DeploymentEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetDeploymentResult
{
public:
GetDeploymentResult();
GetDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the application that was deployed.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline GetDeploymentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline GetDeploymentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline GetDeploymentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentId = value; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentId = std::move(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentId.assign(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline GetDeploymentResult& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline GetDeploymentResult& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline GetDeploymentResult& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyId = value; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyId = std::move(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyId.assign(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline GetDeploymentResult& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline GetDeploymentResult& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline GetDeploymentResult& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline GetDeploymentResult& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const Aws::String& value) { m_configurationName = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(Aws::String&& value) { m_configurationName = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const char* value) { m_configurationName.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline const Aws::String& GetConfigurationLocationUri() const{ return m_configurationLocationUri; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const Aws::String& value) { m_configurationLocationUri = value; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(Aws::String&& value) { m_configurationLocationUri = std::move(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const char* value) { m_configurationLocationUri.assign(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationLocationUri(const Aws::String& value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationLocationUri(Aws::String&& value) { SetConfigurationLocationUri(std::move(value)); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline GetDeploymentResult& WithConfigurationLocationUri(const char* value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersion = value; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersion = std::move(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline GetDeploymentResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment.</p>
*/
inline GetDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline GetDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline GetDeploymentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline GetDeploymentResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline GetDeploymentResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline GetDeploymentResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline GetDeploymentResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline GetDeploymentResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline const DeploymentState& GetState() const{ return m_state; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(const DeploymentState& value) { m_state = value; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(DeploymentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the deployment.</p>
*/
inline GetDeploymentResult& WithState(const DeploymentState& value) { SetState(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline GetDeploymentResult& WithState(DeploymentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline const Aws::Vector<DeploymentEvent>& GetEventLog() const{ return m_eventLog; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(const Aws::Vector<DeploymentEvent>& value) { m_eventLog = value; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(Aws::Vector<DeploymentEvent>&& value) { m_eventLog = std::move(value); }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline GetDeploymentResult& WithEventLog(const Aws::Vector<DeploymentEvent>& value) { SetEventLog(value); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline GetDeploymentResult& WithEventLog(Aws::Vector<DeploymentEvent>&& value) { SetEventLog(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline GetDeploymentResult& AddEventLog(const DeploymentEvent& value) { m_eventLog.push_back(value); return *this; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline GetDeploymentResult& AddEventLog(DeploymentEvent&& value) { m_eventLog.push_back(std::move(value)); return *this; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline double GetPercentageComplete() const{ return m_percentageComplete; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline void SetPercentageComplete(double value) { m_percentageComplete = value; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline GetDeploymentResult& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
/**
* <p>The time the deployment started.</p>
*/
inline GetDeploymentResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline GetDeploymentResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); }
/**
* <p>The time the deployment completed. </p>
*/
inline GetDeploymentResult& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline GetDeploymentResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
private:
Aws::String m_applicationId;
Aws::String m_environmentId;
Aws::String m_deploymentStrategyId;
Aws::String m_configurationProfileId;
int m_deploymentNumber;
Aws::String m_configurationName;
Aws::String m_configurationLocationUri;
Aws::String m_configurationVersion;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
DeploymentState m_state;
Aws::Vector<DeploymentEvent> m_eventLog;
double m_percentageComplete;
Aws::Utils::DateTime m_startedAt;
Aws::Utils::DateTime m_completedAt;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetDeploymentStrategyRequest : public AppConfigRequest
{
public:
GetDeploymentStrategyRequest();
// 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 "GetDeploymentStrategy"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; }
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); }
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); }
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline GetDeploymentStrategyRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline GetDeploymentStrategyRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The ID of the deployment strategy to get.</p>
*/
inline GetDeploymentStrategyRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
private:
Aws::String m_deploymentStrategyId;
bool m_deploymentStrategyIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,271 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/ReplicateTo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetDeploymentStrategyResult
{
public:
GetDeploymentStrategyResult();
GetDeploymentStrategyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeploymentStrategyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline GetDeploymentStrategyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline GetDeploymentStrategyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline GetDeploymentStrategyResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline GetDeploymentStrategyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline GetDeploymentStrategyResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline GetDeploymentStrategyResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline GetDeploymentStrategyResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline GetDeploymentStrategyResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline GetDeploymentStrategyResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(const ReplicateTo& value) { m_replicateTo = value; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(ReplicateTo&& value) { m_replicateTo = std::move(value); }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline GetDeploymentStrategyResult& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline GetDeploymentStrategyResult& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
ReplicateTo m_replicateTo;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetEnvironmentRequest : public AppConfigRequest
{
public:
GetEnvironmentRequest();
// 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 "GetEnvironment"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline GetEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline GetEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that includes the environment you want to get.</p>
*/
inline GetEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline GetEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline GetEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment you wnat to get.</p>
*/
inline GetEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,270 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/EnvironmentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetEnvironmentResult
{
public:
GetEnvironmentResult();
GetEnvironmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetEnvironmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline GetEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline GetEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline GetEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline GetEnvironmentResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the environment.</p>
*/
inline GetEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline GetEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline GetEnvironmentResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the environment.</p>
*/
inline GetEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline GetEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline GetEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline const EnvironmentState& GetState() const{ return m_state; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(const EnvironmentState& value) { m_state = value; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(EnvironmentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline GetEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline GetEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline GetEnvironmentResult& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline GetEnvironmentResult& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline GetEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline GetEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
EnvironmentState m_state;
Aws::Vector<Monitor> m_monitors;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API GetHostedConfigurationVersionRequest : public AppConfigRequest
{
public:
GetHostedConfigurationVersionRequest();
// 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 "GetHostedConfigurationVersion"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The version.</p>
*/
inline int GetVersionNumber() const{ return m_versionNumber; }
/**
* <p>The version.</p>
*/
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
/**
* <p>The version.</p>
*/
inline void SetVersionNumber(int value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
/**
* <p>The version.</p>
*/
inline GetHostedConfigurationVersionRequest& WithVersionNumber(int value) { SetVersionNumber(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
int m_versionNumber;
bool m_versionNumberHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,241 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/stream/ResponseStream.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API GetHostedConfigurationVersionResult
{
public:
GetHostedConfigurationVersionResult();
//We have to define these because Microsoft doesn't auto generate them
GetHostedConfigurationVersionResult(GetHostedConfigurationVersionResult&&);
GetHostedConfigurationVersionResult& operator=(GetHostedConfigurationVersionResult&&);
//we delete these because Microsoft doesn't handle move generation correctly
//and we therefore don't trust them to get it right here either.
GetHostedConfigurationVersionResult(const GetHostedConfigurationVersionResult&) = delete;
GetHostedConfigurationVersionResult& operator=(const GetHostedConfigurationVersionResult&) = delete;
GetHostedConfigurationVersionResult(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
GetHostedConfigurationVersionResult& operator=(Aws::AmazonWebServiceResult<Aws::Utils::Stream::ResponseStream>&& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline GetHostedConfigurationVersionResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration version.</p>
*/
inline int GetVersionNumber() const{ return m_versionNumber; }
/**
* <p>The configuration version.</p>
*/
inline void SetVersionNumber(int value) { m_versionNumber = value; }
/**
* <p>The configuration version.</p>
*/
inline GetHostedConfigurationVersionResult& WithVersionNumber(int value) { SetVersionNumber(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>A description of the configuration.</p>
*/
inline GetHostedConfigurationVersionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline GetHostedConfigurationVersionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline GetHostedConfigurationVersionResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline Aws::IOStream& GetContent() { return m_content.GetUnderlyingStream(); }
/**
* <p>The content of the configuration or the configuration data.</p>
*/
inline void ReplaceBody(Aws::IOStream* body) { m_content = Aws::Utils::Stream::ResponseStream(body); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentType = value; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const char* value) { m_contentType.assign(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetHostedConfigurationVersionResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetHostedConfigurationVersionResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline GetHostedConfigurationVersionResult& WithContentType(const char* value) { SetContentType(value); return *this;}
private:
Aws::String m_applicationId;
Aws::String m_configurationProfileId;
int m_versionNumber;
Aws::String m_description;
Aws::Utils::Stream::ResponseStream m_content;
Aws::String m_contentType;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class GrowthType
{
NOT_SET,
LINEAR,
EXPONENTIAL
};
namespace GrowthTypeMapper
{
AWS_APPCONFIG_API GrowthType GetGrowthTypeForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForGrowthType(GrowthType value);
} // namespace GrowthTypeMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,260 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
/**
* <p>Information about the configuration.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/HostedConfigurationVersionSummary">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API HostedConfigurationVersionSummary
{
public:
HostedConfigurationVersionSummary();
HostedConfigurationVersionSummary(Aws::Utils::Json::JsonView jsonValue);
HostedConfigurationVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline HostedConfigurationVersionSummary& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline HostedConfigurationVersionSummary& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline HostedConfigurationVersionSummary& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline HostedConfigurationVersionSummary& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline HostedConfigurationVersionSummary& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline HostedConfigurationVersionSummary& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration version.</p>
*/
inline int GetVersionNumber() const{ return m_versionNumber; }
/**
* <p>The configuration version.</p>
*/
inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; }
/**
* <p>The configuration version.</p>
*/
inline void SetVersionNumber(int value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; }
/**
* <p>The configuration version.</p>
*/
inline HostedConfigurationVersionSummary& WithVersionNumber(int value) { SetVersionNumber(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the configuration.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the configuration.</p>
*/
inline HostedConfigurationVersionSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline HostedConfigurationVersionSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration.</p>
*/
inline HostedConfigurationVersionSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline HostedConfigurationVersionSummary& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline HostedConfigurationVersionSummary& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>A standard MIME type describing the format of the configuration content. For
* more information, see <a
* href="https://docs.aws.amazon.com/https:/www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17">Content-Type</a>.</p>
*/
inline HostedConfigurationVersionSummary& WithContentType(const char* value) { SetContentType(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
int m_versionNumber;
bool m_versionNumberHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_contentType;
bool m_contentTypeHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListApplicationsRequest : public AppConfigRequest
{
public:
ListApplicationsRequest();
// 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 "ListApplications"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListApplicationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListApplicationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListApplicationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListApplicationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/Application.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListApplicationsResult
{
public:
ListApplicationsResult();
ListApplicationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListApplicationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<Application>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<Application>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<Application>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListApplicationsResult& WithItems(const Aws::Vector<Application>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListApplicationsResult& WithItems(Aws::Vector<Application>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListApplicationsResult& AddItems(const Application& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListApplicationsResult& AddItems(Application&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListApplicationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListApplicationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListApplicationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Application> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListConfigurationProfilesRequest : public AppConfigRequest
{
public:
ListConfigurationProfilesRequest();
// 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 "ListConfigurationProfiles"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ListConfigurationProfilesRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListConfigurationProfilesRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListConfigurationProfilesRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListConfigurationProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListConfigurationProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListConfigurationProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListConfigurationProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/ConfigurationProfileSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListConfigurationProfilesResult
{
public:
ListConfigurationProfilesResult();
ListConfigurationProfilesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListConfigurationProfilesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<ConfigurationProfileSummary>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<ConfigurationProfileSummary>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<ConfigurationProfileSummary>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListConfigurationProfilesResult& WithItems(const Aws::Vector<ConfigurationProfileSummary>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListConfigurationProfilesResult& WithItems(Aws::Vector<ConfigurationProfileSummary>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListConfigurationProfilesResult& AddItems(const ConfigurationProfileSummary& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListConfigurationProfilesResult& AddItems(ConfigurationProfileSummary&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListConfigurationProfilesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListConfigurationProfilesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListConfigurationProfilesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ConfigurationProfileSummary> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListDeploymentStrategiesRequest : public AppConfigRequest
{
public:
ListDeploymentStrategiesRequest();
// 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 "ListDeploymentStrategies"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListDeploymentStrategiesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentStrategiesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentStrategiesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentStrategiesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/DeploymentStrategy.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListDeploymentStrategiesResult
{
public:
ListDeploymentStrategiesResult();
ListDeploymentStrategiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDeploymentStrategiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<DeploymentStrategy>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<DeploymentStrategy>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<DeploymentStrategy>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentStrategiesResult& WithItems(const Aws::Vector<DeploymentStrategy>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentStrategiesResult& WithItems(Aws::Vector<DeploymentStrategy>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentStrategiesResult& AddItems(const DeploymentStrategy& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentStrategiesResult& AddItems(DeploymentStrategy&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentStrategiesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentStrategiesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentStrategiesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DeploymentStrategy> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListDeploymentsRequest : public AppConfigRequest
{
public:
ListDeploymentsRequest();
// 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 "ListDeployments"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ListDeploymentsRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListDeploymentsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListDeploymentsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The environment ID.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline ListDeploymentsRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline ListDeploymentsRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline ListDeploymentsRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListDeploymentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/DeploymentSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListDeploymentsResult
{
public:
ListDeploymentsResult();
ListDeploymentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDeploymentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<DeploymentSummary>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<DeploymentSummary>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<DeploymentSummary>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentsResult& WithItems(const Aws::Vector<DeploymentSummary>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentsResult& WithItems(Aws::Vector<DeploymentSummary>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentsResult& AddItems(const DeploymentSummary& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListDeploymentsResult& AddItems(DeploymentSummary&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListDeploymentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DeploymentSummary> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListEnvironmentsRequest : public AppConfigRequest
{
public:
ListEnvironmentsRequest();
// 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 "ListEnvironments"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ListEnvironmentsRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListEnvironmentsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListEnvironmentsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.</p>
*/
inline ListEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/Environment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListEnvironmentsResult
{
public:
ListEnvironmentsResult();
ListEnvironmentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListEnvironmentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<Environment>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<Environment>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<Environment>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListEnvironmentsResult& WithItems(const Aws::Vector<Environment>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListEnvironmentsResult& WithItems(Aws::Vector<Environment>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListEnvironmentsResult& AddItems(const Environment& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListEnvironmentsResult& AddItems(Environment&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListEnvironmentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListEnvironmentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListEnvironmentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Environment> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,217 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListHostedConfigurationVersionsRequest : public AppConfigRequest
{
public:
ListHostedConfigurationVersionsRequest();
// 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 "ListHostedConfigurationVersions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline ListHostedConfigurationVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline ListHostedConfigurationVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline ListHostedConfigurationVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to start the list. Use this token to get the next set of results.
* </p>
*/
inline ListHostedConfigurationVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/HostedConfigurationVersionSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListHostedConfigurationVersionsResult
{
public:
ListHostedConfigurationVersionsResult();
ListHostedConfigurationVersionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListHostedConfigurationVersionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The elements from this collection.</p>
*/
inline const Aws::Vector<HostedConfigurationVersionSummary>& GetItems() const{ return m_items; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(const Aws::Vector<HostedConfigurationVersionSummary>& value) { m_items = value; }
/**
* <p>The elements from this collection.</p>
*/
inline void SetItems(Aws::Vector<HostedConfigurationVersionSummary>&& value) { m_items = std::move(value); }
/**
* <p>The elements from this collection.</p>
*/
inline ListHostedConfigurationVersionsResult& WithItems(const Aws::Vector<HostedConfigurationVersionSummary>& value) { SetItems(value); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListHostedConfigurationVersionsResult& WithItems(Aws::Vector<HostedConfigurationVersionSummary>&& value) { SetItems(std::move(value)); return *this;}
/**
* <p>The elements from this collection.</p>
*/
inline ListHostedConfigurationVersionsResult& AddItems(const HostedConfigurationVersionSummary& value) { m_items.push_back(value); return *this; }
/**
* <p>The elements from this collection.</p>
*/
inline ListHostedConfigurationVersionsResult& AddItems(HostedConfigurationVersionSummary&& value) { m_items.push_back(std::move(value)); return *this; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListHostedConfigurationVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListHostedConfigurationVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of items to return. Use this token to get the next
* set of results.</p>
*/
inline ListHostedConfigurationVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<HostedConfigurationVersionSummary> m_items;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ListTagsForResourceRequest : public AppConfigRequest
{
public:
ListTagsForResourceRequest();
// 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 "ListTagsForResource"; }
Aws::String SerializePayload() const override;
/**
* <p>The resource ARN.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The resource ARN.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The resource ARN.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The resource ARN.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The resource ARN.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The resource ARN.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The resource ARN.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The resource ARN.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.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 AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to AppConfig resources. Tags help organize and categorize
* your AppConfig resources. Each tag consists of a key and an optional value, both
* of which you define.</p>
*/
inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment
* process.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/Monitor">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API Monitor
{
public:
Monitor();
Monitor(Aws::Utils::Json::JsonView jsonValue);
Monitor& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline const Aws::String& GetAlarmArn() const{ return m_alarmArn; }
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline bool AlarmArnHasBeenSet() const { return m_alarmArnHasBeenSet; }
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline void SetAlarmArn(const Aws::String& value) { m_alarmArnHasBeenSet = true; m_alarmArn = value; }
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline void SetAlarmArn(Aws::String&& value) { m_alarmArnHasBeenSet = true; m_alarmArn = std::move(value); }
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline void SetAlarmArn(const char* value) { m_alarmArnHasBeenSet = true; m_alarmArn.assign(value); }
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline Monitor& WithAlarmArn(const Aws::String& value) { SetAlarmArn(value); return *this;}
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline Monitor& WithAlarmArn(Aws::String&& value) { SetAlarmArn(std::move(value)); return *this;}
/**
* <p>ARN of the Amazon CloudWatch alarm.</p>
*/
inline Monitor& WithAlarmArn(const char* value) { SetAlarmArn(value); return *this;}
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline const Aws::String& GetAlarmRoleArn() const{ return m_alarmRoleArn; }
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline bool AlarmRoleArnHasBeenSet() const { return m_alarmRoleArnHasBeenSet; }
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline void SetAlarmRoleArn(const Aws::String& value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn = value; }
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline void SetAlarmRoleArn(Aws::String&& value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn = std::move(value); }
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline void SetAlarmRoleArn(const char* value) { m_alarmRoleArnHasBeenSet = true; m_alarmRoleArn.assign(value); }
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline Monitor& WithAlarmRoleArn(const Aws::String& value) { SetAlarmRoleArn(value); return *this;}
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline Monitor& WithAlarmRoleArn(Aws::String&& value) { SetAlarmRoleArn(std::move(value)); return *this;}
/**
* <p>ARN of an IAM role for AppConfig to monitor <code>AlarmArn</code>.</p>
*/
inline Monitor& WithAlarmRoleArn(const char* value) { SetAlarmRoleArn(value); return *this;}
private:
Aws::String m_alarmArn;
bool m_alarmArnHasBeenSet;
Aws::String m_alarmRoleArn;
bool m_alarmRoleArnHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/BytesMeasure.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
/**
* <p>The configuration size is too large.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/PayloadTooLargeException">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API PayloadTooLargeException
{
public:
PayloadTooLargeException();
PayloadTooLargeException(Aws::Utils::Json::JsonView jsonValue);
PayloadTooLargeException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline PayloadTooLargeException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline PayloadTooLargeException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline PayloadTooLargeException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const BytesMeasure& GetMeasure() const{ return m_measure; }
inline bool MeasureHasBeenSet() const { return m_measureHasBeenSet; }
inline void SetMeasure(const BytesMeasure& value) { m_measureHasBeenSet = true; m_measure = value; }
inline void SetMeasure(BytesMeasure&& value) { m_measureHasBeenSet = true; m_measure = std::move(value); }
inline PayloadTooLargeException& WithMeasure(const BytesMeasure& value) { SetMeasure(value); return *this;}
inline PayloadTooLargeException& WithMeasure(BytesMeasure&& value) { SetMeasure(std::move(value)); return *this;}
inline double GetLimit() const{ return m_limit; }
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
inline void SetLimit(double value) { m_limitHasBeenSet = true; m_limit = value; }
inline PayloadTooLargeException& WithLimit(double value) { SetLimit(value); return *this;}
inline double GetSize() const{ return m_size; }
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
inline void SetSize(double value) { m_sizeHasBeenSet = true; m_size = value; }
inline PayloadTooLargeException& WithSize(double value) { SetSize(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
BytesMeasure m_measure;
bool m_measureHasBeenSet;
double m_limit;
bool m_limitHasBeenSet;
double m_size;
bool m_sizeHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class ReplicateTo
{
NOT_SET,
NONE,
SSM_DOCUMENT
};
namespace ReplicateToMapper
{
AWS_APPCONFIG_API ReplicateTo GetReplicateToForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForReplicateTo(ReplicateTo value);
} // namespace ReplicateToMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
/**
* <p>The requested resource could not be found.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ResourceNotFoundException">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
inline ResourceNotFoundException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
inline ResourceNotFoundException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
inline ResourceNotFoundException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceName;
bool m_resourceNameHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,399 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API StartDeploymentRequest : public AppConfigRequest
{
public:
StartDeploymentRequest();
// 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 "StartDeployment"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline StartDeploymentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline StartDeploymentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline StartDeploymentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The environment ID.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline StartDeploymentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline StartDeploymentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline StartDeploymentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The deployment strategy ID.</p>
*/
inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline StartDeploymentRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline StartDeploymentRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline StartDeploymentRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline StartDeploymentRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline StartDeploymentRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline StartDeploymentRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration version to deploy.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The configuration version to deploy.</p>
*/
inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
/**
* <p>The configuration version to deploy.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = value; }
/**
* <p>The configuration version to deploy.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::move(value); }
/**
* <p>The configuration version to deploy.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersionHasBeenSet = true; m_configurationVersion.assign(value); }
/**
* <p>The configuration version to deploy.</p>
*/
inline StartDeploymentRequest& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The configuration version to deploy.</p>
*/
inline StartDeploymentRequest& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version to deploy.</p>
*/
inline StartDeploymentRequest& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>A description of the deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the deployment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the deployment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the deployment.</p>
*/
inline StartDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the deployment.</p>
*/
inline StartDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the deployment.</p>
*/
inline StartDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Metadata to assign to the deployment. Tags help organize and categorize your
* AppConfig resources. Each tag consists of a key and an optional value, both of
* which you define.</p>
*/
inline StartDeploymentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
Aws::String m_deploymentStrategyId;
bool m_deploymentStrategyIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
Aws::String m_configurationVersion;
bool m_configurationVersionHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,601 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/DeploymentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/appconfig/model/DeploymentEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API StartDeploymentResult
{
public:
StartDeploymentResult();
StartDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the application that was deployed.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StartDeploymentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StartDeploymentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StartDeploymentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentId = value; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentId = std::move(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentId.assign(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StartDeploymentResult& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StartDeploymentResult& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StartDeploymentResult& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyId = value; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyId = std::move(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyId.assign(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StartDeploymentResult& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StartDeploymentResult& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StartDeploymentResult& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline StartDeploymentResult& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const Aws::String& value) { m_configurationName = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(Aws::String&& value) { m_configurationName = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const char* value) { m_configurationName.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline const Aws::String& GetConfigurationLocationUri() const{ return m_configurationLocationUri; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const Aws::String& value) { m_configurationLocationUri = value; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(Aws::String&& value) { m_configurationLocationUri = std::move(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const char* value) { m_configurationLocationUri.assign(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationLocationUri(const Aws::String& value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationLocationUri(Aws::String&& value) { SetConfigurationLocationUri(std::move(value)); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StartDeploymentResult& WithConfigurationLocationUri(const char* value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersion = value; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersion = std::move(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline StartDeploymentResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment.</p>
*/
inline StartDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline StartDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline StartDeploymentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline StartDeploymentResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline StartDeploymentResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline StartDeploymentResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline StartDeploymentResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline StartDeploymentResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline const DeploymentState& GetState() const{ return m_state; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(const DeploymentState& value) { m_state = value; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(DeploymentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the deployment.</p>
*/
inline StartDeploymentResult& WithState(const DeploymentState& value) { SetState(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline StartDeploymentResult& WithState(DeploymentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline const Aws::Vector<DeploymentEvent>& GetEventLog() const{ return m_eventLog; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(const Aws::Vector<DeploymentEvent>& value) { m_eventLog = value; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(Aws::Vector<DeploymentEvent>&& value) { m_eventLog = std::move(value); }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StartDeploymentResult& WithEventLog(const Aws::Vector<DeploymentEvent>& value) { SetEventLog(value); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StartDeploymentResult& WithEventLog(Aws::Vector<DeploymentEvent>&& value) { SetEventLog(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StartDeploymentResult& AddEventLog(const DeploymentEvent& value) { m_eventLog.push_back(value); return *this; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StartDeploymentResult& AddEventLog(DeploymentEvent&& value) { m_eventLog.push_back(std::move(value)); return *this; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline double GetPercentageComplete() const{ return m_percentageComplete; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline void SetPercentageComplete(double value) { m_percentageComplete = value; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline StartDeploymentResult& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
/**
* <p>The time the deployment started.</p>
*/
inline StartDeploymentResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline StartDeploymentResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); }
/**
* <p>The time the deployment completed. </p>
*/
inline StartDeploymentResult& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline StartDeploymentResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
private:
Aws::String m_applicationId;
Aws::String m_environmentId;
Aws::String m_deploymentStrategyId;
Aws::String m_configurationProfileId;
int m_deploymentNumber;
Aws::String m_configurationName;
Aws::String m_configurationLocationUri;
Aws::String m_configurationVersion;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
DeploymentState m_state;
Aws::Vector<DeploymentEvent> m_eventLog;
double m_percentageComplete;
Aws::Utils::DateTime m_startedAt;
Aws::Utils::DateTime m_completedAt;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API StopDeploymentRequest : public AppConfigRequest
{
public:
StopDeploymentRequest();
// 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 "StopDeployment"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline StopDeploymentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline StopDeploymentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline StopDeploymentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The environment ID.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline StopDeploymentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline StopDeploymentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline StopDeploymentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline bool DeploymentNumberHasBeenSet() const { return m_deploymentNumberHasBeenSet; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumberHasBeenSet = true; m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline StopDeploymentRequest& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
int m_deploymentNumber;
bool m_deploymentNumberHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,601 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/DeploymentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/appconfig/model/DeploymentEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API StopDeploymentResult
{
public:
StopDeploymentResult();
StopDeploymentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StopDeploymentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the application that was deployed.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StopDeploymentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StopDeploymentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The ID of the application that was deployed.</p>
*/
inline StopDeploymentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentId = value; }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentId = std::move(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentId.assign(value); }
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StopDeploymentResult& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StopDeploymentResult& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The ID of the environment that was deployed.</p>
*/
inline StopDeploymentResult& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyId = value; }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyId = std::move(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyId.assign(value); }
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StopDeploymentResult& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StopDeploymentResult& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The ID of the deployment strategy that was deployed.</p>
*/
inline StopDeploymentResult& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The sequence number of the deployment.</p>
*/
inline int GetDeploymentNumber() const{ return m_deploymentNumber; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline void SetDeploymentNumber(int value) { m_deploymentNumber = value; }
/**
* <p>The sequence number of the deployment.</p>
*/
inline StopDeploymentResult& WithDeploymentNumber(int value) { SetDeploymentNumber(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline const Aws::String& GetConfigurationName() const{ return m_configurationName; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const Aws::String& value) { m_configurationName = value; }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(Aws::String&& value) { m_configurationName = std::move(value); }
/**
* <p>The name of the configuration.</p>
*/
inline void SetConfigurationName(const char* value) { m_configurationName.assign(value); }
/**
* <p>The name of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationName(const Aws::String& value) { SetConfigurationName(value); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationName(Aws::String&& value) { SetConfigurationName(std::move(value)); return *this;}
/**
* <p>The name of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationName(const char* value) { SetConfigurationName(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline const Aws::String& GetConfigurationLocationUri() const{ return m_configurationLocationUri; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const Aws::String& value) { m_configurationLocationUri = value; }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(Aws::String&& value) { m_configurationLocationUri = std::move(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline void SetConfigurationLocationUri(const char* value) { m_configurationLocationUri.assign(value); }
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationLocationUri(const Aws::String& value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationLocationUri(Aws::String&& value) { SetConfigurationLocationUri(std::move(value)); return *this;}
/**
* <p>Information about the source location of the configuration.</p>
*/
inline StopDeploymentResult& WithConfigurationLocationUri(const char* value) { SetConfigurationLocationUri(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersion = value; }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersion = std::move(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersion.assign(value); }
/**
* <p>The configuration version that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The configuration version that was deployed.</p>
*/
inline StopDeploymentResult& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment.</p>
*/
inline StopDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline StopDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment.</p>
*/
inline StopDeploymentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline StopDeploymentResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline StopDeploymentResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline StopDeploymentResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline StopDeploymentResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline StopDeploymentResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline const DeploymentState& GetState() const{ return m_state; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(const DeploymentState& value) { m_state = value; }
/**
* <p>The state of the deployment.</p>
*/
inline void SetState(DeploymentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the deployment.</p>
*/
inline StopDeploymentResult& WithState(const DeploymentState& value) { SetState(value); return *this;}
/**
* <p>The state of the deployment.</p>
*/
inline StopDeploymentResult& WithState(DeploymentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline const Aws::Vector<DeploymentEvent>& GetEventLog() const{ return m_eventLog; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(const Aws::Vector<DeploymentEvent>& value) { m_eventLog = value; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline void SetEventLog(Aws::Vector<DeploymentEvent>&& value) { m_eventLog = std::move(value); }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StopDeploymentResult& WithEventLog(const Aws::Vector<DeploymentEvent>& value) { SetEventLog(value); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StopDeploymentResult& WithEventLog(Aws::Vector<DeploymentEvent>&& value) { SetEventLog(std::move(value)); return *this;}
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StopDeploymentResult& AddEventLog(const DeploymentEvent& value) { m_eventLog.push_back(value); return *this; }
/**
* <p>A list containing all events related to a deployment. The most recent events
* are displayed first.</p>
*/
inline StopDeploymentResult& AddEventLog(DeploymentEvent&& value) { m_eventLog.push_back(std::move(value)); return *this; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline double GetPercentageComplete() const{ return m_percentageComplete; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline void SetPercentageComplete(double value) { m_percentageComplete = value; }
/**
* <p>The percentage of targets for which the deployment is available.</p>
*/
inline StopDeploymentResult& WithPercentageComplete(double value) { SetPercentageComplete(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAt = value; }
/**
* <p>The time the deployment started.</p>
*/
inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAt = std::move(value); }
/**
* <p>The time the deployment started.</p>
*/
inline StopDeploymentResult& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
/**
* <p>The time the deployment started.</p>
*/
inline StopDeploymentResult& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAt = value; }
/**
* <p>The time the deployment completed. </p>
*/
inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAt = std::move(value); }
/**
* <p>The time the deployment completed. </p>
*/
inline StopDeploymentResult& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;}
/**
* <p>The time the deployment completed. </p>
*/
inline StopDeploymentResult& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;}
private:
Aws::String m_applicationId;
Aws::String m_environmentId;
Aws::String m_deploymentStrategyId;
Aws::String m_configurationProfileId;
int m_deploymentNumber;
Aws::String m_configurationName;
Aws::String m_configurationLocationUri;
Aws::String m_configurationVersion;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
DeploymentState m_state;
Aws::Vector<DeploymentEvent> m_eventLog;
double m_percentageComplete;
Aws::Utils::DateTime m_startedAt;
Aws::Utils::DateTime m_completedAt;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,179 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API TagResourceRequest : public AppConfigRequest
{
public:
TagResourceRequest();
// 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 "TagResource"; }
Aws::String SerializePayload() const override;
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource for which to retrieve tags.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The key-value string map. The valid character set is [a-zA-Z+-=._:/]. The tag
* key can be up to 128 characters and must not start with <code>aws:</code>. The
* tag value can be up to 256 characters.</p>
*/
inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class TriggeredBy
{
NOT_SET,
USER,
APPCONFIG,
CLOUDWATCH_ALARM,
INTERNAL_ERROR
};
namespace TriggeredByMapper
{
AWS_APPCONFIG_API TriggeredBy GetTriggeredByForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForTriggeredBy(TriggeredBy value);
} // namespace TriggeredByMapper
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API UntagResourceRequest : public AppConfigRequest
{
public:
UntagResourceRequest();
// 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 "UntagResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource for which to remove tags.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The tag keys to delete.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The tag keys to delete.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The tag keys to delete.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The tag keys to delete.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The tag keys to delete.</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The tag keys to delete.</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The tag keys to delete.</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The tag keys to delete.</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The tag keys to delete.</p>
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API UpdateApplicationRequest : public AppConfigRequest
{
public:
UpdateApplicationRequest();
// 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 "UpdateApplication"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationRequest& WithApplicationId(const char* value) { SetApplicationId(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 UpdateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the application.</p>
*/
inline UpdateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the application.</p>
*/
inline UpdateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the application.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the application.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the application.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the application.</p>
*/
inline UpdateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the application.</p>
*/
inline UpdateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the application.</p>
*/
inline UpdateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_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 AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API UpdateApplicationResult
{
public:
UpdateApplicationResult();
UpdateApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateApplicationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The application ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The application ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateApplicationResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The application name.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The application name.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The application name.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The application name.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The application name.</p>
*/
inline UpdateApplicationResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The application name.</p>
*/
inline UpdateApplicationResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The application name.</p>
*/
inline UpdateApplicationResult& 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 void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the application.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the application.</p>
*/
inline UpdateApplicationResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the application.</p>
*/
inline UpdateApplicationResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the application.</p>
*/
inline UpdateApplicationResult& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,313 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Validator.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API UpdateConfigurationProfileRequest : public AppConfigRequest
{
public:
UpdateConfigurationProfileRequest();
// 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 "UpdateConfigurationProfile"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The ID of the configuration profile.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The ID of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The ID of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration profile.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the configuration profile.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the configuration profile.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the configuration profile.</p>
*/
inline UpdateConfigurationProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline bool RetrievalRoleArnHasBeenSet() const { return m_retrievalRoleArnHasBeenSet; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = value; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = std::move(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn.assign(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileRequest& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileRequest& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileRequest& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline const Aws::Vector<Validator>& GetValidators() const{ return m_validators; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(const Aws::Vector<Validator>& value) { m_validatorsHasBeenSet = true; m_validators = value; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(Aws::Vector<Validator>&& value) { m_validatorsHasBeenSet = true; m_validators = std::move(value); }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileRequest& WithValidators(const Aws::Vector<Validator>& value) { SetValidators(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileRequest& WithValidators(Aws::Vector<Validator>&& value) { SetValidators(std::move(value)); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileRequest& AddValidators(const Validator& value) { m_validatorsHasBeenSet = true; m_validators.push_back(value); return *this; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileRequest& AddValidators(Validator&& value) { m_validatorsHasBeenSet = true; m_validators.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_retrievalRoleArn;
bool m_retrievalRoleArnHasBeenSet;
Aws::Vector<Validator> m_validators;
bool m_validatorsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,314 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Validator.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API UpdateConfigurationProfileResult
{
public:
UpdateConfigurationProfileResult();
UpdateConfigurationProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateConfigurationProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateConfigurationProfileResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline UpdateConfigurationProfileResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline UpdateConfigurationProfileResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline UpdateConfigurationProfileResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the configuration profile.</p>
*/
inline UpdateConfigurationProfileResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The configuration profile description.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The configuration profile description.</p>
*/
inline UpdateConfigurationProfileResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline UpdateConfigurationProfileResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The configuration profile description.</p>
*/
inline UpdateConfigurationProfileResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URI location of the configuration.</p>
*/
inline UpdateConfigurationProfileResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline UpdateConfigurationProfileResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URI location of the configuration.</p>
*/
inline UpdateConfigurationProfileResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline const Aws::String& GetRetrievalRoleArn() const{ return m_retrievalRoleArn; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const Aws::String& value) { m_retrievalRoleArn = value; }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(Aws::String&& value) { m_retrievalRoleArn = std::move(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline void SetRetrievalRoleArn(const char* value) { m_retrievalRoleArn.assign(value); }
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileResult& WithRetrievalRoleArn(const Aws::String& value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileResult& WithRetrievalRoleArn(Aws::String&& value) { SetRetrievalRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of an IAM role with permission to access the configuration at the
* specified LocationUri.</p>
*/
inline UpdateConfigurationProfileResult& WithRetrievalRoleArn(const char* value) { SetRetrievalRoleArn(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline const Aws::Vector<Validator>& GetValidators() const{ return m_validators; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(const Aws::Vector<Validator>& value) { m_validators = value; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline void SetValidators(Aws::Vector<Validator>&& value) { m_validators = std::move(value); }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileResult& WithValidators(const Aws::Vector<Validator>& value) { SetValidators(value); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileResult& WithValidators(Aws::Vector<Validator>&& value) { SetValidators(std::move(value)); return *this;}
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileResult& AddValidators(const Validator& value) { m_validators.push_back(value); return *this; }
/**
* <p>A list of methods for validating the configuration.</p>
*/
inline UpdateConfigurationProfileResult& AddValidators(Validator&& value) { m_validators.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
Aws::String m_locationUri;
Aws::String m_retrievalRoleArn;
Aws::Vector<Validator> m_validators;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,338 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API UpdateDeploymentStrategyRequest : public AppConfigRequest
{
public:
UpdateDeploymentStrategyRequest();
// 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 "UpdateDeploymentStrategy"; }
Aws::String SerializePayload() const override;
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetDeploymentStrategyId() const{ return m_deploymentStrategyId; }
/**
* <p>The deployment strategy ID.</p>
*/
inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(const Aws::String& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(Aws::String&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetDeploymentStrategyId(const char* value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(const Aws::String& value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(Aws::String&& value) { SetDeploymentStrategyId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(const char* value) { SetDeploymentStrategyId(value); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time for a deployment to last.</p>
*/
inline UpdateDeploymentStrategyRequest& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitors for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline UpdateDeploymentStrategyRequest& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
/**
* <p>The percentage of targets to receive a deployed configuration during each
* interval.</p>
*/
inline UpdateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline UpdateDeploymentStrategyRequest& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grows over time. AWS AppConfig
* supports the following growth types:</p> <p> <b>Linear</b>: For this type,
* AppConfig processes the deployment by increments of the growth factor evenly
* distributed over the deployment time. For example, a linear deployment that uses
* a growth factor of 20 initially makes the configuration available to 20 percent
* of the targets. After 1/5th of the deployment time has passed, the system
* updates the percentage to 40 percent. This continues until 100% of the targets
* are set to receive the deployed configuration.</p> <p> <b>Exponential</b>: For
* this type, AppConfig processes the deployment exponentially using the following
* formula: <code>G*(2^N)</code>. In this formula, <code>G</code> is the growth
* factor specified by the user and <code>N</code> is the number of steps until the
* configuration is deployed to all targets. For example, if you specify a growth
* factor of 2, then the system rolls out the configuration as follows:</p> <p>
* <code>2*(2^0)</code> </p> <p> <code>2*(2^1)</code> </p> <p> <code>2*(2^2)</code>
* </p> <p>Expressed numerically, the deployment rolls out as follows: 2% of the
* targets, 4% of the targets, 8% of the targets, and continues until the
* configuration has been deployed to all targets.</p>
*/
inline UpdateDeploymentStrategyRequest& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
private:
Aws::String m_deploymentStrategyId;
bool m_deploymentStrategyIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
int m_deploymentDurationInMinutes;
bool m_deploymentDurationInMinutesHasBeenSet;
int m_finalBakeTimeInMinutes;
bool m_finalBakeTimeInMinutesHasBeenSet;
double m_growthFactor;
bool m_growthFactorHasBeenSet;
GrowthType m_growthType;
bool m_growthTypeHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,271 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/GrowthType.h>
#include <aws/appconfig/model/ReplicateTo.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API UpdateDeploymentStrategyResult
{
public:
UpdateDeploymentStrategyResult();
UpdateDeploymentStrategyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateDeploymentStrategyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The deployment strategy ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The deployment strategy ID.</p>
*/
inline UpdateDeploymentStrategyResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the deployment strategy.</p>
*/
inline UpdateDeploymentStrategyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutes = value; }
/**
* <p>Total amount of time the deployment lasted.</p>
*/
inline UpdateDeploymentStrategyResult& WithDeploymentDurationInMinutes(int value) { SetDeploymentDurationInMinutes(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline const GrowthType& GetGrowthType() const{ return m_growthType; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(const GrowthType& value) { m_growthType = value; }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline void SetGrowthType(GrowthType&& value) { m_growthType = std::move(value); }
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline UpdateDeploymentStrategyResult& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
/**
* <p>The algorithm used to define how percentage grew over time.</p>
*/
inline UpdateDeploymentStrategyResult& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline double GetGrowthFactor() const{ return m_growthFactor; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline void SetGrowthFactor(double value) { m_growthFactor = value; }
/**
* <p>The percentage of targets that received a deployed configuration during each
* interval.</p>
*/
inline UpdateDeploymentStrategyResult& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutes = value; }
/**
* <p>The amount of time AppConfig monitored for alarms before considering the
* deployment to be complete and no longer eligible for automatic roll back.</p>
*/
inline UpdateDeploymentStrategyResult& WithFinalBakeTimeInMinutes(int value) { SetFinalBakeTimeInMinutes(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(const ReplicateTo& value) { m_replicateTo = value; }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline void SetReplicateTo(ReplicateTo&& value) { m_replicateTo = std::move(value); }
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline UpdateDeploymentStrategyResult& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
/**
* <p>Save the deployment strategy to a Systems Manager (SSM) document.</p>
*/
inline UpdateDeploymentStrategyResult& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
private:
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
int m_deploymentDurationInMinutes;
GrowthType m_growthType;
double m_growthFactor;
int m_finalBakeTimeInMinutes;
ReplicateTo m_replicateTo;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,261 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API UpdateEnvironmentRequest : public AppConfigRequest
{
public:
UpdateEnvironmentRequest();
// 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 "UpdateEnvironment"; }
Aws::String SerializePayload() const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
/**
* <p>The environment ID.</p>
*/
inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the environment.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the environment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the environment.</p>
*/
inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline UpdateEnvironmentRequest& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline UpdateEnvironmentRequest& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline UpdateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms to monitor during the deployment process.</p>
*/
inline UpdateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_environmentId;
bool m_environmentIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Monitor> m_monitors;
bool m_monitorsHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,270 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/appconfig/model/EnvironmentState.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/appconfig/model/Monitor.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
class AWS_APPCONFIG_API UpdateEnvironmentResult
{
public:
UpdateEnvironmentResult();
UpdateEnvironmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateEnvironmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline UpdateEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The environment ID.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The environment ID.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The environment ID.</p>
*/
inline UpdateEnvironmentResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the environment.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the environment.</p>
*/
inline UpdateEnvironmentResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the environment.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the environment.</p>
*/
inline UpdateEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline UpdateEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the environment.</p>
*/
inline UpdateEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline const EnvironmentState& GetState() const{ return m_state; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(const EnvironmentState& value) { m_state = value; }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline void SetState(EnvironmentState&& value) { m_state = std::move(value); }
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline UpdateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;}
/**
* <p>The state of the environment. An environment can be in one of the following
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
*/
inline UpdateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitors = value; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitors = std::move(value); }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline UpdateEnvironmentResult& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline UpdateEnvironmentResult& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline UpdateEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; }
/**
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
*/
inline UpdateEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; }
private:
Aws::String m_applicationId;
Aws::String m_id;
Aws::String m_name;
Aws::String m_description;
EnvironmentState m_state;
Aws::Vector<Monitor> m_monitors;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/AppConfigRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace AppConfig
{
namespace Model
{
/**
*/
class AWS_APPCONFIG_API ValidateConfigurationRequest : public AppConfigRequest
{
public:
ValidateConfigurationRequest();
// 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 "ValidateConfiguration"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The application ID.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The application ID.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The application ID.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The application ID.</p>
*/
inline ValidateConfigurationRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The application ID.</p>
*/
inline ValidateConfigurationRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The application ID.</p>
*/
inline ValidateConfigurationRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline const Aws::String& GetConfigurationProfileId() const{ return m_configurationProfileId; }
/**
* <p>The configuration profile ID.</p>
*/
inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const Aws::String& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = value; }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(Aws::String&& value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId = std::move(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline void SetConfigurationProfileId(const char* value) { m_configurationProfileIdHasBeenSet = true; m_configurationProfileId.assign(value); }
/**
* <p>The configuration profile ID.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationProfileId(const Aws::String& value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationProfileId(Aws::String&& value) { SetConfigurationProfileId(std::move(value)); return *this;}
/**
* <p>The configuration profile ID.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationProfileId(const char* value) { SetConfigurationProfileId(value); return *this;}
/**
* <p>The version of the configuration to validate.</p>
*/
inline const Aws::String& GetConfigurationVersion() const{ return m_configurationVersion; }
/**
* <p>The version of the configuration to validate.</p>
*/
inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
/**
* <p>The version of the configuration to validate.</p>
*/
inline void SetConfigurationVersion(const Aws::String& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = value; }
/**
* <p>The version of the configuration to validate.</p>
*/
inline void SetConfigurationVersion(Aws::String&& value) { m_configurationVersionHasBeenSet = true; m_configurationVersion = std::move(value); }
/**
* <p>The version of the configuration to validate.</p>
*/
inline void SetConfigurationVersion(const char* value) { m_configurationVersionHasBeenSet = true; m_configurationVersion.assign(value); }
/**
* <p>The version of the configuration to validate.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationVersion(const Aws::String& value) { SetConfigurationVersion(value); return *this;}
/**
* <p>The version of the configuration to validate.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationVersion(Aws::String&& value) { SetConfigurationVersion(std::move(value)); return *this;}
/**
* <p>The version of the configuration to validate.</p>
*/
inline ValidateConfigurationRequest& WithConfigurationVersion(const char* value) { SetConfigurationVersion(value); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
Aws::String m_configurationProfileId;
bool m_configurationProfileIdHasBeenSet;
Aws::String m_configurationVersion;
bool m_configurationVersionHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/model/ValidatorType.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 AppConfig
{
namespace Model
{
/**
* <p>A validator provides a syntactic or semantic check to ensure the
* configuration you want to deploy functions as intended. To validate your
* application configuration data, you provide a schema or a Lambda function that
* runs against the configuration. The configuration deployment or update can only
* proceed when the configuration data is valid.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/Validator">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API Validator
{
public:
Validator();
Validator(Aws::Utils::Json::JsonView jsonValue);
Validator& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline const ValidatorType& GetType() const{ return m_type; }
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline void SetType(const ValidatorType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline void SetType(ValidatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline Validator& WithType(const ValidatorType& value) { SetType(value); return *this;}
/**
* <p>AppConfig supports validators of type <code>JSON_SCHEMA</code> and
* <code>LAMBDA</code> </p>
*/
inline Validator& WithType(ValidatorType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline const Aws::String& GetContent() const{ return m_content; }
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline Validator& WithContent(const Aws::String& value) { SetContent(value); return *this;}
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline Validator& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
/**
* <p>Either the JSON Schema content or the Amazon Resource Name (ARN) of an AWS
* Lambda function.</p>
*/
inline Validator& WithContent(const char* value) { SetContent(value); return *this;}
private:
ValidatorType m_type;
bool m_typeHasBeenSet;
Aws::String m_content;
bool m_contentHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // 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/appconfig/AppConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace AppConfig
{
namespace Model
{
enum class ValidatorType
{
NOT_SET,
JSON_SCHEMA,
LAMBDA
};
namespace ValidatorTypeMapper
{
AWS_APPCONFIG_API ValidatorType GetValidatorTypeForName(const Aws::String& name);
AWS_APPCONFIG_API Aws::String GetNameForValidatorType(ValidatorType value);
} // namespace ValidatorTypeMapper
} // namespace Model
} // namespace AppConfig
} // namespace Aws