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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace OpsWorksCMEndpoint
{
AWS_OPSWORKSCM_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace OpsWorksCMEndpoint
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_OPSWORKSCM_API OpsWorksCMErrorMarshaller : 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,75 @@
/**
* 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/opsworkscm/OpsWorksCM_EXPORTS.h>
namespace Aws
{
namespace OpsWorksCM
{
enum class OpsWorksCMErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
INVALID_NEXT_TOKEN= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_STATE,
LIMIT_EXCEEDED,
RESOURCE_ALREADY_EXISTS
};
class AWS_OPSWORKSCM_API OpsWorksCMError : public Aws::Client::AWSError<OpsWorksCMErrors>
{
public:
OpsWorksCMError() {}
OpsWorksCMError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<OpsWorksCMErrors>(rhs) {}
OpsWorksCMError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<OpsWorksCMErrors>(rhs) {}
OpsWorksCMError(const Aws::Client::AWSError<OpsWorksCMErrors>& rhs) : Aws::Client::AWSError<OpsWorksCMErrors>(rhs) {}
OpsWorksCMError(Aws::Client::AWSError<OpsWorksCMErrors>&& rhs) : Aws::Client::AWSError<OpsWorksCMErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace OpsWorksCMErrorMapper
{
AWS_OPSWORKSCM_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace OpsWorksCM
{
class AWS_OPSWORKSCM_API OpsWorksCMRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~OpsWorksCMRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2016-11-01"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace OpsWorksCM
} // 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_OPSWORKSCM_EXPORTS
#define AWS_OPSWORKSCM_API __declspec(dllexport)
#else
#define AWS_OPSWORKSCM_API __declspec(dllimport)
#endif /* AWS_OPSWORKSCM_EXPORTS */
#else
#define AWS_OPSWORKSCM_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_OPSWORKSCM_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,180 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_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 OpsWorksCM
{
namespace Model
{
/**
* <p>Stores account attributes. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AccountAttribute">AWS
* API Reference</a></p>
*/
class AWS_OPSWORKSCM_API AccountAttribute
{
public:
AccountAttribute();
AccountAttribute(Aws::Utils::Json::JsonView jsonValue);
AccountAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline AccountAttribute& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline AccountAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The attribute name. The following are supported attribute names. </p> <ul>
* <li> <p> <i>ServerLimit:</i> The number of current servers/maximum number of
* servers allowed. By default, you can have a maximum of 10 servers. </p> </li>
* <li> <p> <i>ManualBackupLimit:</i> The number of current manual backups/maximum
* number of backups allowed. By default, you can have a maximum of 50 manual
* backups saved. </p> </li> </ul>
*/
inline AccountAttribute& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> The maximum allowed value. </p>
*/
inline int GetMaximum() const{ return m_maximum; }
/**
* <p> The maximum allowed value. </p>
*/
inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
/**
* <p> The maximum allowed value. </p>
*/
inline void SetMaximum(int value) { m_maximumHasBeenSet = true; m_maximum = value; }
/**
* <p> The maximum allowed value. </p>
*/
inline AccountAttribute& WithMaximum(int value) { SetMaximum(value); return *this;}
/**
* <p> The current usage, such as the current number of servers that are associated
* with the account. </p>
*/
inline int GetUsed() const{ return m_used; }
/**
* <p> The current usage, such as the current number of servers that are associated
* with the account. </p>
*/
inline bool UsedHasBeenSet() const { return m_usedHasBeenSet; }
/**
* <p> The current usage, such as the current number of servers that are associated
* with the account. </p>
*/
inline void SetUsed(int value) { m_usedHasBeenSet = true; m_used = value; }
/**
* <p> The current usage, such as the current number of servers that are associated
* with the account. </p>
*/
inline AccountAttribute& WithUsed(int value) { SetUsed(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
int m_maximum;
bool m_maximumHasBeenSet;
int m_used;
bool m_usedHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,247 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/EngineAttribute.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API AssociateNodeRequest : public OpsWorksCMRequest
{
public:
AssociateNodeRequest();
// 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 "AssociateNode"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline AssociateNodeRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline AssociateNodeRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server with which to associate the node. </p>
*/
inline AssociateNodeRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>The name of the node. </p>
*/
inline const Aws::String& GetNodeName() const{ return m_nodeName; }
/**
* <p>The name of the node. </p>
*/
inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
/**
* <p>The name of the node. </p>
*/
inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; }
/**
* <p>The name of the node. </p>
*/
inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); }
/**
* <p>The name of the node. </p>
*/
inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); }
/**
* <p>The name of the node. </p>
*/
inline AssociateNodeRequest& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;}
/**
* <p>The name of the node. </p>
*/
inline AssociateNodeRequest& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;}
/**
* <p>The name of the node. </p>
*/
inline AssociateNodeRequest& WithNodeName(const char* value) { SetNodeName(value); return *this;}
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline const Aws::Vector<EngineAttribute>& GetEngineAttributes() const{ return m_engineAttributes; }
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; }
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline void SetEngineAttributes(const Aws::Vector<EngineAttribute>& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; }
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline void SetEngineAttributes(Aws::Vector<EngineAttribute>&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); }
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline AssociateNodeRequest& WithEngineAttributes(const Aws::Vector<EngineAttribute>& value) { SetEngineAttributes(value); return *this;}
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline AssociateNodeRequest& WithEngineAttributes(Aws::Vector<EngineAttribute>&& value) { SetEngineAttributes(std::move(value)); return *this;}
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline AssociateNodeRequest& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; }
/**
* <p>Engine attributes used for associating the node. </p> <p class="title">
* <b>Attributes accepted in a AssociateNode request for Chef</b> </p> <ul> <li>
* <p> <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node is
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> <li> <p> <code>CHEF_NODE_PUBLIC_KEY</code>: A PEM-formatted
* public key. This key is required for the <code>chef-client</code> agent to
* access the Chef API. </p> </li> </ul> <p class="title"> <b>Attributes accepted
* in a AssociateNode request for Puppet</b> </p> <ul> <li> <p>
* <code>PUPPET_NODE_CSR</code>: A PEM-formatted certificate-signing request (CSR)
* that is created by the node. </p> </li> </ul>
*/
inline AssociateNodeRequest& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_nodeName;
bool m_nodeNameHasBeenSet;
Aws::Vector<EngineAttribute> m_engineAttributes;
bool m_engineAttributesHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_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 OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API AssociateNodeResult
{
public:
AssociateNodeResult();
AssociateNodeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateNodeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline const Aws::String& GetNodeAssociationStatusToken() const{ return m_nodeAssociationStatusToken; }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline void SetNodeAssociationStatusToken(const Aws::String& value) { m_nodeAssociationStatusToken = value; }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline void SetNodeAssociationStatusToken(Aws::String&& value) { m_nodeAssociationStatusToken = std::move(value); }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline void SetNodeAssociationStatusToken(const char* value) { m_nodeAssociationStatusToken.assign(value); }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline AssociateNodeResult& WithNodeAssociationStatusToken(const Aws::String& value) { SetNodeAssociationStatusToken(value); return *this;}
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline AssociateNodeResult& WithNodeAssociationStatusToken(Aws::String&& value) { SetNodeAssociationStatusToken(std::move(value)); return *this;}
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* association request. </p>
*/
inline AssociateNodeResult& WithNodeAssociationStatusToken(const char* value) { SetNodeAssociationStatusToken(value); return *this;}
private:
Aws::String m_nodeAssociationStatusToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
enum class BackupStatus
{
NOT_SET,
IN_PROGRESS,
OK,
FAILED,
DELETING
};
namespace BackupStatusMapper
{
AWS_OPSWORKSCM_API BackupStatus GetBackupStatusForName(const Aws::String& name);
AWS_OPSWORKSCM_API Aws::String GetNameForBackupStatus(BackupStatus value);
} // namespace BackupStatusMapper
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
enum class BackupType
{
NOT_SET,
AUTOMATED,
MANUAL
};
namespace BackupTypeMapper
{
AWS_OPSWORKSCM_API BackupType GetBackupTypeForName(const Aws::String& name);
AWS_OPSWORKSCM_API Aws::String GetNameForBackupType(BackupType value);
} // namespace BackupTypeMapper
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,247 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API CreateBackupRequest : public OpsWorksCMRequest
{
public:
CreateBackupRequest();
// 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 "CreateBackup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server that you want to back up. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server that you want to back up. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server that you want to back up. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server that you want to back up. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server that you want to back up. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server that you want to back up. </p>
*/
inline CreateBackupRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server that you want to back up. </p>
*/
inline CreateBackupRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server that you want to back up. </p>
*/
inline CreateBackupRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p> A user-defined description of the backup. </p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p> A user-defined description of the backup. </p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p> A user-defined description of the backup. </p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p> A user-defined description of the backup. </p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p> A user-defined description of the backup. </p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p> A user-defined description of the backup. </p>
*/
inline CreateBackupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p> A user-defined description of the backup. </p>
*/
inline CreateBackupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p> A user-defined description of the backup. </p>
*/
inline CreateBackupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline CreateBackupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline CreateBackupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline CreateBackupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks-CM
* server backup.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li> <p>The
* key can be a maximum of 127 characters, and can contain only Unicode letters,
* numbers, or separators, or the following special characters: <code>+ - = . _ :
* /</code> </p> </li> <li> <p>The value can be a maximum 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and trailing
* white spaces are trimmed from both the key and value.</p> </li> <li> <p>A
* maximum of 50 user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p> </li> </ul>
*/
inline CreateBackupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/Backup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API CreateBackupResult
{
public:
CreateBackupResult();
CreateBackupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateBackupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Backup created by request.</p>
*/
inline const Backup& GetBackup() const{ return m_backup; }
/**
* <p>Backup created by request.</p>
*/
inline void SetBackup(const Backup& value) { m_backup = value; }
/**
* <p>Backup created by request.</p>
*/
inline void SetBackup(Backup&& value) { m_backup = std::move(value); }
/**
* <p>Backup created by request.</p>
*/
inline CreateBackupResult& WithBackup(const Backup& value) { SetBackup(value); return *this;}
/**
* <p>Backup created by request.</p>
*/
inline CreateBackupResult& WithBackup(Backup&& value) { SetBackup(std::move(value)); return *this;}
private:
Backup m_backup;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API CreateServerResult
{
public:
CreateServerResult();
CreateServerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateServerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The server that is created by the request. </p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>The server that is created by the request. </p>
*/
inline void SetServer(const Server& value) { m_server = value; }
/**
* <p>The server that is created by the request. </p>
*/
inline void SetServer(Server&& value) { m_server = std::move(value); }
/**
* <p>The server that is created by the request. </p>
*/
inline CreateServerResult& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>The server that is created by the request. </p>
*/
inline CreateServerResult& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
private:
Server m_server;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DeleteBackupRequest : public OpsWorksCMRequest
{
public:
DeleteBackupRequest();
// 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 "DeleteBackup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline const Aws::String& GetBackupId() const{ return m_backupId; }
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline DeleteBackupRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline DeleteBackupRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
/**
* <p>The ID of the backup to delete. Run the DescribeBackups command to get a list
* of backup IDs. Backup IDs are in the format
* <code>ServerName-yyyyMMddHHmmssSSS</code>. </p>
*/
inline DeleteBackupRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
private:
Aws::String m_backupId;
bool m_backupIdHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

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

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DeleteServerRequest : public OpsWorksCMRequest
{
public:
DeleteServerRequest();
// 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 "DeleteServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the server to delete.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The ID of the server to delete.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The ID of the server to delete.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The ID of the server to delete.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The ID of the server to delete.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The ID of the server to delete.</p>
*/
inline DeleteServerRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The ID of the server to delete.</p>
*/
inline DeleteServerRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The ID of the server to delete.</p>
*/
inline DeleteServerRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

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

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DescribeAccountAttributesRequest : public OpsWorksCMRequest
{
public:
DescribeAccountAttributesRequest();
// 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 "DescribeAccountAttributes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/AccountAttribute.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DescribeAccountAttributesResult
{
public:
DescribeAccountAttributesResult();
DescribeAccountAttributesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAccountAttributesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline const Aws::Vector<AccountAttribute>& GetAttributes() const{ return m_attributes; }
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline void SetAttributes(const Aws::Vector<AccountAttribute>& value) { m_attributes = value; }
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline void SetAttributes(Aws::Vector<AccountAttribute>&& value) { m_attributes = std::move(value); }
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline DescribeAccountAttributesResult& WithAttributes(const Aws::Vector<AccountAttribute>& value) { SetAttributes(value); return *this;}
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline DescribeAccountAttributesResult& WithAttributes(Aws::Vector<AccountAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline DescribeAccountAttributesResult& AddAttributes(const AccountAttribute& value) { m_attributes.push_back(value); return *this; }
/**
* <p> The attributes that are currently set for the account. </p>
*/
inline DescribeAccountAttributesResult& AddAttributes(AccountAttribute&& value) { m_attributes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<AccountAttribute> m_attributes;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DescribeBackupsRequest : public OpsWorksCMRequest
{
public:
DescribeBackupsRequest();
// 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 "DescribeBackups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Describes a single backup. </p>
*/
inline const Aws::String& GetBackupId() const{ return m_backupId; }
/**
* <p>Describes a single backup. </p>
*/
inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
/**
* <p>Describes a single backup. </p>
*/
inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
/**
* <p>Describes a single backup. </p>
*/
inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
/**
* <p>Describes a single backup. </p>
*/
inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
/**
* <p>Describes a single backup. </p>
*/
inline DescribeBackupsRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
/**
* <p>Describes a single backup. </p>
*/
inline DescribeBackupsRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
/**
* <p>Describes a single backup. </p>
*/
inline DescribeBackupsRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline DescribeBackupsRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline DescribeBackupsRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>Returns backups for the server with the specified ServerName. </p>
*/
inline DescribeBackupsRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_backupId;
bool m_backupIdHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/opsworkscm/model/Backup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DescribeBackupsResult
{
public:
DescribeBackupsResult();
DescribeBackupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeBackupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline const Aws::Vector<Backup>& GetBackups() const{ return m_backups; }
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline void SetBackups(const Aws::Vector<Backup>& value) { m_backups = value; }
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline void SetBackups(Aws::Vector<Backup>&& value) { m_backups = std::move(value); }
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline DescribeBackupsResult& WithBackups(const Aws::Vector<Backup>& value) { SetBackups(value); return *this;}
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline DescribeBackupsResult& WithBackups(Aws::Vector<Backup>&& value) { SetBackups(std::move(value)); return *this;}
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline DescribeBackupsResult& AddBackups(const Backup& value) { m_backups.push_back(value); return *this; }
/**
* <p>Contains the response to a <code>DescribeBackups</code> request. </p>
*/
inline DescribeBackupsResult& AddBackups(Backup&& value) { m_backups.push_back(std::move(value)); return *this; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeBackups</code>
* requests.</p>
*/
inline DescribeBackupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Backup> m_backups;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,233 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DescribeEventsRequest : public OpsWorksCMRequest
{
public:
DescribeEventsRequest();
// 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 "DescribeEvents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline DescribeEventsRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline DescribeEventsRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server for which you want to view events.</p>
*/
inline DescribeEventsRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results. </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results. </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results. </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results. </p>
*/
inline DescribeEventsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/opsworkscm/model/ServerEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DescribeEventsResult
{
public:
DescribeEventsResult();
DescribeEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline const Aws::Vector<ServerEvent>& GetServerEvents() const{ return m_serverEvents; }
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline void SetServerEvents(const Aws::Vector<ServerEvent>& value) { m_serverEvents = value; }
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline void SetServerEvents(Aws::Vector<ServerEvent>&& value) { m_serverEvents = std::move(value); }
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline DescribeEventsResult& WithServerEvents(const Aws::Vector<ServerEvent>& value) { SetServerEvents(value); return *this;}
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline DescribeEventsResult& WithServerEvents(Aws::Vector<ServerEvent>&& value) { SetServerEvents(std::move(value)); return *this;}
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline DescribeEventsResult& AddServerEvents(const ServerEvent& value) { m_serverEvents.push_back(value); return *this; }
/**
* <p>Contains the response to a <code>DescribeEvents</code> request. </p>
*/
inline DescribeEventsResult& AddServerEvents(ServerEvent&& value) { m_serverEvents.push_back(std::move(value)); return *this; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>DescribeEvents</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur. </p>
*/
inline DescribeEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ServerEvent> m_serverEvents;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DescribeNodeAssociationStatusRequest : public OpsWorksCMRequest
{
public:
DescribeNodeAssociationStatusRequest();
// 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 "DescribeNodeAssociationStatus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline const Aws::String& GetNodeAssociationStatusToken() const{ return m_nodeAssociationStatusToken; }
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline bool NodeAssociationStatusTokenHasBeenSet() const { return m_nodeAssociationStatusTokenHasBeenSet; }
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline void SetNodeAssociationStatusToken(const Aws::String& value) { m_nodeAssociationStatusTokenHasBeenSet = true; m_nodeAssociationStatusToken = value; }
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline void SetNodeAssociationStatusToken(Aws::String&& value) { m_nodeAssociationStatusTokenHasBeenSet = true; m_nodeAssociationStatusToken = std::move(value); }
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline void SetNodeAssociationStatusToken(const char* value) { m_nodeAssociationStatusTokenHasBeenSet = true; m_nodeAssociationStatusToken.assign(value); }
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithNodeAssociationStatusToken(const Aws::String& value) { SetNodeAssociationStatusToken(value); return *this;}
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithNodeAssociationStatusToken(Aws::String&& value) { SetNodeAssociationStatusToken(std::move(value)); return *this;}
/**
* <p>The token returned in either the AssociateNodeResponse or the
* DisassociateNodeResponse. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithNodeAssociationStatusToken(const char* value) { SetNodeAssociationStatusToken(value); return *this;}
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DescribeNodeAssociationStatusRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
private:
Aws::String m_nodeAssociationStatusToken;
bool m_nodeAssociationStatusTokenHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/NodeAssociationStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/EngineAttribute.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DescribeNodeAssociationStatusResult
{
public:
DescribeNodeAssociationStatusResult();
DescribeNodeAssociationStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeNodeAssociationStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of the association or disassociation request. </p> <p
* class="title"> <b>Possible values:</b> </p> <ul> <li> <p> <code>SUCCESS</code>:
* The association or disassociation succeeded. </p> </li> <li> <p>
* <code>FAILED</code>: The association or disassociation failed. </p> </li> <li>
* <p> <code>IN_PROGRESS</code>: The association or disassociation is still in
* progress. </p> </li> </ul>
*/
inline const NodeAssociationStatus& GetNodeAssociationStatus() const{ return m_nodeAssociationStatus; }
/**
* <p>The status of the association or disassociation request. </p> <p
* class="title"> <b>Possible values:</b> </p> <ul> <li> <p> <code>SUCCESS</code>:
* The association or disassociation succeeded. </p> </li> <li> <p>
* <code>FAILED</code>: The association or disassociation failed. </p> </li> <li>
* <p> <code>IN_PROGRESS</code>: The association or disassociation is still in
* progress. </p> </li> </ul>
*/
inline void SetNodeAssociationStatus(const NodeAssociationStatus& value) { m_nodeAssociationStatus = value; }
/**
* <p>The status of the association or disassociation request. </p> <p
* class="title"> <b>Possible values:</b> </p> <ul> <li> <p> <code>SUCCESS</code>:
* The association or disassociation succeeded. </p> </li> <li> <p>
* <code>FAILED</code>: The association or disassociation failed. </p> </li> <li>
* <p> <code>IN_PROGRESS</code>: The association or disassociation is still in
* progress. </p> </li> </ul>
*/
inline void SetNodeAssociationStatus(NodeAssociationStatus&& value) { m_nodeAssociationStatus = std::move(value); }
/**
* <p>The status of the association or disassociation request. </p> <p
* class="title"> <b>Possible values:</b> </p> <ul> <li> <p> <code>SUCCESS</code>:
* The association or disassociation succeeded. </p> </li> <li> <p>
* <code>FAILED</code>: The association or disassociation failed. </p> </li> <li>
* <p> <code>IN_PROGRESS</code>: The association or disassociation is still in
* progress. </p> </li> </ul>
*/
inline DescribeNodeAssociationStatusResult& WithNodeAssociationStatus(const NodeAssociationStatus& value) { SetNodeAssociationStatus(value); return *this;}
/**
* <p>The status of the association or disassociation request. </p> <p
* class="title"> <b>Possible values:</b> </p> <ul> <li> <p> <code>SUCCESS</code>:
* The association or disassociation succeeded. </p> </li> <li> <p>
* <code>FAILED</code>: The association or disassociation failed. </p> </li> <li>
* <p> <code>IN_PROGRESS</code>: The association or disassociation is still in
* progress. </p> </li> </ul>
*/
inline DescribeNodeAssociationStatusResult& WithNodeAssociationStatus(NodeAssociationStatus&& value) { SetNodeAssociationStatus(std::move(value)); return *this;}
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline const Aws::Vector<EngineAttribute>& GetEngineAttributes() const{ return m_engineAttributes; }
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline void SetEngineAttributes(const Aws::Vector<EngineAttribute>& value) { m_engineAttributes = value; }
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline void SetEngineAttributes(Aws::Vector<EngineAttribute>&& value) { m_engineAttributes = std::move(value); }
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline DescribeNodeAssociationStatusResult& WithEngineAttributes(const Aws::Vector<EngineAttribute>& value) { SetEngineAttributes(value); return *this;}
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline DescribeNodeAssociationStatusResult& WithEngineAttributes(Aws::Vector<EngineAttribute>&& value) { SetEngineAttributes(std::move(value)); return *this;}
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline DescribeNodeAssociationStatusResult& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributes.push_back(value); return *this; }
/**
* <p>Attributes specific to the node association. In Puppet, the attibute
* PUPPET_NODE_CERT contains the signed certificate (the result of the CSR). </p>
*/
inline DescribeNodeAssociationStatusResult& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributes.push_back(std::move(value)); return *this; }
private:
NodeAssociationStatus m_nodeAssociationStatus;
Aws::Vector<EngineAttribute> m_engineAttributes;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DescribeServersRequest : public OpsWorksCMRequest
{
public:
DescribeServersRequest();
// 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 "DescribeServers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline DescribeServersRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline DescribeServersRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>Describes the server with the specified ServerName.</p>
*/
inline DescribeServersRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,194 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/opsworkscm/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DescribeServersResult
{
public:
DescribeServersResult();
DescribeServersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeServersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline const Aws::Vector<Server>& GetServers() const{ return m_servers; }
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline void SetServers(const Aws::Vector<Server>& value) { m_servers = value; }
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline void SetServers(Aws::Vector<Server>&& value) { m_servers = std::move(value); }
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline DescribeServersResult& WithServers(const Aws::Vector<Server>& value) { SetServers(value); return *this;}
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline DescribeServersResult& WithServers(Aws::Vector<Server>&& value) { SetServers(std::move(value)); return *this;}
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline DescribeServersResult& AddServers(const Server& value) { m_servers.push_back(value); return *this; }
/**
* <p>Contains the response to a <code>DescribeServers</code> request.</p> <p>
* <i>For Chef Automate servers:</i> If
* <code>DescribeServersResponse$Servers$EngineAttributes</code> includes
* CHEF_MAJOR_UPGRADE_AVAILABLE, you can upgrade the Chef Automate server to Chef
* Automate 2. To be eligible for upgrade, a server running Chef Automate 1 must
* have had at least one successful maintenance run after November 1, 2019.</p> <p>
* <i>For Puppet Server:</i>
* <code>DescribeServersResponse$Servers$EngineAttributes</code> contains
* PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the
* Puppet API over TCP port number 8140. The CA certificate is also used to sign
* node certificates.</p>
*/
inline DescribeServersResult& AddServers(Server&& value) { m_servers.push_back(std::move(value)); return *this; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>This is not currently implemented for <code>DescribeServers</code> requests.
* </p>
*/
inline DescribeServersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Server> m_servers;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,215 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/EngineAttribute.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API DisassociateNodeRequest : public OpsWorksCMRequest
{
public:
DisassociateNodeRequest();
// 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 "DisassociateNode"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DisassociateNodeRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DisassociateNodeRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server from which to disassociate the node. </p>
*/
inline DisassociateNodeRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>The name of the client node. </p>
*/
inline const Aws::String& GetNodeName() const{ return m_nodeName; }
/**
* <p>The name of the client node. </p>
*/
inline bool NodeNameHasBeenSet() const { return m_nodeNameHasBeenSet; }
/**
* <p>The name of the client node. </p>
*/
inline void SetNodeName(const Aws::String& value) { m_nodeNameHasBeenSet = true; m_nodeName = value; }
/**
* <p>The name of the client node. </p>
*/
inline void SetNodeName(Aws::String&& value) { m_nodeNameHasBeenSet = true; m_nodeName = std::move(value); }
/**
* <p>The name of the client node. </p>
*/
inline void SetNodeName(const char* value) { m_nodeNameHasBeenSet = true; m_nodeName.assign(value); }
/**
* <p>The name of the client node. </p>
*/
inline DisassociateNodeRequest& WithNodeName(const Aws::String& value) { SetNodeName(value); return *this;}
/**
* <p>The name of the client node. </p>
*/
inline DisassociateNodeRequest& WithNodeName(Aws::String&& value) { SetNodeName(std::move(value)); return *this;}
/**
* <p>The name of the client node. </p>
*/
inline DisassociateNodeRequest& WithNodeName(const char* value) { SetNodeName(value); return *this;}
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline const Aws::Vector<EngineAttribute>& GetEngineAttributes() const{ return m_engineAttributes; }
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; }
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline void SetEngineAttributes(const Aws::Vector<EngineAttribute>& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; }
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline void SetEngineAttributes(Aws::Vector<EngineAttribute>&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); }
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline DisassociateNodeRequest& WithEngineAttributes(const Aws::Vector<EngineAttribute>& value) { SetEngineAttributes(value); return *this;}
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline DisassociateNodeRequest& WithEngineAttributes(Aws::Vector<EngineAttribute>&& value) { SetEngineAttributes(std::move(value)); return *this;}
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline DisassociateNodeRequest& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; }
/**
* <p>Engine attributes that are used for disassociating the node. No attributes
* are required for Puppet. </p> <p class="title"> <b>Attributes required in a
* DisassociateNode request for Chef</b> </p> <ul> <li> <p>
* <code>CHEF_ORGANIZATION</code>: The Chef organization with which the node was
* associated. By default only one organization named <code>default</code> can
* exist. </p> </li> </ul>
*/
inline DisassociateNodeRequest& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_nodeName;
bool m_nodeNameHasBeenSet;
Aws::Vector<EngineAttribute> m_engineAttributes;
bool m_engineAttributesHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_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 OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API DisassociateNodeResult
{
public:
DisassociateNodeResult();
DisassociateNodeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateNodeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline const Aws::String& GetNodeAssociationStatusToken() const{ return m_nodeAssociationStatusToken; }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline void SetNodeAssociationStatusToken(const Aws::String& value) { m_nodeAssociationStatusToken = value; }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline void SetNodeAssociationStatusToken(Aws::String&& value) { m_nodeAssociationStatusToken = std::move(value); }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline void SetNodeAssociationStatusToken(const char* value) { m_nodeAssociationStatusToken.assign(value); }
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline DisassociateNodeResult& WithNodeAssociationStatusToken(const Aws::String& value) { SetNodeAssociationStatusToken(value); return *this;}
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline DisassociateNodeResult& WithNodeAssociationStatusToken(Aws::String&& value) { SetNodeAssociationStatusToken(std::move(value)); return *this;}
/**
* <p>Contains a token which can be passed to the
* <code>DescribeNodeAssociationStatus</code> API call to get the status of the
* disassociation request. </p>
*/
inline DisassociateNodeResult& WithNodeAssociationStatusToken(const char* value) { SetNodeAssociationStatusToken(value); return *this;}
private:
Aws::String m_nodeAssociationStatusToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_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 OpsWorksCM
{
namespace Model
{
/**
* <p>A name and value pair that is specific to the engine of the server.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/EngineAttribute">AWS
* API Reference</a></p>
*/
class AWS_OPSWORKSCM_API EngineAttribute
{
public:
EngineAttribute();
EngineAttribute(Aws::Utils::Json::JsonView jsonValue);
EngineAttribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the engine attribute. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the engine attribute. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the engine attribute. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the engine attribute. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the engine attribute. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the engine attribute. </p>
*/
inline EngineAttribute& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the engine attribute. </p>
*/
inline EngineAttribute& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the engine attribute. </p>
*/
inline EngineAttribute& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The value of the engine attribute. </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value of the engine attribute. </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the engine attribute. </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the engine attribute. </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value of the engine attribute. </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value of the engine attribute. </p>
*/
inline EngineAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value of the engine attribute. </p>
*/
inline EngineAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value of the engine attribute. </p>
*/
inline EngineAttribute& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,295 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/EngineAttribute.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API ExportServerEngineAttributeRequest : public OpsWorksCMRequest
{
public:
ExportServerEngineAttributeRequest();
// 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 "ExportServerEngineAttribute"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline const Aws::String& GetExportAttributeName() const{ return m_exportAttributeName; }
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline bool ExportAttributeNameHasBeenSet() const { return m_exportAttributeNameHasBeenSet; }
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline void SetExportAttributeName(const Aws::String& value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName = value; }
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline void SetExportAttributeName(Aws::String&& value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName = std::move(value); }
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline void SetExportAttributeName(const char* value) { m_exportAttributeNameHasBeenSet = true; m_exportAttributeName.assign(value); }
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline ExportServerEngineAttributeRequest& WithExportAttributeName(const Aws::String& value) { SetExportAttributeName(value); return *this;}
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline ExportServerEngineAttributeRequest& WithExportAttributeName(Aws::String&& value) { SetExportAttributeName(std::move(value)); return *this;}
/**
* <p>The name of the export attribute. Currently, the supported export attribute
* is <code>Userdata</code>. This exports a user data script that includes
* parameters and values provided in the <code>InputAttributes</code> list.</p>
*/
inline ExportServerEngineAttributeRequest& WithExportAttributeName(const char* value) { SetExportAttributeName(value); return *this;}
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline ExportServerEngineAttributeRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline ExportServerEngineAttributeRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server from which you are exporting the attribute.</p>
*/
inline ExportServerEngineAttributeRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline const Aws::Vector<EngineAttribute>& GetInputAttributes() const{ return m_inputAttributes; }
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline bool InputAttributesHasBeenSet() const { return m_inputAttributesHasBeenSet; }
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline void SetInputAttributes(const Aws::Vector<EngineAttribute>& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes = value; }
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline void SetInputAttributes(Aws::Vector<EngineAttribute>&& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes = std::move(value); }
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline ExportServerEngineAttributeRequest& WithInputAttributes(const Aws::Vector<EngineAttribute>& value) { SetInputAttributes(value); return *this;}
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline ExportServerEngineAttributeRequest& WithInputAttributes(Aws::Vector<EngineAttribute>&& value) { SetInputAttributes(std::move(value)); return *this;}
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline ExportServerEngineAttributeRequest& AddInputAttributes(const EngineAttribute& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes.push_back(value); return *this; }
/**
* <p>The list of engine attributes. The list type is <code>EngineAttribute</code>.
* An <code>EngineAttribute</code> list item is a pair that includes an attribute
* name and its value. For the <code>Userdata</code> ExportAttributeName, the
* following are supported engine attribute names.</p> <ul> <li> <p> <b>RunList</b>
* In Chef, a list of roles or recipes that are run in the specified order. In
* Puppet, this parameter is ignored.</p> </li> <li> <p> <b>OrganizationName</b> In
* Chef, an organization name. AWS OpsWorks for Chef Automate always creates the
* organization <code>default</code>. In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeEnvironment</b> In Chef, a node environment (for example,
* development, staging, or one-box). In Puppet, this parameter is ignored.</p>
* </li> <li> <p> <b>NodeClientVersion</b> In Chef, the version of the Chef engine
* (three numbers separated by dots, such as 13.8.5). If this attribute is empty,
* OpsWorks for Chef Automate uses the most current version. In Puppet, this
* parameter is ignored.</p> </li> </ul>
*/
inline ExportServerEngineAttributeRequest& AddInputAttributes(EngineAttribute&& value) { m_inputAttributesHasBeenSet = true; m_inputAttributes.push_back(std::move(value)); return *this; }
private:
Aws::String m_exportAttributeName;
bool m_exportAttributeNameHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::Vector<EngineAttribute> m_inputAttributes;
bool m_inputAttributesHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,106 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/EngineAttribute.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 OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API ExportServerEngineAttributeResult
{
public:
ExportServerEngineAttributeResult();
ExportServerEngineAttributeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ExportServerEngineAttributeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The requested engine attribute pair with attribute name and value.</p>
*/
inline const EngineAttribute& GetEngineAttribute() const{ return m_engineAttribute; }
/**
* <p>The requested engine attribute pair with attribute name and value.</p>
*/
inline void SetEngineAttribute(const EngineAttribute& value) { m_engineAttribute = value; }
/**
* <p>The requested engine attribute pair with attribute name and value.</p>
*/
inline void SetEngineAttribute(EngineAttribute&& value) { m_engineAttribute = std::move(value); }
/**
* <p>The requested engine attribute pair with attribute name and value.</p>
*/
inline ExportServerEngineAttributeResult& WithEngineAttribute(const EngineAttribute& value) { SetEngineAttribute(value); return *this;}
/**
* <p>The requested engine attribute pair with attribute name and value.</p>
*/
inline ExportServerEngineAttributeResult& WithEngineAttribute(EngineAttribute&& value) { SetEngineAttribute(std::move(value)); return *this;}
/**
* <p>The server name used in the request.</p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The server name used in the request.</p>
*/
inline void SetServerName(const Aws::String& value) { m_serverName = value; }
/**
* <p>The server name used in the request.</p>
*/
inline void SetServerName(Aws::String&& value) { m_serverName = std::move(value); }
/**
* <p>The server name used in the request.</p>
*/
inline void SetServerName(const char* value) { m_serverName.assign(value); }
/**
* <p>The server name used in the request.</p>
*/
inline ExportServerEngineAttributeResult& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The server name used in the request.</p>
*/
inline ExportServerEngineAttributeResult& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The server name used in the request.</p>
*/
inline ExportServerEngineAttributeResult& WithServerName(const char* value) { SetServerName(value); return *this;}
private:
EngineAttribute m_engineAttribute;
Aws::String m_serverName;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,257 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API ListTagsForResourceRequest : public OpsWorksCMRequest
{
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;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of an AWS OpsWorks for Chef Automate or AWS
* OpsWorks for Puppet Enterprise server for which you want to show applied tags.
* For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>NextToken is a string that is returned in some command responses. It
* indicates that not all entries have been returned, and that you must run at
* least one more request to get remaining items. To get remaining results, call
* <code>ListTagsForResource</code> again, and assign the token from the previous
* results as the value of the <code>nextToken</code> parameter. If there are no
* more results, the response object's <code>nextToken</code> parameter value is
* <code>null</code>. Setting a <code>nextToken</code> value that was not returned
* in your previous results causes an <code>InvalidNextTokenException</code> to
* occur.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>To receive a paginated response, use this parameter to specify the maximum
* number of results to be returned with a single call. If the number of available
* results exceeds this maximum, the response includes a <code>NextToken</code>
* value that you can assign to the <code>NextToken</code> request parameter to get
* the next set of results.</p>
*/
inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/opsworkscm/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>Tags that have been applied to the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token that you can use as the value of <code>NextToken</code> in subsequent
* calls to the API to show more results.</p>
*/
inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Tag> m_tags;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
enum class MaintenanceStatus
{
NOT_SET,
SUCCESS,
FAILED
};
namespace MaintenanceStatusMapper
{
AWS_OPSWORKSCM_API MaintenanceStatus GetMaintenanceStatusForName(const Aws::String& name);
AWS_OPSWORKSCM_API Aws::String GetNameForMaintenanceStatus(MaintenanceStatus value);
} // namespace MaintenanceStatusMapper
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
enum class NodeAssociationStatus
{
NOT_SET,
SUCCESS,
FAILED,
IN_PROGRESS
};
namespace NodeAssociationStatusMapper
{
AWS_OPSWORKSCM_API NodeAssociationStatus GetNodeAssociationStatusForName(const Aws::String& name);
AWS_OPSWORKSCM_API Aws::String GetNameForNodeAssociationStatus(NodeAssociationStatus value);
} // namespace NodeAssociationStatusMapper
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,257 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API RestoreServerRequest : public OpsWorksCMRequest
{
public:
RestoreServerRequest();
// 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 "RestoreServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline const Aws::String& GetBackupId() const{ return m_backupId; }
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline bool BackupIdHasBeenSet() const { return m_backupIdHasBeenSet; }
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline void SetBackupId(const Aws::String& value) { m_backupIdHasBeenSet = true; m_backupId = value; }
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline void SetBackupId(Aws::String&& value) { m_backupIdHasBeenSet = true; m_backupId = std::move(value); }
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline void SetBackupId(const char* value) { m_backupIdHasBeenSet = true; m_backupId.assign(value); }
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline RestoreServerRequest& WithBackupId(const Aws::String& value) { SetBackupId(value); return *this;}
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline RestoreServerRequest& WithBackupId(Aws::String&& value) { SetBackupId(std::move(value)); return *this;}
/**
* <p> The ID of the backup that you want to use to restore a server. </p>
*/
inline RestoreServerRequest& WithBackupId(const char* value) { SetBackupId(value); return *this;}
/**
* <p> The name of the server that you want to restore. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p> The name of the server that you want to restore. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p> The name of the server that you want to restore. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p> The name of the server that you want to restore. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p> The name of the server that you want to restore. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p> The name of the server that you want to restore. </p>
*/
inline RestoreServerRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p> The name of the server that you want to restore. </p>
*/
inline RestoreServerRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p> The name of the server that you want to restore. </p>
*/
inline RestoreServerRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline RestoreServerRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline RestoreServerRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
/**
* <p> The type of instance to restore. Valid values must be specified in the
* following format: <code>^([cm][34]|t2).*</code> For example,
* <code>m5.large</code>. Valid values are <code>m5.large</code>,
* <code>r5.xlarge</code>, and <code>r5.2xlarge</code>. If you do not specify this
* parameter, RestoreServer uses the instance type from the specified backup. </p>
*/
inline RestoreServerRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline const Aws::String& GetKeyPair() const{ return m_keyPair; }
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline bool KeyPairHasBeenSet() const { return m_keyPairHasBeenSet; }
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline void SetKeyPair(const Aws::String& value) { m_keyPairHasBeenSet = true; m_keyPair = value; }
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline void SetKeyPair(Aws::String&& value) { m_keyPairHasBeenSet = true; m_keyPair = std::move(value); }
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline void SetKeyPair(const char* value) { m_keyPairHasBeenSet = true; m_keyPair.assign(value); }
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline RestoreServerRequest& WithKeyPair(const Aws::String& value) { SetKeyPair(value); return *this;}
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline RestoreServerRequest& WithKeyPair(Aws::String&& value) { SetKeyPair(std::move(value)); return *this;}
/**
* <p> The name of the key pair to set on the new EC2 instance. This can be helpful
* if the administrator no longer has the SSH key. </p>
*/
inline RestoreServerRequest& WithKeyPair(const char* value) { SetKeyPair(value); return *this;}
private:
Aws::String m_backupId;
bool m_backupIdHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_instanceType;
bool m_instanceTypeHasBeenSet;
Aws::String m_keyPair;
bool m_keyPairHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

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

View File

@@ -0,0 +1,212 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
/**
* <p>An event that is related to the server, such as the start of maintenance or
* backup. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ServerEvent">AWS
* API Reference</a></p>
*/
class AWS_OPSWORKSCM_API ServerEvent
{
public:
ServerEvent();
ServerEvent(Aws::Utils::Json::JsonView jsonValue);
ServerEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The time when the event occurred. </p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The time when the event occurred. </p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The time when the event occurred. </p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>The time when the event occurred. </p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The time when the event occurred. </p>
*/
inline ServerEvent& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The time when the event occurred. </p>
*/
inline ServerEvent& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline ServerEvent& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline ServerEvent& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server on or for which the event occurred. </p>
*/
inline ServerEvent& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>A human-readable informational or status message.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A human-readable informational or status message.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A human-readable informational or status message.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A human-readable informational or status message.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A human-readable informational or status message.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A human-readable informational or status message.</p>
*/
inline ServerEvent& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A human-readable informational or status message.</p>
*/
inline ServerEvent& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A human-readable informational or status message.</p>
*/
inline ServerEvent& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline const Aws::String& GetLogUrl() const{ return m_logUrl; }
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; }
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; }
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); }
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); }
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline ServerEvent& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;}
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline ServerEvent& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;}
/**
* <p>The Amazon S3 URL of the event's log file.</p>
*/
inline ServerEvent& WithLogUrl(const char* value) { SetLogUrl(value); return *this;}
private:
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_logUrl;
bool m_logUrlHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
enum class ServerStatus
{
NOT_SET,
BACKING_UP,
CONNECTION_LOST,
CREATING,
DELETING,
MODIFYING,
FAILED,
HEALTHY,
RUNNING,
RESTORING,
SETUP,
UNDER_MAINTENANCE,
UNHEALTHY,
TERMINATED
};
namespace ServerStatusMapper
{
AWS_OPSWORKSCM_API ServerStatus GetServerStatusForName(const Aws::String& name);
AWS_OPSWORKSCM_API Aws::String GetNameForServerStatus(ServerStatus value);
} // namespace ServerStatusMapper
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,203 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/EngineAttribute.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API StartMaintenanceRequest : public OpsWorksCMRequest
{
public:
StartMaintenanceRequest();
// 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 "StartMaintenance"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline StartMaintenanceRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline StartMaintenanceRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server on which to run maintenance. </p>
*/
inline StartMaintenanceRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline const Aws::Vector<EngineAttribute>& GetEngineAttributes() const{ return m_engineAttributes; }
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline bool EngineAttributesHasBeenSet() const { return m_engineAttributesHasBeenSet; }
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline void SetEngineAttributes(const Aws::Vector<EngineAttribute>& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = value; }
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline void SetEngineAttributes(Aws::Vector<EngineAttribute>&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes = std::move(value); }
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline StartMaintenanceRequest& WithEngineAttributes(const Aws::Vector<EngineAttribute>& value) { SetEngineAttributes(value); return *this;}
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline StartMaintenanceRequest& WithEngineAttributes(Aws::Vector<EngineAttribute>&& value) { SetEngineAttributes(std::move(value)); return *this;}
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline StartMaintenanceRequest& AddEngineAttributes(const EngineAttribute& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(value); return *this; }
/**
* <p>Engine attributes that are specific to the server on which you want to run
* maintenance.</p> <p class="title"> <b>Attributes accepted in a StartMaintenance
* request for Chef</b> </p> <ul> <li> <p> <code>CHEF_MAJOR_UPGRADE</code>: If a
* Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine
* attribute to a <code>StartMaintenance</code> request and set the value to
* <code>true</code> to upgrade the server to Chef Automate 2. For more
* information, see <a
* href="https://docs.aws.amazon.com/opsworks/latest/userguide/opscm-a2upgrade.html">Upgrade
* an AWS OpsWorks for Chef Automate Server to Chef Automate 2</a>. </p> </li>
* </ul>
*/
inline StartMaintenanceRequest& AddEngineAttributes(EngineAttribute&& value) { m_engineAttributesHasBeenSet = true; m_engineAttributes.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::Vector<EngineAttribute> m_engineAttributes;
bool m_engineAttributesHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API StartMaintenanceResult
{
public:
StartMaintenanceResult();
StartMaintenanceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartMaintenanceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to a <code>StartMaintenance</code> request. </p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>Contains the response to a <code>StartMaintenance</code> request. </p>
*/
inline void SetServer(const Server& value) { m_server = value; }
/**
* <p>Contains the response to a <code>StartMaintenance</code> request. </p>
*/
inline void SetServer(Server&& value) { m_server = std::move(value); }
/**
* <p>Contains the response to a <code>StartMaintenance</code> request. </p>
*/
inline StartMaintenanceResult& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>Contains the response to a <code>StartMaintenance</code> request. </p>
*/
inline StartMaintenanceResult& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
private:
Server m_server;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,184 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_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 OpsWorksCM
{
namespace Model
{
/**
* <p>A map that contains tag keys and tag values to attach to an AWS OpsWorks for
* Chef Automate or AWS OpsWorks for Puppet Enterprise server. Leading and trailing
* white spaces are trimmed from both the key and value. A maximum of 50
* user-applied tags is allowed for tag-supported AWS OpsWorks-CM
* resources.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/Tag">AWS API
* Reference</a></p>
*/
class AWS_OPSWORKSCM_API Tag
{
public:
Tag();
Tag(Aws::Utils::Json::JsonView jsonValue);
Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>A tag key, such as <code>Stage</code> or <code>Name</code>. A tag key cannot
* be empty. The key can be a maximum of 127 characters, and can contain only
* Unicode letters, numbers, or separators, or the following special characters:
* <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>An optional tag value, such as <code>Production</code> or
* <code>test-owcm-server</code>. The value can be a maximum of 255 characters, and
* contain only Unicode letters, numbers, or separators, or the following special
* characters: <code>+ - = . _ : /</code> </p>
*/
inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,219 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/opsworkscm/model/Tag.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API TagResourceRequest : public OpsWorksCMRequest
{
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;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of a resource to which you want to apply
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>A map that contains tag keys and tag values to attach to AWS OpsWorks-CM
* servers or backups.</p> <ul> <li> <p>The key cannot be empty.</p> </li> <li>
* <p>The key can be a maximum of 127 characters, and can contain only Unicode
* letters, numbers, or separators, or the following special characters: <code>+ -
* = . _ : /</code> </p> </li> <li> <p>The value can be a maximum 255 characters,
* and contain only Unicode letters, numbers, or separators, or the following
* special characters: <code>+ - = . _ : /</code> </p> </li> <li> <p>Leading and
* trailing white spaces are trimmed from both the key and value.</p> </li> <li>
* <p>A maximum of 50 user-applied tags is allowed for any AWS OpsWorks-CM server
* or backup.</p> </li> </ul>
*/
inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace OpsWorksCM
} // 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/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API UntagResourceRequest : public OpsWorksCMRequest
{
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;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Number (ARN) of a resource from which you want to remove
* tags. For example,
* <code>arn:aws:opsworks-cm:us-west-2:123456789012:server/test-owcm-server/EXAMPLE-66b0-4196-8274-d1a2bEXAMPLE</code>.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The keys of tags that you want to remove.</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The keys of tags that you want to remove.</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 OpsWorksCM
} // namespace Aws

View File

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

View File

@@ -0,0 +1,173 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API UpdateServerEngineAttributesRequest : public OpsWorksCMRequest
{
public:
UpdateServerEngineAttributesRequest();
// 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 "UpdateServerEngineAttributes"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the server to update. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server to update. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
/**
* <p>The name of the engine attribute to update. </p>
*/
inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
/**
* <p>The name of the engine attribute to update. </p>
*/
inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
/**
* <p>The name of the engine attribute to update. </p>
*/
inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
/**
* <p>The name of the engine attribute to update. </p>
*/
inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
/**
* <p>The name of the engine attribute to update. </p>
*/
inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
/**
* <p>The name of the engine attribute to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
/**
* <p>The name of the engine attribute to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
/**
* <p>The name of the engine attribute to update. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
/**
* <p>The value to set for the attribute. </p>
*/
inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
/**
* <p>The value to set for the attribute. </p>
*/
inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
/**
* <p>The value to set for the attribute. </p>
*/
inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
/**
* <p>The value to set for the attribute. </p>
*/
inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
/**
* <p>The value to set for the attribute. </p>
*/
inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
/**
* <p>The value to set for the attribute. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
/**
* <p>The value to set for the attribute. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
/**
* <p>The value to set for the attribute. </p>
*/
inline UpdateServerEngineAttributesRequest& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
private:
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_attributeName;
bool m_attributeNameHasBeenSet;
Aws::String m_attributeValue;
bool m_attributeValueHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API UpdateServerEngineAttributesResult
{
public:
UpdateServerEngineAttributesResult();
UpdateServerEngineAttributesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateServerEngineAttributesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to an <code>UpdateServerEngineAttributes</code>
* request. </p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>Contains the response to an <code>UpdateServerEngineAttributes</code>
* request. </p>
*/
inline void SetServer(const Server& value) { m_server = value; }
/**
* <p>Contains the response to an <code>UpdateServerEngineAttributes</code>
* request. </p>
*/
inline void SetServer(Server&& value) { m_server = std::move(value); }
/**
* <p>Contains the response to an <code>UpdateServerEngineAttributes</code>
* request. </p>
*/
inline UpdateServerEngineAttributesResult& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>Contains the response to an <code>UpdateServerEngineAttributes</code>
* request. </p>
*/
inline UpdateServerEngineAttributesResult& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
private:
Server m_server;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/OpsWorksCMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace OpsWorksCM
{
namespace Model
{
/**
*/
class AWS_OPSWORKSCM_API UpdateServerRequest : public OpsWorksCMRequest
{
public:
UpdateServerRequest();
// 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 "UpdateServer"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Setting DisableAutomatedBackup to <code>true</code> disables automated or
* scheduled backups. Automated backups are enabled by default. </p>
*/
inline bool GetDisableAutomatedBackup() const{ return m_disableAutomatedBackup; }
/**
* <p>Setting DisableAutomatedBackup to <code>true</code> disables automated or
* scheduled backups. Automated backups are enabled by default. </p>
*/
inline bool DisableAutomatedBackupHasBeenSet() const { return m_disableAutomatedBackupHasBeenSet; }
/**
* <p>Setting DisableAutomatedBackup to <code>true</code> disables automated or
* scheduled backups. Automated backups are enabled by default. </p>
*/
inline void SetDisableAutomatedBackup(bool value) { m_disableAutomatedBackupHasBeenSet = true; m_disableAutomatedBackup = value; }
/**
* <p>Setting DisableAutomatedBackup to <code>true</code> disables automated or
* scheduled backups. Automated backups are enabled by default. </p>
*/
inline UpdateServerRequest& WithDisableAutomatedBackup(bool value) { SetDisableAutomatedBackup(value); return *this;}
/**
* <p>Sets the number of automated backups that you want to keep. </p>
*/
inline int GetBackupRetentionCount() const{ return m_backupRetentionCount; }
/**
* <p>Sets the number of automated backups that you want to keep. </p>
*/
inline bool BackupRetentionCountHasBeenSet() const { return m_backupRetentionCountHasBeenSet; }
/**
* <p>Sets the number of automated backups that you want to keep. </p>
*/
inline void SetBackupRetentionCount(int value) { m_backupRetentionCountHasBeenSet = true; m_backupRetentionCount = value; }
/**
* <p>Sets the number of automated backups that you want to keep. </p>
*/
inline UpdateServerRequest& WithBackupRetentionCount(int value) { SetBackupRetentionCount(value); return *this;}
/**
* <p>The name of the server to update. </p>
*/
inline const Aws::String& GetServerName() const{ return m_serverName; }
/**
* <p>The name of the server to update. </p>
*/
inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(const Aws::String& value) { m_serverNameHasBeenSet = true; m_serverName = value; }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(Aws::String&& value) { m_serverNameHasBeenSet = true; m_serverName = std::move(value); }
/**
* <p>The name of the server to update. </p>
*/
inline void SetServerName(const char* value) { m_serverNameHasBeenSet = true; m_serverName.assign(value); }
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerRequest& WithServerName(const Aws::String& value) { SetServerName(value); return *this;}
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerRequest& WithServerName(Aws::String&& value) { SetServerName(std::move(value)); return *this;}
/**
* <p>The name of the server to update. </p>
*/
inline UpdateServerRequest& WithServerName(const char* value) { SetServerName(value); return *this;}
inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
inline UpdateServerRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
inline UpdateServerRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
inline UpdateServerRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
inline const Aws::String& GetPreferredBackupWindow() const{ return m_preferredBackupWindow; }
inline bool PreferredBackupWindowHasBeenSet() const { return m_preferredBackupWindowHasBeenSet; }
inline void SetPreferredBackupWindow(const Aws::String& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = value; }
inline void SetPreferredBackupWindow(Aws::String&& value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow = std::move(value); }
inline void SetPreferredBackupWindow(const char* value) { m_preferredBackupWindowHasBeenSet = true; m_preferredBackupWindow.assign(value); }
inline UpdateServerRequest& WithPreferredBackupWindow(const Aws::String& value) { SetPreferredBackupWindow(value); return *this;}
inline UpdateServerRequest& WithPreferredBackupWindow(Aws::String&& value) { SetPreferredBackupWindow(std::move(value)); return *this;}
inline UpdateServerRequest& WithPreferredBackupWindow(const char* value) { SetPreferredBackupWindow(value); return *this;}
private:
bool m_disableAutomatedBackup;
bool m_disableAutomatedBackupHasBeenSet;
int m_backupRetentionCount;
bool m_backupRetentionCountHasBeenSet;
Aws::String m_serverName;
bool m_serverNameHasBeenSet;
Aws::String m_preferredMaintenanceWindow;
bool m_preferredMaintenanceWindowHasBeenSet;
Aws::String m_preferredBackupWindow;
bool m_preferredBackupWindowHasBeenSet;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/opsworkscm/OpsWorksCM_EXPORTS.h>
#include <aws/opsworkscm/model/Server.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace OpsWorksCM
{
namespace Model
{
class AWS_OPSWORKSCM_API UpdateServerResult
{
public:
UpdateServerResult();
UpdateServerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateServerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Contains the response to a <code>UpdateServer</code> request. </p>
*/
inline const Server& GetServer() const{ return m_server; }
/**
* <p>Contains the response to a <code>UpdateServer</code> request. </p>
*/
inline void SetServer(const Server& value) { m_server = value; }
/**
* <p>Contains the response to a <code>UpdateServer</code> request. </p>
*/
inline void SetServer(Server&& value) { m_server = std::move(value); }
/**
* <p>Contains the response to a <code>UpdateServer</code> request. </p>
*/
inline UpdateServerResult& WithServer(const Server& value) { SetServer(value); return *this;}
/**
* <p>Contains the response to a <code>UpdateServer</code> request. </p>
*/
inline UpdateServerResult& WithServer(Server&& value) { SetServer(std::move(value)); return *this;}
private:
Server m_server;
};
} // namespace Model
} // namespace OpsWorksCM
} // namespace Aws