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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace WorkSpacesEndpoint
{
AWS_WORKSPACES_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace WorkSpacesEndpoint
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_WORKSPACES_API WorkSpacesErrorMarshaller : 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,83 @@
/**
* 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
namespace WorkSpaces
{
enum class WorkSpacesErrors
{
//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_PARAMETER_VALUES= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_RESOURCE_STATE,
OPERATION_IN_PROGRESS,
OPERATION_NOT_SUPPORTED,
RESOURCE_ALREADY_EXISTS,
RESOURCE_ASSOCIATED,
RESOURCE_CREATION_FAILED,
RESOURCE_LIMIT_EXCEEDED,
RESOURCE_UNAVAILABLE,
UNSUPPORTED_NETWORK_CONFIGURATION,
UNSUPPORTED_WORKSPACE_CONFIGURATION,
WORKSPACES_DEFAULT_ROLE_NOT_FOUND
};
class AWS_WORKSPACES_API WorkSpacesError : public Aws::Client::AWSError<WorkSpacesErrors>
{
public:
WorkSpacesError() {}
WorkSpacesError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<WorkSpacesErrors>(rhs) {}
WorkSpacesError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<WorkSpacesErrors>(rhs) {}
WorkSpacesError(const Aws::Client::AWSError<WorkSpacesErrors>& rhs) : Aws::Client::AWSError<WorkSpacesErrors>(rhs) {}
WorkSpacesError(Aws::Client::AWSError<WorkSpacesErrors>&& rhs) : Aws::Client::AWSError<WorkSpacesErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace WorkSpacesErrorMapper
{
AWS_WORKSPACES_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace WorkSpaces
{
class AWS_WORKSPACES_API WorkSpacesRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~WorkSpacesRequest () {}
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, "2015-04-08"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace WorkSpaces
} // 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_WORKSPACES_EXPORTS
#define AWS_WORKSPACES_API __declspec(dllexport)
#else
#define AWS_WORKSPACES_API __declspec(dllimport)
#endif /* AWS_WORKSPACES_EXPORTS */
#else
#define AWS_WORKSPACES_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_WORKSPACES_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class AccessPropertyValue
{
NOT_SET,
ALLOW,
DENY
};
namespace AccessPropertyValueMapper
{
AWS_WORKSPACES_API AccessPropertyValue GetAccessPropertyValueForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForAccessPropertyValue(AccessPropertyValue value);
} // namespace AccessPropertyValueMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,312 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/DedicatedTenancyModificationStateEnum.h>
#include <aws/workspaces/model/DedicatedTenancySupportResultEnum.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>Describes a modification to the configuration of Bring Your Own License
* (BYOL) for the specified account. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/AccountModification">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API AccountModification
{
public:
AccountModification();
AccountModification(Aws::Utils::Json::JsonView jsonValue);
AccountModification& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline const DedicatedTenancyModificationStateEnum& GetModificationState() const{ return m_modificationState; }
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline bool ModificationStateHasBeenSet() const { return m_modificationStateHasBeenSet; }
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline void SetModificationState(const DedicatedTenancyModificationStateEnum& value) { m_modificationStateHasBeenSet = true; m_modificationState = value; }
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline void SetModificationState(DedicatedTenancyModificationStateEnum&& value) { m_modificationStateHasBeenSet = true; m_modificationState = std::move(value); }
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline AccountModification& WithModificationState(const DedicatedTenancyModificationStateEnum& value) { SetModificationState(value); return *this;}
/**
* <p>The state of the modification to the configuration of BYOL.</p>
*/
inline AccountModification& WithModificationState(DedicatedTenancyModificationStateEnum&& value) { SetModificationState(std::move(value)); return *this;}
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline const DedicatedTenancySupportResultEnum& GetDedicatedTenancySupport() const{ return m_dedicatedTenancySupport; }
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline bool DedicatedTenancySupportHasBeenSet() const { return m_dedicatedTenancySupportHasBeenSet; }
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline void SetDedicatedTenancySupport(const DedicatedTenancySupportResultEnum& value) { m_dedicatedTenancySupportHasBeenSet = true; m_dedicatedTenancySupport = value; }
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline void SetDedicatedTenancySupport(DedicatedTenancySupportResultEnum&& value) { m_dedicatedTenancySupportHasBeenSet = true; m_dedicatedTenancySupport = std::move(value); }
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline AccountModification& WithDedicatedTenancySupport(const DedicatedTenancySupportResultEnum& value) { SetDedicatedTenancySupport(value); return *this;}
/**
* <p>The status of BYOL (whether BYOL is being enabled or disabled).</p>
*/
inline AccountModification& WithDedicatedTenancySupport(DedicatedTenancySupportResultEnum&& value) { SetDedicatedTenancySupport(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline const Aws::String& GetDedicatedTenancyManagementCidrRange() const{ return m_dedicatedTenancyManagementCidrRange; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline bool DedicatedTenancyManagementCidrRangeHasBeenSet() const { return m_dedicatedTenancyManagementCidrRangeHasBeenSet; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const Aws::String& value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange = value; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(Aws::String&& value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange = std::move(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const char* value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange.assign(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline AccountModification& WithDedicatedTenancyManagementCidrRange(const Aws::String& value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline AccountModification& WithDedicatedTenancyManagementCidrRange(Aws::String&& value) { SetDedicatedTenancyManagementCidrRange(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface used for the account.</p>
*/
inline AccountModification& WithDedicatedTenancyManagementCidrRange(const char* value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline AccountModification& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The timestamp when the modification of the BYOL configuration was
* started.</p>
*/
inline AccountModification& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline AccountModification& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline AccountModification& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that is returned if the configuration of BYOL cannot be
* modified.</p>
*/
inline AccountModification& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline AccountModification& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline AccountModification& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The text of the error message that is returned if the configuration of BYOL
* cannot be modified.</p>
*/
inline AccountModification& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
DedicatedTenancyModificationStateEnum m_modificationState;
bool m_modificationStateHasBeenSet;
DedicatedTenancySupportResultEnum m_dedicatedTenancySupport;
bool m_dedicatedTenancySupportHasBeenSet;
Aws::String m_dedicatedTenancyManagementCidrRange;
bool m_dedicatedTenancyManagementCidrRangeHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API AssociateIpGroupsRequest : public WorkSpacesRequest
{
public:
AssociateIpGroupsRequest();
// 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 "AssociateIpGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory.</p>
*/
inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
/**
* <p>The identifier of the directory.</p>
*/
inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline AssociateIpGroupsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline AssociateIpGroupsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline AssociateIpGroupsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline AssociateIpGroupsRequest& WithGroupIds(const Aws::Vector<Aws::String>& value) { SetGroupIds(value); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline AssociateIpGroupsRequest& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline AssociateIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline AssociateIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline AssociateIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
private:
Aws::String m_directoryId;
bool m_directoryIdHasBeenSet;
Aws::Vector<Aws::String> m_groupIds;
bool m_groupIdsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API AssociateIpGroupsResult
{
public:
AssociateIpGroupsResult();
AssociateIpGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateIpGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/IpRuleItem.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API AuthorizeIpRulesRequest : public WorkSpacesRequest
{
public:
AuthorizeIpRulesRequest();
// 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 "AuthorizeIpRules"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the group.</p>
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* <p>The identifier of the group.</p>
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* <p>The identifier of the group.</p>
*/
inline AuthorizeIpRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* <p>The identifier of the group.</p>
*/
inline AuthorizeIpRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* <p>The identifier of the group.</p>
*/
inline AuthorizeIpRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline const Aws::Vector<IpRuleItem>& GetUserRules() const{ return m_userRules; }
/**
* <p>The rules to add to the group.</p>
*/
inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
/**
* <p>The rules to add to the group.</p>
*/
inline void SetUserRules(const Aws::Vector<IpRuleItem>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
/**
* <p>The rules to add to the group.</p>
*/
inline void SetUserRules(Aws::Vector<IpRuleItem>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
/**
* <p>The rules to add to the group.</p>
*/
inline AuthorizeIpRulesRequest& WithUserRules(const Aws::Vector<IpRuleItem>& value) { SetUserRules(value); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline AuthorizeIpRulesRequest& WithUserRules(Aws::Vector<IpRuleItem>&& value) { SetUserRules(std::move(value)); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline AuthorizeIpRulesRequest& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
/**
* <p>The rules to add to the group.</p>
*/
inline AuthorizeIpRulesRequest& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
Aws::Vector<IpRuleItem> m_userRules;
bool m_userRulesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API AuthorizeIpRulesResult
{
public:
AuthorizeIpRulesResult();
AuthorizeIpRulesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AuthorizeIpRulesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/ReconnectEnum.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>Describes an Amazon WorkSpaces client.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ClientProperties">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API ClientProperties
{
public:
ClientProperties();
ClientProperties(Aws::Utils::Json::JsonView jsonValue);
ClientProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline const ReconnectEnum& GetReconnectEnabled() const{ return m_reconnectEnabled; }
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline bool ReconnectEnabledHasBeenSet() const { return m_reconnectEnabledHasBeenSet; }
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline void SetReconnectEnabled(const ReconnectEnum& value) { m_reconnectEnabledHasBeenSet = true; m_reconnectEnabled = value; }
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline void SetReconnectEnabled(ReconnectEnum&& value) { m_reconnectEnabledHasBeenSet = true; m_reconnectEnabled = std::move(value); }
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline ClientProperties& WithReconnectEnabled(const ReconnectEnum& value) { SetReconnectEnabled(value); return *this;}
/**
* <p>Specifies whether users can cache their credentials on the Amazon WorkSpaces
* client. When enabled, users can choose to reconnect to their WorkSpaces without
* re-entering their credentials. </p>
*/
inline ClientProperties& WithReconnectEnabled(ReconnectEnum&& value) { SetReconnectEnabled(std::move(value)); return *this;}
private:
ReconnectEnum m_reconnectEnabled;
bool m_reconnectEnabledHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/ClientProperties.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>Information about the Amazon WorkSpaces client.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ClientPropertiesResult">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API ClientPropertiesResult
{
public:
ClientPropertiesResult();
ClientPropertiesResult(Aws::Utils::Json::JsonView jsonValue);
ClientPropertiesResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline ClientPropertiesResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline ClientPropertiesResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The resource identifier, in the form of a directory ID.</p>
*/
inline ClientPropertiesResult& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline const ClientProperties& GetClientProperties() const{ return m_clientProperties; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline void SetClientProperties(const ClientProperties& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = value; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline void SetClientProperties(ClientProperties&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::move(value); }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline ClientPropertiesResult& WithClientProperties(const ClientProperties& value) { SetClientProperties(value); return *this;}
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline ClientPropertiesResult& WithClientProperties(ClientProperties&& value) { SetClientProperties(std::move(value)); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
ClientProperties m_clientProperties;
bool m_clientPropertiesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class Compute
{
NOT_SET,
VALUE,
STANDARD,
PERFORMANCE,
POWER,
GRAPHICS,
POWERPRO,
GRAPHICSPRO
};
namespace ComputeMapper
{
AWS_WORKSPACES_API Compute GetComputeForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForCompute(Compute value);
} // namespace ComputeMapper
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/Compute.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>Describes the compute type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ComputeType">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API ComputeType
{
public:
ComputeType();
ComputeType(Aws::Utils::Json::JsonView jsonValue);
ComputeType& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The compute type.</p>
*/
inline const Compute& GetName() const{ return m_name; }
/**
* <p>The compute type.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The compute type.</p>
*/
inline void SetName(const Compute& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The compute type.</p>
*/
inline void SetName(Compute&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The compute type.</p>
*/
inline ComputeType& WithName(const Compute& value) { SetName(value); return *this;}
/**
* <p>The compute type.</p>
*/
inline ComputeType& WithName(Compute&& value) { SetName(std::move(value)); return *this;}
private:
Compute m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class ConnectionState
{
NOT_SET,
CONNECTED,
DISCONNECTED,
UNKNOWN
};
namespace ConnectionStateMapper
{
AWS_WORKSPACES_API ConnectionState GetConnectionStateForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForConnectionState(ConnectionState value);
} // namespace ConnectionStateMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,263 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API CopyWorkspaceImageRequest : public WorkSpacesRequest
{
public:
CopyWorkspaceImageRequest();
// 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 "CopyWorkspaceImage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the image.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the image.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the image.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the image.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the image.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A description of the image.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the image.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the image.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the image.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the image.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the image.</p>
*/
inline CopyWorkspaceImageRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The identifier of the source image.</p>
*/
inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; }
/**
* <p>The identifier of the source image.</p>
*/
inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; }
/**
* <p>The identifier of the source image.</p>
*/
inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; }
/**
* <p>The identifier of the source image.</p>
*/
inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); }
/**
* <p>The identifier of the source image.</p>
*/
inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); }
/**
* <p>The identifier of the source image.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;}
/**
* <p>The identifier of the source image.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the source image.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;}
/**
* <p>The identifier of the source Region.</p>
*/
inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; }
/**
* <p>The identifier of the source Region.</p>
*/
inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
/**
* <p>The identifier of the source Region.</p>
*/
inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; }
/**
* <p>The identifier of the source Region.</p>
*/
inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); }
/**
* <p>The identifier of the source Region.</p>
*/
inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); }
/**
* <p>The identifier of the source Region.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;}
/**
* <p>The identifier of the source Region.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;}
/**
* <p>The identifier of the source Region.</p>
*/
inline CopyWorkspaceImageRequest& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;}
/**
* <p>The tags for the image.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the image.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags for the image.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags for the image.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags for the image.</p>
*/
inline CopyWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the image.</p>
*/
inline CopyWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the image.</p>
*/
inline CopyWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags for the image.</p>
*/
inline CopyWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_sourceImageId;
bool m_sourceImageIdHasBeenSet;
Aws::String m_sourceRegion;
bool m_sourceRegionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API CopyWorkspaceImageResult
{
public:
CopyWorkspaceImageResult();
CopyWorkspaceImageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CopyWorkspaceImageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the image.</p>
*/
inline const Aws::String& GetImageId() const{ return m_imageId; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const Aws::String& value) { m_imageId = value; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const char* value) { m_imageId.assign(value); }
/**
* <p>The identifier of the image.</p>
*/
inline CopyWorkspaceImageResult& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline CopyWorkspaceImageResult& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline CopyWorkspaceImageResult& WithImageId(const char* value) { SetImageId(value); return *this;}
private:
Aws::String m_imageId;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,220 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/IpRuleItem.h>
#include <aws/workspaces/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API CreateIpGroupRequest : public WorkSpacesRequest
{
public:
CreateIpGroupRequest();
// 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 "CreateIpGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The name of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The name of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The description of the group.</p>
*/
inline const Aws::String& GetGroupDesc() const{ return m_groupDesc; }
/**
* <p>The description of the group.</p>
*/
inline bool GroupDescHasBeenSet() const { return m_groupDescHasBeenSet; }
/**
* <p>The description of the group.</p>
*/
inline void SetGroupDesc(const Aws::String& value) { m_groupDescHasBeenSet = true; m_groupDesc = value; }
/**
* <p>The description of the group.</p>
*/
inline void SetGroupDesc(Aws::String&& value) { m_groupDescHasBeenSet = true; m_groupDesc = std::move(value); }
/**
* <p>The description of the group.</p>
*/
inline void SetGroupDesc(const char* value) { m_groupDescHasBeenSet = true; m_groupDesc.assign(value); }
/**
* <p>The description of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupDesc(const Aws::String& value) { SetGroupDesc(value); return *this;}
/**
* <p>The description of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupDesc(Aws::String&& value) { SetGroupDesc(std::move(value)); return *this;}
/**
* <p>The description of the group.</p>
*/
inline CreateIpGroupRequest& WithGroupDesc(const char* value) { SetGroupDesc(value); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline const Aws::Vector<IpRuleItem>& GetUserRules() const{ return m_userRules; }
/**
* <p>The rules to add to the group.</p>
*/
inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
/**
* <p>The rules to add to the group.</p>
*/
inline void SetUserRules(const Aws::Vector<IpRuleItem>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
/**
* <p>The rules to add to the group.</p>
*/
inline void SetUserRules(Aws::Vector<IpRuleItem>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
/**
* <p>The rules to add to the group.</p>
*/
inline CreateIpGroupRequest& WithUserRules(const Aws::Vector<IpRuleItem>& value) { SetUserRules(value); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline CreateIpGroupRequest& WithUserRules(Aws::Vector<IpRuleItem>&& value) { SetUserRules(std::move(value)); return *this;}
/**
* <p>The rules to add to the group.</p>
*/
inline CreateIpGroupRequest& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
/**
* <p>The rules to add to the group.</p>
*/
inline CreateIpGroupRequest& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline CreateIpGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline CreateIpGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline CreateIpGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline CreateIpGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_groupDesc;
bool m_groupDescHasBeenSet;
Aws::Vector<IpRuleItem> m_userRules;
bool m_userRulesHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API CreateIpGroupResult
{
public:
CreateIpGroupResult();
CreateIpGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateIpGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the group.</p>
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(const Aws::String& value) { m_groupId = value; }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(Aws::String&& value) { m_groupId = std::move(value); }
/**
* <p>The identifier of the group.</p>
*/
inline void SetGroupId(const char* value) { m_groupId.assign(value); }
/**
* <p>The identifier of the group.</p>
*/
inline CreateIpGroupResult& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* <p>The identifier of the group.</p>
*/
inline CreateIpGroupResult& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* <p>The identifier of the group.</p>
*/
inline CreateIpGroupResult& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_groupId;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,163 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API CreateTagsRequest : public WorkSpacesRequest
{
public:
CreateTagsRequest();
// 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 "CreateTags"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline CreateTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline CreateTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline CreateTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline CreateTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline CreateTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline CreateTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags. If you want
* to add new tags to a set of existing tags, you must submit all of the existing
* tags along with the new ones.</p>
*/
inline CreateTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API CreateTagsResult
{
public:
CreateTagsResult();
CreateTagsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateTagsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/WorkspaceRequest.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API CreateWorkspacesRequest : public WorkSpacesRequest
{
public:
CreateWorkspacesRequest();
// 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 "CreateWorkspaces"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline const Aws::Vector<WorkspaceRequest>& GetWorkspaces() const{ return m_workspaces; }
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline bool WorkspacesHasBeenSet() const { return m_workspacesHasBeenSet; }
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetWorkspaces(const Aws::Vector<WorkspaceRequest>& value) { m_workspacesHasBeenSet = true; m_workspaces = value; }
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetWorkspaces(Aws::Vector<WorkspaceRequest>&& value) { m_workspacesHasBeenSet = true; m_workspaces = std::move(value); }
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline CreateWorkspacesRequest& WithWorkspaces(const Aws::Vector<WorkspaceRequest>& value) { SetWorkspaces(value); return *this;}
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline CreateWorkspacesRequest& WithWorkspaces(Aws::Vector<WorkspaceRequest>&& value) { SetWorkspaces(std::move(value)); return *this;}
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline CreateWorkspacesRequest& AddWorkspaces(const WorkspaceRequest& value) { m_workspacesHasBeenSet = true; m_workspaces.push_back(value); return *this; }
/**
* <p>The WorkSpaces to create. You can specify up to 25 WorkSpaces.</p>
*/
inline CreateWorkspacesRequest& AddWorkspaces(WorkspaceRequest&& value) { m_workspacesHasBeenSet = true; m_workspaces.push_back(std::move(value)); return *this; }
private:
Aws::Vector<WorkspaceRequest> m_workspaces;
bool m_workspacesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/FailedCreateWorkspaceRequest.h>
#include <aws/workspaces/model/Workspace.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API CreateWorkspacesResult
{
public:
CreateWorkspacesResult();
CreateWorkspacesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateWorkspacesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline const Aws::Vector<FailedCreateWorkspaceRequest>& GetFailedRequests() const{ return m_failedRequests; }
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline void SetFailedRequests(const Aws::Vector<FailedCreateWorkspaceRequest>& value) { m_failedRequests = value; }
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline void SetFailedRequests(Aws::Vector<FailedCreateWorkspaceRequest>&& value) { m_failedRequests = std::move(value); }
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline CreateWorkspacesResult& WithFailedRequests(const Aws::Vector<FailedCreateWorkspaceRequest>& value) { SetFailedRequests(value); return *this;}
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline CreateWorkspacesResult& WithFailedRequests(Aws::Vector<FailedCreateWorkspaceRequest>&& value) { SetFailedRequests(std::move(value)); return *this;}
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline CreateWorkspacesResult& AddFailedRequests(const FailedCreateWorkspaceRequest& value) { m_failedRequests.push_back(value); return *this; }
/**
* <p>Information about the WorkSpaces that could not be created.</p>
*/
inline CreateWorkspacesResult& AddFailedRequests(FailedCreateWorkspaceRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; }
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline const Aws::Vector<Workspace>& GetPendingRequests() const{ return m_pendingRequests; }
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline void SetPendingRequests(const Aws::Vector<Workspace>& value) { m_pendingRequests = value; }
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline void SetPendingRequests(Aws::Vector<Workspace>&& value) { m_pendingRequests = std::move(value); }
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline CreateWorkspacesResult& WithPendingRequests(const Aws::Vector<Workspace>& value) { SetPendingRequests(value); return *this;}
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline CreateWorkspacesResult& WithPendingRequests(Aws::Vector<Workspace>&& value) { SetPendingRequests(std::move(value)); return *this;}
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline CreateWorkspacesResult& AddPendingRequests(const Workspace& value) { m_pendingRequests.push_back(value); return *this; }
/**
* <p>Information about the WorkSpaces that were created.</p> <p>Because this
* operation is asynchronous, the identifier returned is not immediately available
* for use with other operations. For example, if you call
* <a>DescribeWorkspaces</a> before the WorkSpace is created, the information
* returned can be incomplete.</p>
*/
inline CreateWorkspacesResult& AddPendingRequests(Workspace&& value) { m_pendingRequests.push_back(std::move(value)); return *this; }
private:
Aws::Vector<FailedCreateWorkspaceRequest> m_failedRequests;
Aws::Vector<Workspace> m_pendingRequests;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class DedicatedTenancyModificationStateEnum
{
NOT_SET,
PENDING,
COMPLETED,
FAILED
};
namespace DedicatedTenancyModificationStateEnumMapper
{
AWS_WORKSPACES_API DedicatedTenancyModificationStateEnum GetDedicatedTenancyModificationStateEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForDedicatedTenancyModificationStateEnum(DedicatedTenancyModificationStateEnum value);
} // namespace DedicatedTenancyModificationStateEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class DedicatedTenancySupportEnum
{
NOT_SET,
ENABLED
};
namespace DedicatedTenancySupportEnumMapper
{
AWS_WORKSPACES_API DedicatedTenancySupportEnum GetDedicatedTenancySupportEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForDedicatedTenancySupportEnum(DedicatedTenancySupportEnum value);
} // namespace DedicatedTenancySupportEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class DedicatedTenancySupportResultEnum
{
NOT_SET,
ENABLED,
DISABLED
};
namespace DedicatedTenancySupportResultEnumMapper
{
AWS_WORKSPACES_API DedicatedTenancySupportResultEnum GetDedicatedTenancySupportResultEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForDedicatedTenancySupportResultEnum(DedicatedTenancySupportResultEnum value);
} // namespace DedicatedTenancySupportResultEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,319 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes the default values that are used to create WorkSpaces. For more
* information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/update-directory-details.html">Update
* Directory Details for Your WorkSpaces</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DefaultWorkspaceCreationProperties">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API DefaultWorkspaceCreationProperties
{
public:
DefaultWorkspaceCreationProperties();
DefaultWorkspaceCreationProperties(Aws::Utils::Json::JsonView jsonValue);
DefaultWorkspaceCreationProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies whether the directory is enabled for Amazon WorkDocs.</p>
*/
inline bool GetEnableWorkDocs() const{ return m_enableWorkDocs; }
/**
* <p>Specifies whether the directory is enabled for Amazon WorkDocs.</p>
*/
inline bool EnableWorkDocsHasBeenSet() const { return m_enableWorkDocsHasBeenSet; }
/**
* <p>Specifies whether the directory is enabled for Amazon WorkDocs.</p>
*/
inline void SetEnableWorkDocs(bool value) { m_enableWorkDocsHasBeenSet = true; m_enableWorkDocs = value; }
/**
* <p>Specifies whether the directory is enabled for Amazon WorkDocs.</p>
*/
inline DefaultWorkspaceCreationProperties& WithEnableWorkDocs(bool value) { SetEnableWorkDocs(value); return *this;}
/**
* <p>Specifies whether to automatically assign an Elastic public IP address to
* WorkSpaces in this directory by default. If enabled, the Elastic public IP
* address allows outbound internet access from your WorkSpaces when youre using
* an internet gateway in the Amazon VPC in which your WorkSpaces are located. If
* you're using a Network Address Translation (NAT) gateway for outbound internet
* access from your VPC, or if your WorkSpaces are in public subnets and you
* manually assign them Elastic IP addresses, you should disable this setting. This
* setting applies to new WorkSpaces that you launch or to existing WorkSpaces that
* you rebuild. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html">
* Configure a VPC for Amazon WorkSpaces</a>.</p>
*/
inline bool GetEnableInternetAccess() const{ return m_enableInternetAccess; }
/**
* <p>Specifies whether to automatically assign an Elastic public IP address to
* WorkSpaces in this directory by default. If enabled, the Elastic public IP
* address allows outbound internet access from your WorkSpaces when youre using
* an internet gateway in the Amazon VPC in which your WorkSpaces are located. If
* you're using a Network Address Translation (NAT) gateway for outbound internet
* access from your VPC, or if your WorkSpaces are in public subnets and you
* manually assign them Elastic IP addresses, you should disable this setting. This
* setting applies to new WorkSpaces that you launch or to existing WorkSpaces that
* you rebuild. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html">
* Configure a VPC for Amazon WorkSpaces</a>.</p>
*/
inline bool EnableInternetAccessHasBeenSet() const { return m_enableInternetAccessHasBeenSet; }
/**
* <p>Specifies whether to automatically assign an Elastic public IP address to
* WorkSpaces in this directory by default. If enabled, the Elastic public IP
* address allows outbound internet access from your WorkSpaces when youre using
* an internet gateway in the Amazon VPC in which your WorkSpaces are located. If
* you're using a Network Address Translation (NAT) gateway for outbound internet
* access from your VPC, or if your WorkSpaces are in public subnets and you
* manually assign them Elastic IP addresses, you should disable this setting. This
* setting applies to new WorkSpaces that you launch or to existing WorkSpaces that
* you rebuild. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html">
* Configure a VPC for Amazon WorkSpaces</a>.</p>
*/
inline void SetEnableInternetAccess(bool value) { m_enableInternetAccessHasBeenSet = true; m_enableInternetAccess = value; }
/**
* <p>Specifies whether to automatically assign an Elastic public IP address to
* WorkSpaces in this directory by default. If enabled, the Elastic public IP
* address allows outbound internet access from your WorkSpaces when youre using
* an internet gateway in the Amazon VPC in which your WorkSpaces are located. If
* you're using a Network Address Translation (NAT) gateway for outbound internet
* access from your VPC, or if your WorkSpaces are in public subnets and you
* manually assign them Elastic IP addresses, you should disable this setting. This
* setting applies to new WorkSpaces that you launch or to existing WorkSpaces that
* you rebuild. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html">
* Configure a VPC for Amazon WorkSpaces</a>.</p>
*/
inline DefaultWorkspaceCreationProperties& WithEnableInternetAccess(bool value) { SetEnableInternetAccess(value); return *this;}
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline const Aws::String& GetDefaultOu() const{ return m_defaultOu; }
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline bool DefaultOuHasBeenSet() const { return m_defaultOuHasBeenSet; }
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline void SetDefaultOu(const Aws::String& value) { m_defaultOuHasBeenSet = true; m_defaultOu = value; }
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline void SetDefaultOu(Aws::String&& value) { m_defaultOuHasBeenSet = true; m_defaultOu = std::move(value); }
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline void SetDefaultOu(const char* value) { m_defaultOuHasBeenSet = true; m_defaultOu.assign(value); }
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline DefaultWorkspaceCreationProperties& WithDefaultOu(const Aws::String& value) { SetDefaultOu(value); return *this;}
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline DefaultWorkspaceCreationProperties& WithDefaultOu(Aws::String&& value) { SetDefaultOu(std::move(value)); return *this;}
/**
* <p>The organizational unit (OU) in the directory for the WorkSpace machine
* accounts.</p>
*/
inline DefaultWorkspaceCreationProperties& WithDefaultOu(const char* value) { SetDefaultOu(value); return *this;}
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline const Aws::String& GetCustomSecurityGroupId() const{ return m_customSecurityGroupId; }
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline bool CustomSecurityGroupIdHasBeenSet() const { return m_customSecurityGroupIdHasBeenSet; }
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline void SetCustomSecurityGroupId(const Aws::String& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = value; }
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline void SetCustomSecurityGroupId(Aws::String&& value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId = std::move(value); }
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline void SetCustomSecurityGroupId(const char* value) { m_customSecurityGroupIdHasBeenSet = true; m_customSecurityGroupId.assign(value); }
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(const Aws::String& value) { SetCustomSecurityGroupId(value); return *this;}
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(Aws::String&& value) { SetCustomSecurityGroupId(std::move(value)); return *this;}
/**
* <p>The identifier of the default security group to apply to WorkSpaces when they
* are created. For more information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html">
* Security Groups for Your WorkSpaces</a>.</p>
*/
inline DefaultWorkspaceCreationProperties& WithCustomSecurityGroupId(const char* value) { SetCustomSecurityGroupId(value); return *this;}
/**
* <p>Specifies whether WorkSpace users are local administrators on their
* WorkSpaces.</p>
*/
inline bool GetUserEnabledAsLocalAdministrator() const{ return m_userEnabledAsLocalAdministrator; }
/**
* <p>Specifies whether WorkSpace users are local administrators on their
* WorkSpaces.</p>
*/
inline bool UserEnabledAsLocalAdministratorHasBeenSet() const { return m_userEnabledAsLocalAdministratorHasBeenSet; }
/**
* <p>Specifies whether WorkSpace users are local administrators on their
* WorkSpaces.</p>
*/
inline void SetUserEnabledAsLocalAdministrator(bool value) { m_userEnabledAsLocalAdministratorHasBeenSet = true; m_userEnabledAsLocalAdministrator = value; }
/**
* <p>Specifies whether WorkSpace users are local administrators on their
* WorkSpaces.</p>
*/
inline DefaultWorkspaceCreationProperties& WithUserEnabledAsLocalAdministrator(bool value) { SetUserEnabledAsLocalAdministrator(value); return *this;}
/**
* <p>Specifies whether maintenance mode is enabled for WorkSpaces. For more
* information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html">WorkSpace
* Maintenance</a>.</p>
*/
inline bool GetEnableMaintenanceMode() const{ return m_enableMaintenanceMode; }
/**
* <p>Specifies whether maintenance mode is enabled for WorkSpaces. For more
* information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html">WorkSpace
* Maintenance</a>.</p>
*/
inline bool EnableMaintenanceModeHasBeenSet() const { return m_enableMaintenanceModeHasBeenSet; }
/**
* <p>Specifies whether maintenance mode is enabled for WorkSpaces. For more
* information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html">WorkSpace
* Maintenance</a>.</p>
*/
inline void SetEnableMaintenanceMode(bool value) { m_enableMaintenanceModeHasBeenSet = true; m_enableMaintenanceMode = value; }
/**
* <p>Specifies whether maintenance mode is enabled for WorkSpaces. For more
* information, see <a
* href="https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html">WorkSpace
* Maintenance</a>.</p>
*/
inline DefaultWorkspaceCreationProperties& WithEnableMaintenanceMode(bool value) { SetEnableMaintenanceMode(value); return *this;}
private:
bool m_enableWorkDocs;
bool m_enableWorkDocsHasBeenSet;
bool m_enableInternetAccess;
bool m_enableInternetAccessHasBeenSet;
Aws::String m_defaultOu;
bool m_defaultOuHasBeenSet;
Aws::String m_customSecurityGroupId;
bool m_customSecurityGroupIdHasBeenSet;
bool m_userEnabledAsLocalAdministrator;
bool m_userEnabledAsLocalAdministratorHasBeenSet;
bool m_enableMaintenanceMode;
bool m_enableMaintenanceModeHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DeleteIpGroupRequest : public WorkSpacesRequest
{
public:
DeleteIpGroupRequest();
// 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 "DeleteIpGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the IP access control group.</p>
*/
inline const Aws::String& GetGroupId() const{ return m_groupId; }
/**
* <p>The identifier of the IP access control group.</p>
*/
inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
/**
* <p>The identifier of the IP access control group.</p>
*/
inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
/**
* <p>The identifier of the IP access control group.</p>
*/
inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
/**
* <p>The identifier of the IP access control group.</p>
*/
inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
/**
* <p>The identifier of the IP access control group.</p>
*/
inline DeleteIpGroupRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
/**
* <p>The identifier of the IP access control group.</p>
*/
inline DeleteIpGroupRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
/**
* <p>The identifier of the IP access control group.</p>
*/
inline DeleteIpGroupRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
private:
Aws::String m_groupId;
bool m_groupIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DeleteIpGroupResult
{
public:
DeleteIpGroupResult();
DeleteIpGroupResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteIpGroupResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DeleteTagsRequest : public WorkSpacesRequest
{
public:
DeleteTagsRequest();
// 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 "DeleteTags"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DeleteTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DeleteTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DeleteTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The tag keys.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The tag keys.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The tag keys.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The tag keys.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The tag keys.</p>
*/
inline DeleteTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The tag keys.</p>
*/
inline DeleteTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The tag keys.</p>
*/
inline DeleteTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The tag keys.</p>
*/
inline DeleteTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The tag keys.</p>
*/
inline DeleteTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DeleteTagsResult
{
public:
DeleteTagsResult();
DeleteTagsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteTagsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DeleteWorkspaceImageRequest : public WorkSpacesRequest
{
public:
DeleteWorkspaceImageRequest();
// 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 "DeleteWorkspaceImage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the image.</p>
*/
inline const Aws::String& GetImageId() const{ return m_imageId; }
/**
* <p>The identifier of the image.</p>
*/
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
/**
* <p>The identifier of the image.</p>
*/
inline DeleteWorkspaceImageRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DeleteWorkspaceImageRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DeleteWorkspaceImageRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
private:
Aws::String m_imageId;
bool m_imageIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DeleteWorkspaceImageResult
{
public:
DeleteWorkspaceImageResult();
DeleteWorkspaceImageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteWorkspaceImageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DeregisterWorkspaceDirectoryRequest : public WorkSpacesRequest
{
public:
DeregisterWorkspaceDirectoryRequest();
// 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 "DeregisterWorkspaceDirectory"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline DeregisterWorkspaceDirectoryRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline DeregisterWorkspaceDirectoryRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory. If any WorkSpaces are registered to this
* directory, you must remove them before you deregister the directory, or you will
* receive an OperationNotSupportedException error.</p>
*/
inline DeregisterWorkspaceDirectoryRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
private:
Aws::String m_directoryId;
bool m_directoryIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DeregisterWorkspaceDirectoryResult
{
public:
DeregisterWorkspaceDirectoryResult();
DeregisterWorkspaceDirectoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeregisterWorkspaceDirectoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeAccountModificationsRequest : public WorkSpacesRequest
{
public:
DescribeAccountModificationsRequest();
// 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 "DescribeAccountModifications"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeAccountModificationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeAccountModificationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeAccountModificationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/AccountModification.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeAccountModificationsResult
{
public:
DescribeAccountModificationsResult();
DescribeAccountModificationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAccountModificationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline const Aws::Vector<AccountModification>& GetAccountModifications() const{ return m_accountModifications; }
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline void SetAccountModifications(const Aws::Vector<AccountModification>& value) { m_accountModifications = value; }
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline void SetAccountModifications(Aws::Vector<AccountModification>&& value) { m_accountModifications = std::move(value); }
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline DescribeAccountModificationsResult& WithAccountModifications(const Aws::Vector<AccountModification>& value) { SetAccountModifications(value); return *this;}
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline DescribeAccountModificationsResult& WithAccountModifications(Aws::Vector<AccountModification>&& value) { SetAccountModifications(std::move(value)); return *this;}
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline DescribeAccountModificationsResult& AddAccountModifications(const AccountModification& value) { m_accountModifications.push_back(value); return *this; }
/**
* <p>The list of modifications to the configuration of BYOL.</p>
*/
inline DescribeAccountModificationsResult& AddAccountModifications(AccountModification&& value) { m_accountModifications.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeAccountModificationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeAccountModificationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeAccountModificationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AccountModification> m_accountModifications;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeAccountRequest : public WorkSpacesRequest
{
public:
DescribeAccountRequest();
// 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 "DescribeAccount"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/DedicatedTenancySupportResultEnum.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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeAccountResult
{
public:
DescribeAccountResult();
DescribeAccountResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAccountResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of BYOL (whether BYOL is enabled or disabled).</p>
*/
inline const DedicatedTenancySupportResultEnum& GetDedicatedTenancySupport() const{ return m_dedicatedTenancySupport; }
/**
* <p>The status of BYOL (whether BYOL is enabled or disabled).</p>
*/
inline void SetDedicatedTenancySupport(const DedicatedTenancySupportResultEnum& value) { m_dedicatedTenancySupport = value; }
/**
* <p>The status of BYOL (whether BYOL is enabled or disabled).</p>
*/
inline void SetDedicatedTenancySupport(DedicatedTenancySupportResultEnum&& value) { m_dedicatedTenancySupport = std::move(value); }
/**
* <p>The status of BYOL (whether BYOL is enabled or disabled).</p>
*/
inline DescribeAccountResult& WithDedicatedTenancySupport(const DedicatedTenancySupportResultEnum& value) { SetDedicatedTenancySupport(value); return *this;}
/**
* <p>The status of BYOL (whether BYOL is enabled or disabled).</p>
*/
inline DescribeAccountResult& WithDedicatedTenancySupport(DedicatedTenancySupportResultEnum&& value) { SetDedicatedTenancySupport(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline const Aws::String& GetDedicatedTenancyManagementCidrRange() const{ return m_dedicatedTenancyManagementCidrRange; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const Aws::String& value) { m_dedicatedTenancyManagementCidrRange = value; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(Aws::String&& value) { m_dedicatedTenancyManagementCidrRange = std::move(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const char* value) { m_dedicatedTenancyManagementCidrRange.assign(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline DescribeAccountResult& WithDedicatedTenancyManagementCidrRange(const Aws::String& value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline DescribeAccountResult& WithDedicatedTenancyManagementCidrRange(Aws::String&& value) { SetDedicatedTenancyManagementCidrRange(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, used for the
* management network interface.</p> <p>The management network interface is
* connected to a secure Amazon WorkSpaces management network. It is used for
* interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and
* to allow Amazon WorkSpaces to manage the WorkSpace.</p>
*/
inline DescribeAccountResult& WithDedicatedTenancyManagementCidrRange(const char* value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
private:
DedicatedTenancySupportResultEnum m_dedicatedTenancySupport;
Aws::String m_dedicatedTenancyManagementCidrRange;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeClientPropertiesRequest : public WorkSpacesRequest
{
public:
DescribeClientPropertiesRequest();
// 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 "DescribeClientProperties"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline DescribeClientPropertiesRequest& WithResourceIds(const Aws::Vector<Aws::String>& value) { SetResourceIds(value); return *this;}
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline DescribeClientPropertiesRequest& WithResourceIds(Aws::Vector<Aws::String>&& value) { SetResourceIds(std::move(value)); return *this;}
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline DescribeClientPropertiesRequest& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline DescribeClientPropertiesRequest& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
/**
* <p>The resource identifier, in the form of directory IDs.</p>
*/
inline DescribeClientPropertiesRequest& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_resourceIds;
bool m_resourceIdsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/ClientPropertiesResult.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeClientPropertiesResult
{
public:
DescribeClientPropertiesResult();
DescribeClientPropertiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeClientPropertiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline const Aws::Vector<ClientPropertiesResult>& GetClientPropertiesList() const{ return m_clientPropertiesList; }
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline void SetClientPropertiesList(const Aws::Vector<ClientPropertiesResult>& value) { m_clientPropertiesList = value; }
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline void SetClientPropertiesList(Aws::Vector<ClientPropertiesResult>&& value) { m_clientPropertiesList = std::move(value); }
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline DescribeClientPropertiesResult& WithClientPropertiesList(const Aws::Vector<ClientPropertiesResult>& value) { SetClientPropertiesList(value); return *this;}
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline DescribeClientPropertiesResult& WithClientPropertiesList(Aws::Vector<ClientPropertiesResult>&& value) { SetClientPropertiesList(std::move(value)); return *this;}
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline DescribeClientPropertiesResult& AddClientPropertiesList(const ClientPropertiesResult& value) { m_clientPropertiesList.push_back(value); return *this; }
/**
* <p>Information about the specified Amazon WorkSpaces clients.</p>
*/
inline DescribeClientPropertiesResult& AddClientPropertiesList(ClientPropertiesResult&& value) { m_clientPropertiesList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ClientPropertiesResult> m_clientPropertiesList;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeIpGroupsRequest : public WorkSpacesRequest
{
public:
DescribeIpGroupsRequest();
// 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 "DescribeIpGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DescribeIpGroupsRequest& WithGroupIds(const Aws::Vector<Aws::String>& value) { SetGroupIds(value); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DescribeIpGroupsRequest& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DescribeIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DescribeIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DescribeIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeIpGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeIpGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeIpGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return.</p>
*/
inline DescribeIpGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::Vector<Aws::String> m_groupIds;
bool m_groupIdsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspacesIpGroup.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeIpGroupsResult
{
public:
DescribeIpGroupsResult();
DescribeIpGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeIpGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the IP access control groups.</p>
*/
inline const Aws::Vector<WorkspacesIpGroup>& GetResult() const{ return m_result; }
/**
* <p>Information about the IP access control groups.</p>
*/
inline void SetResult(const Aws::Vector<WorkspacesIpGroup>& value) { m_result = value; }
/**
* <p>Information about the IP access control groups.</p>
*/
inline void SetResult(Aws::Vector<WorkspacesIpGroup>&& value) { m_result = std::move(value); }
/**
* <p>Information about the IP access control groups.</p>
*/
inline DescribeIpGroupsResult& WithResult(const Aws::Vector<WorkspacesIpGroup>& value) { SetResult(value); return *this;}
/**
* <p>Information about the IP access control groups.</p>
*/
inline DescribeIpGroupsResult& WithResult(Aws::Vector<WorkspacesIpGroup>&& value) { SetResult(std::move(value)); return *this;}
/**
* <p>Information about the IP access control groups.</p>
*/
inline DescribeIpGroupsResult& AddResult(const WorkspacesIpGroup& value) { m_result.push_back(value); return *this; }
/**
* <p>Information about the IP access control groups.</p>
*/
inline DescribeIpGroupsResult& AddResult(WorkspacesIpGroup&& value) { m_result.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeIpGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeIpGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeIpGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<WorkspacesIpGroup> m_result;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeTagsRequest : public WorkSpacesRequest
{
public:
DescribeTagsRequest();
// 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 "DescribeTags"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DescribeTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DescribeTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpaces resource. The supported resource types are
* WorkSpaces, registered directories, images, custom bundles, and IP access
* control groups.</p>
*/
inline DescribeTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeTagsResult
{
public:
DescribeTagsResult();
DescribeTagsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTagsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags.</p>
*/
inline const Aws::Vector<Tag>& GetTagList() const{ return m_tagList; }
/**
* <p>The tags.</p>
*/
inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagList = value; }
/**
* <p>The tags.</p>
*/
inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagList = std::move(value); }
/**
* <p>The tags.</p>
*/
inline DescribeTagsResult& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
/**
* <p>The tags.</p>
*/
inline DescribeTagsResult& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
/**
* <p>The tags.</p>
*/
inline DescribeTagsResult& AddTagList(const Tag& value) { m_tagList.push_back(value); return *this; }
/**
* <p>The tags.</p>
*/
inline DescribeTagsResult& AddTagList(Tag&& value) { m_tagList.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Tag> m_tagList;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspaceBundlesRequest : public WorkSpacesRequest
{
public:
DescribeWorkspaceBundlesRequest();
// 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 "DescribeWorkspaceBundles"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline const Aws::Vector<Aws::String>& GetBundleIds() const{ return m_bundleIds; }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline bool BundleIdsHasBeenSet() const { return m_bundleIdsHasBeenSet; }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline void SetBundleIds(const Aws::Vector<Aws::String>& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = value; }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline void SetBundleIds(Aws::Vector<Aws::String>&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds = std::move(value); }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline DescribeWorkspaceBundlesRequest& WithBundleIds(const Aws::Vector<Aws::String>& value) { SetBundleIds(value); return *this;}
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline DescribeWorkspaceBundlesRequest& WithBundleIds(Aws::Vector<Aws::String>&& value) { SetBundleIds(std::move(value)); return *this;}
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline DescribeWorkspaceBundlesRequest& AddBundleIds(const Aws::String& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline DescribeWorkspaceBundlesRequest& AddBundleIds(Aws::String&& value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of the bundles. You cannot combine this parameter with any
* other filter.</p>
*/
inline DescribeWorkspaceBundlesRequest& AddBundleIds(const char* value) { m_bundleIdsHasBeenSet = true; m_bundleIds.push_back(value); return *this; }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline DescribeWorkspaceBundlesRequest& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline DescribeWorkspaceBundlesRequest& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The owner of the bundles. You cannot combine this parameter with any other
* filter.</p> <p>Specify <code>AMAZON</code> to describe the bundles provided by
* AWS or null to describe the bundles that belong to your account.</p>
*/
inline DescribeWorkspaceBundlesRequest& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline DescribeWorkspaceBundlesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline DescribeWorkspaceBundlesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results. (You received this token from a
* previous call.)</p>
*/
inline DescribeWorkspaceBundlesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_bundleIds;
bool m_bundleIdsHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceBundle.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspaceBundlesResult
{
public:
DescribeWorkspaceBundlesResult();
DescribeWorkspaceBundlesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspaceBundlesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the bundles.</p>
*/
inline const Aws::Vector<WorkspaceBundle>& GetBundles() const{ return m_bundles; }
/**
* <p>Information about the bundles.</p>
*/
inline void SetBundles(const Aws::Vector<WorkspaceBundle>& value) { m_bundles = value; }
/**
* <p>Information about the bundles.</p>
*/
inline void SetBundles(Aws::Vector<WorkspaceBundle>&& value) { m_bundles = std::move(value); }
/**
* <p>Information about the bundles.</p>
*/
inline DescribeWorkspaceBundlesResult& WithBundles(const Aws::Vector<WorkspaceBundle>& value) { SetBundles(value); return *this;}
/**
* <p>Information about the bundles.</p>
*/
inline DescribeWorkspaceBundlesResult& WithBundles(Aws::Vector<WorkspaceBundle>&& value) { SetBundles(std::move(value)); return *this;}
/**
* <p>Information about the bundles.</p>
*/
inline DescribeWorkspaceBundlesResult& AddBundles(const WorkspaceBundle& value) { m_bundles.push_back(value); return *this; }
/**
* <p>Information about the bundles.</p>
*/
inline DescribeWorkspaceBundlesResult& AddBundles(WorkspaceBundle&& value) { m_bundles.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline DescribeWorkspaceBundlesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline DescribeWorkspaceBundlesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if there are no
* more results available. This token is valid for one day and must be used within
* that time frame.</p>
*/
inline DescribeWorkspaceBundlesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<WorkspaceBundle> m_bundles;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspaceDirectoriesRequest : public WorkSpacesRequest
{
public:
DescribeWorkspaceDirectoriesRequest();
// 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 "DescribeWorkspaceDirectories"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline const Aws::Vector<Aws::String>& GetDirectoryIds() const{ return m_directoryIds; }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline bool DirectoryIdsHasBeenSet() const { return m_directoryIdsHasBeenSet; }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline void SetDirectoryIds(const Aws::Vector<Aws::String>& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = value; }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline void SetDirectoryIds(Aws::Vector<Aws::String>&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds = std::move(value); }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithDirectoryIds(const Aws::Vector<Aws::String>& value) { SetDirectoryIds(value); return *this;}
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithDirectoryIds(Aws::Vector<Aws::String>&& value) { SetDirectoryIds(std::move(value)); return *this;}
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& AddDirectoryIds(const Aws::String& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& AddDirectoryIds(Aws::String&& value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of the directories. If the value is null, all directories are
* retrieved.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& AddDirectoryIds(const char* value) { m_directoryIdsHasBeenSet = true; m_directoryIds.push_back(value); return *this; }
/**
* <p>The maximum number of directories to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of directories to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of directories to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of directories to return.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceDirectoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_directoryIds;
bool m_directoryIdsHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceDirectory.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspaceDirectoriesResult
{
public:
DescribeWorkspaceDirectoriesResult();
DescribeWorkspaceDirectoriesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspaceDirectoriesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the directories.</p>
*/
inline const Aws::Vector<WorkspaceDirectory>& GetDirectories() const{ return m_directories; }
/**
* <p>Information about the directories.</p>
*/
inline void SetDirectories(const Aws::Vector<WorkspaceDirectory>& value) { m_directories = value; }
/**
* <p>Information about the directories.</p>
*/
inline void SetDirectories(Aws::Vector<WorkspaceDirectory>&& value) { m_directories = std::move(value); }
/**
* <p>Information about the directories.</p>
*/
inline DescribeWorkspaceDirectoriesResult& WithDirectories(const Aws::Vector<WorkspaceDirectory>& value) { SetDirectories(value); return *this;}
/**
* <p>Information about the directories.</p>
*/
inline DescribeWorkspaceDirectoriesResult& WithDirectories(Aws::Vector<WorkspaceDirectory>&& value) { SetDirectories(std::move(value)); return *this;}
/**
* <p>Information about the directories.</p>
*/
inline DescribeWorkspaceDirectoriesResult& AddDirectories(const WorkspaceDirectory& value) { m_directories.push_back(value); return *this; }
/**
* <p>Information about the directories.</p>
*/
inline DescribeWorkspaceDirectoriesResult& AddDirectories(WorkspaceDirectory&& value) { m_directories.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceDirectoriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceDirectoriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceDirectoriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<WorkspaceDirectory> m_directories;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspaceImagePermissionsRequest : public WorkSpacesRequest
{
public:
DescribeWorkspaceImagePermissionsRequest();
// 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 "DescribeWorkspaceImagePermissions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the image.</p>
*/
inline const Aws::String& GetImageId() const{ return m_imageId; }
/**
* <p>The identifier of the image.</p>
*/
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return.</p>
*/
inline DescribeWorkspaceImagePermissionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_imageId;
bool m_imageIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/ImagePermission.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspaceImagePermissionsResult
{
public:
DescribeWorkspaceImagePermissionsResult();
DescribeWorkspaceImagePermissionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspaceImagePermissionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the image.</p>
*/
inline const Aws::String& GetImageId() const{ return m_imageId; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const Aws::String& value) { m_imageId = value; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageId(const char* value) { m_imageId.assign(value); }
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithImageId(const char* value) { SetImageId(value); return *this;}
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline const Aws::Vector<ImagePermission>& GetImagePermissions() const{ return m_imagePermissions; }
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline void SetImagePermissions(const Aws::Vector<ImagePermission>& value) { m_imagePermissions = value; }
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline void SetImagePermissions(Aws::Vector<ImagePermission>&& value) { m_imagePermissions = std::move(value); }
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithImagePermissions(const Aws::Vector<ImagePermission>& value) { SetImagePermissions(value); return *this;}
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithImagePermissions(Aws::Vector<ImagePermission>&& value) { SetImagePermissions(std::move(value)); return *this;}
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& AddImagePermissions(const ImagePermission& value) { m_imagePermissions.push_back(value); return *this; }
/**
* <p>The identifiers of the AWS accounts that the image has been shared with.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& AddImagePermissions(ImagePermission&& value) { m_imagePermissions.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagePermissionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_imageId;
Aws::Vector<ImagePermission> m_imagePermissions;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,202 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/ImageType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspaceImagesRequest : public WorkSpacesRequest
{
public:
DescribeWorkspaceImagesRequest();
// 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 "DescribeWorkspaceImages"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the image.</p>
*/
inline const Aws::Vector<Aws::String>& GetImageIds() const{ return m_imageIds; }
/**
* <p>The identifier of the image.</p>
*/
inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageIds(const Aws::Vector<Aws::String>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
/**
* <p>The identifier of the image.</p>
*/
inline void SetImageIds(Aws::Vector<Aws::String>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& WithImageIds(const Aws::Vector<Aws::String>& value) { SetImageIds(value); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& WithImageIds(Aws::Vector<Aws::String>&& value) { SetImageIds(std::move(value)); return *this;}
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifier of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline const ImageType& GetImageType() const{ return m_imageType; }
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline void SetImageType(const ImageType& value) { m_imageTypeHasBeenSet = true; m_imageType = value; }
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline void SetImageType(ImageType&& value) { m_imageTypeHasBeenSet = true; m_imageType = std::move(value); }
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& WithImageType(const ImageType& value) { SetImageType(value); return *this;}
/**
* <p>The type (owned or shared) of the image.</p>
*/
inline DescribeWorkspaceImagesRequest& WithImageType(ImageType&& value) { SetImageType(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspaceImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of items to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return.</p>
*/
inline DescribeWorkspaceImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::Vector<Aws::String> m_imageIds;
bool m_imageIdsHasBeenSet;
ImageType m_imageType;
bool m_imageTypeHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceImage.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspaceImagesResult
{
public:
DescribeWorkspaceImagesResult();
DescribeWorkspaceImagesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspaceImagesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the images.</p>
*/
inline const Aws::Vector<WorkspaceImage>& GetImages() const{ return m_images; }
/**
* <p>Information about the images.</p>
*/
inline void SetImages(const Aws::Vector<WorkspaceImage>& value) { m_images = value; }
/**
* <p>Information about the images.</p>
*/
inline void SetImages(Aws::Vector<WorkspaceImage>&& value) { m_images = std::move(value); }
/**
* <p>Information about the images.</p>
*/
inline DescribeWorkspaceImagesResult& WithImages(const Aws::Vector<WorkspaceImage>& value) { SetImages(value); return *this;}
/**
* <p>Information about the images.</p>
*/
inline DescribeWorkspaceImagesResult& WithImages(Aws::Vector<WorkspaceImage>&& value) { SetImages(std::move(value)); return *this;}
/**
* <p>Information about the images.</p>
*/
inline DescribeWorkspaceImagesResult& AddImages(const WorkspaceImage& value) { m_images.push_back(value); return *this; }
/**
* <p>Information about the images.</p>
*/
inline DescribeWorkspaceImagesResult& AddImages(WorkspaceImage&& value) { m_images.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspaceImagesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<WorkspaceImage> m_images;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspaceSnapshotsRequest : public WorkSpacesRequest
{
public:
DescribeWorkspaceSnapshotsRequest();
// 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 "DescribeWorkspaceSnapshots"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline DescribeWorkspaceSnapshotsRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline DescribeWorkspaceSnapshotsRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline DescribeWorkspaceSnapshotsRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/Snapshot.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspaceSnapshotsResult
{
public:
DescribeWorkspaceSnapshotsResult();
DescribeWorkspaceSnapshotsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspaceSnapshotsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline const Aws::Vector<Snapshot>& GetRebuildSnapshots() const{ return m_rebuildSnapshots; }
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline void SetRebuildSnapshots(const Aws::Vector<Snapshot>& value) { m_rebuildSnapshots = value; }
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline void SetRebuildSnapshots(Aws::Vector<Snapshot>&& value) { m_rebuildSnapshots = std::move(value); }
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& WithRebuildSnapshots(const Aws::Vector<Snapshot>& value) { SetRebuildSnapshots(value); return *this;}
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& WithRebuildSnapshots(Aws::Vector<Snapshot>&& value) { SetRebuildSnapshots(std::move(value)); return *this;}
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& AddRebuildSnapshots(const Snapshot& value) { m_rebuildSnapshots.push_back(value); return *this; }
/**
* <p>Information about the snapshots that can be used to rebuild a WorkSpace.
* These snapshots include the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& AddRebuildSnapshots(Snapshot&& value) { m_rebuildSnapshots.push_back(std::move(value)); return *this; }
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline const Aws::Vector<Snapshot>& GetRestoreSnapshots() const{ return m_restoreSnapshots; }
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline void SetRestoreSnapshots(const Aws::Vector<Snapshot>& value) { m_restoreSnapshots = value; }
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline void SetRestoreSnapshots(Aws::Vector<Snapshot>&& value) { m_restoreSnapshots = std::move(value); }
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& WithRestoreSnapshots(const Aws::Vector<Snapshot>& value) { SetRestoreSnapshots(value); return *this;}
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& WithRestoreSnapshots(Aws::Vector<Snapshot>&& value) { SetRestoreSnapshots(std::move(value)); return *this;}
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& AddRestoreSnapshots(const Snapshot& value) { m_restoreSnapshots.push_back(value); return *this; }
/**
* <p>Information about the snapshots that can be used to restore a WorkSpace.
* These snapshots include both the root volume and the user volume.</p>
*/
inline DescribeWorkspaceSnapshotsResult& AddRestoreSnapshots(Snapshot&& value) { m_restoreSnapshots.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Snapshot> m_rebuildSnapshots;
Aws::Vector<Snapshot> m_restoreSnapshots;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspacesConnectionStatusRequest : public WorkSpacesRequest
{
public:
DescribeWorkspacesConnectionStatusRequest();
// 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 "DescribeWorkspacesConnectionStatus"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline const Aws::Vector<Aws::String>& GetWorkspaceIds() const{ return m_workspaceIds; }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline bool WorkspaceIdsHasBeenSet() const { return m_workspaceIdsHasBeenSet; }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetWorkspaceIds(const Aws::Vector<Aws::String>& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = value; }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetWorkspaceIds(Aws::Vector<Aws::String>&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = std::move(value); }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& WithWorkspaceIds(const Aws::Vector<Aws::String>& value) { SetWorkspaceIds(value); return *this;}
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& WithWorkspaceIds(Aws::Vector<Aws::String>&& value) { SetWorkspaceIds(std::move(value)); return *this;}
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& AddWorkspaceIds(const Aws::String& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& AddWorkspaceIds(Aws::String&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& AddWorkspaceIds(const char* value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesConnectionStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_workspaceIds;
bool m_workspaceIdsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceConnectionStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspacesConnectionStatusResult
{
public:
DescribeWorkspacesConnectionStatusResult();
DescribeWorkspacesConnectionStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspacesConnectionStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline const Aws::Vector<WorkspaceConnectionStatus>& GetWorkspacesConnectionStatus() const{ return m_workspacesConnectionStatus; }
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline void SetWorkspacesConnectionStatus(const Aws::Vector<WorkspaceConnectionStatus>& value) { m_workspacesConnectionStatus = value; }
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline void SetWorkspacesConnectionStatus(Aws::Vector<WorkspaceConnectionStatus>&& value) { m_workspacesConnectionStatus = std::move(value); }
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& WithWorkspacesConnectionStatus(const Aws::Vector<WorkspaceConnectionStatus>& value) { SetWorkspacesConnectionStatus(value); return *this;}
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& WithWorkspacesConnectionStatus(Aws::Vector<WorkspaceConnectionStatus>&& value) { SetWorkspacesConnectionStatus(std::move(value)); return *this;}
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& AddWorkspacesConnectionStatus(const WorkspaceConnectionStatus& value) { m_workspacesConnectionStatus.push_back(value); return *this; }
/**
* <p>Information about the connection status of the WorkSpace.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& AddWorkspacesConnectionStatus(WorkspaceConnectionStatus&& value) { m_workspacesConnectionStatus.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesConnectionStatusResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<WorkspaceConnectionStatus> m_workspacesConnectionStatus;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,375 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DescribeWorkspacesRequest : public WorkSpacesRequest
{
public:
DescribeWorkspacesRequest();
// 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 "DescribeWorkspaces"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline const Aws::Vector<Aws::String>& GetWorkspaceIds() const{ return m_workspaceIds; }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline bool WorkspaceIdsHasBeenSet() const { return m_workspaceIdsHasBeenSet; }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline void SetWorkspaceIds(const Aws::Vector<Aws::String>& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = value; }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline void SetWorkspaceIds(Aws::Vector<Aws::String>&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds = std::move(value); }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline DescribeWorkspacesRequest& WithWorkspaceIds(const Aws::Vector<Aws::String>& value) { SetWorkspaceIds(value); return *this;}
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline DescribeWorkspacesRequest& WithWorkspaceIds(Aws::Vector<Aws::String>&& value) { SetWorkspaceIds(std::move(value)); return *this;}
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline DescribeWorkspacesRequest& AddWorkspaceIds(const Aws::String& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline DescribeWorkspacesRequest& AddWorkspaceIds(Aws::String&& value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of the WorkSpaces. You cannot combine this parameter with any
* other filter.</p> <p>Because the <a>CreateWorkspaces</a> operation is
* asynchronous, the identifier it returns is not immediately available. If you
* immediately call <a>DescribeWorkspaces</a> with this identifier, no information
* is returned.</p>
*/
inline DescribeWorkspacesRequest& AddWorkspaceIds(const char* value) { m_workspaceIdsHasBeenSet = true; m_workspaceIds.push_back(value); return *this; }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline DescribeWorkspacesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline DescribeWorkspacesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory. In addition, you can optionally specify a
* specific directory user (see <code>UserName</code>). You cannot combine this
* parameter with any other filter.</p>
*/
inline DescribeWorkspacesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline const Aws::String& GetUserName() const{ return m_userName; }
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline DescribeWorkspacesRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline DescribeWorkspacesRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
/**
* <p>The name of the directory user. You must specify this parameter with
* <code>DirectoryId</code>.</p>
*/
inline DescribeWorkspacesRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline const Aws::String& GetBundleId() const{ return m_bundleId; }
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline DescribeWorkspacesRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline DescribeWorkspacesRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
/**
* <p>The identifier of the bundle. All WorkSpaces that are created from this
* bundle are retrieved. You cannot combine this parameter with any other
* filter.</p>
*/
inline DescribeWorkspacesRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
/**
* <p>The maximum number of items to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of items to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of items to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of items to return.</p>
*/
inline DescribeWorkspacesRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline DescribeWorkspacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_workspaceIds;
bool m_workspaceIdsHasBeenSet;
Aws::String m_directoryId;
bool m_directoryIdHasBeenSet;
Aws::String m_userName;
bool m_userNameHasBeenSet;
Aws::String m_bundleId;
bool m_bundleIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,138 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/Workspace.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DescribeWorkspacesResult
{
public:
DescribeWorkspacesResult();
DescribeWorkspacesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeWorkspacesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline const Aws::Vector<Workspace>& GetWorkspaces() const{ return m_workspaces; }
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline void SetWorkspaces(const Aws::Vector<Workspace>& value) { m_workspaces = value; }
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline void SetWorkspaces(Aws::Vector<Workspace>&& value) { m_workspaces = std::move(value); }
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline DescribeWorkspacesResult& WithWorkspaces(const Aws::Vector<Workspace>& value) { SetWorkspaces(value); return *this;}
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline DescribeWorkspacesResult& WithWorkspaces(Aws::Vector<Workspace>&& value) { SetWorkspaces(std::move(value)); return *this;}
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline DescribeWorkspacesResult& AddWorkspaces(const Workspace& value) { m_workspaces.push_back(value); return *this; }
/**
* <p>Information about the WorkSpaces.</p> <p>Because <a>CreateWorkspaces</a> is
* an asynchronous operation, some of the returned information could be
* incomplete.</p>
*/
inline DescribeWorkspacesResult& AddWorkspaces(Workspace&& value) { m_workspaces.push_back(std::move(value)); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline DescribeWorkspacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Workspace> m_workspaces;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API DisassociateIpGroupsRequest : public WorkSpacesRequest
{
public:
DisassociateIpGroupsRequest();
// 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 "DisassociateIpGroups"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory.</p>
*/
inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
/**
* <p>The identifier of the directory.</p>
*/
inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline DisassociateIpGroupsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline DisassociateIpGroupsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline DisassociateIpGroupsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline const Aws::Vector<Aws::String>& GetGroupIds() const{ return m_groupIds; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline bool GroupIdsHasBeenSet() const { return m_groupIdsHasBeenSet; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(const Aws::Vector<Aws::String>& value) { m_groupIdsHasBeenSet = true; m_groupIds = value; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline void SetGroupIds(Aws::Vector<Aws::String>&& value) { m_groupIdsHasBeenSet = true; m_groupIds = std::move(value); }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DisassociateIpGroupsRequest& WithGroupIds(const Aws::Vector<Aws::String>& value) { SetGroupIds(value); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DisassociateIpGroupsRequest& WithGroupIds(Aws::Vector<Aws::String>&& value) { SetGroupIds(std::move(value)); return *this;}
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DisassociateIpGroupsRequest& AddGroupIds(const Aws::String& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DisassociateIpGroupsRequest& AddGroupIds(Aws::String&& value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(std::move(value)); return *this; }
/**
* <p>The identifiers of one or more IP access control groups.</p>
*/
inline DisassociateIpGroupsRequest& AddGroupIds(const char* value) { m_groupIdsHasBeenSet = true; m_groupIds.push_back(value); return *this; }
private:
Aws::String m_directoryId;
bool m_directoryIdHasBeenSet;
Aws::Vector<Aws::String> m_groupIds;
bool m_groupIdsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API DisassociateIpGroupsResult
{
public:
DisassociateIpGroupsResult();
DisassociateIpGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateIpGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/WorkspaceRequest.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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes a WorkSpace that cannot be created.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/FailedCreateWorkspaceRequest">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API FailedCreateWorkspaceRequest
{
public:
FailedCreateWorkspaceRequest();
FailedCreateWorkspaceRequest(Aws::Utils::Json::JsonView jsonValue);
FailedCreateWorkspaceRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the WorkSpace.</p>
*/
inline const WorkspaceRequest& GetWorkspaceRequest() const{ return m_workspaceRequest; }
/**
* <p>Information about the WorkSpace.</p>
*/
inline bool WorkspaceRequestHasBeenSet() const { return m_workspaceRequestHasBeenSet; }
/**
* <p>Information about the WorkSpace.</p>
*/
inline void SetWorkspaceRequest(const WorkspaceRequest& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = value; }
/**
* <p>Information about the WorkSpace.</p>
*/
inline void SetWorkspaceRequest(WorkspaceRequest&& value) { m_workspaceRequestHasBeenSet = true; m_workspaceRequest = std::move(value); }
/**
* <p>Information about the WorkSpace.</p>
*/
inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(const WorkspaceRequest& value) { SetWorkspaceRequest(value); return *this;}
/**
* <p>Information about the WorkSpace.</p>
*/
inline FailedCreateWorkspaceRequest& WithWorkspaceRequest(WorkspaceRequest&& value) { SetWorkspaceRequest(std::move(value)); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* created.</p>
*/
inline FailedCreateWorkspaceRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
WorkspaceRequest m_workspaceRequest;
bool m_workspaceRequestHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,187 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes a WorkSpace that could not be rebooted. (<a>RebootWorkspaces</a>),
* rebuilt (<a>RebuildWorkspaces</a>), restored (<a>RestoreWorkspace</a>),
* terminated (<a>TerminateWorkspaces</a>), started (<a>StartWorkspaces</a>), or
* stopped (<a>StopWorkspaces</a>).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/FailedWorkspaceChangeRequest">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API FailedWorkspaceChangeRequest
{
public:
FailedWorkspaceChangeRequest();
FailedWorkspaceChangeRequest(Aws::Utils::Json::JsonView jsonValue);
FailedWorkspaceChangeRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline FailedWorkspaceChangeRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline FailedWorkspaceChangeRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline FailedWorkspaceChangeRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>The error code that is returned if the WorkSpace cannot be rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>The text of the error message that is returned if the WorkSpace cannot be
* rebooted.</p>
*/
inline FailedWorkspaceChangeRequest& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes the AWS accounts that have been granted permission to use a shared
* image.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImagePermission">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API ImagePermission
{
public:
ImagePermission();
ImagePermission(Aws::Utils::Json::JsonView jsonValue);
ImagePermission& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline const Aws::String& GetSharedAccountId() const{ return m_sharedAccountId; }
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline bool SharedAccountIdHasBeenSet() const { return m_sharedAccountIdHasBeenSet; }
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline void SetSharedAccountId(const Aws::String& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = value; }
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline void SetSharedAccountId(Aws::String&& value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId = std::move(value); }
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline void SetSharedAccountId(const char* value) { m_sharedAccountIdHasBeenSet = true; m_sharedAccountId.assign(value); }
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline ImagePermission& WithSharedAccountId(const Aws::String& value) { SetSharedAccountId(value); return *this;}
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline ImagePermission& WithSharedAccountId(Aws::String&& value) { SetSharedAccountId(std::move(value)); return *this;}
/**
* <p>The identifier of the AWS account that an image has been shared with.</p>
*/
inline ImagePermission& WithSharedAccountId(const char* value) { SetSharedAccountId(value); return *this;}
private:
Aws::String m_sharedAccountId;
bool m_sharedAccountIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class ImageType
{
NOT_SET,
OWNED,
SHARED
};
namespace ImageTypeMapper
{
AWS_WORKSPACES_API ImageType GetImageTypeForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForImageType(ImageType value);
} // namespace ImageTypeMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,254 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceImageIngestionProcess.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/Tag.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ImportWorkspaceImageRequest : public WorkSpacesRequest
{
public:
ImportWorkspaceImageRequest();
// 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 "ImportWorkspaceImage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the EC2 image.</p>
*/
inline const Aws::String& GetEc2ImageId() const{ return m_ec2ImageId; }
/**
* <p>The identifier of the EC2 image.</p>
*/
inline bool Ec2ImageIdHasBeenSet() const { return m_ec2ImageIdHasBeenSet; }
/**
* <p>The identifier of the EC2 image.</p>
*/
inline void SetEc2ImageId(const Aws::String& value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId = value; }
/**
* <p>The identifier of the EC2 image.</p>
*/
inline void SetEc2ImageId(Aws::String&& value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId = std::move(value); }
/**
* <p>The identifier of the EC2 image.</p>
*/
inline void SetEc2ImageId(const char* value) { m_ec2ImageIdHasBeenSet = true; m_ec2ImageId.assign(value); }
/**
* <p>The identifier of the EC2 image.</p>
*/
inline ImportWorkspaceImageRequest& WithEc2ImageId(const Aws::String& value) { SetEc2ImageId(value); return *this;}
/**
* <p>The identifier of the EC2 image.</p>
*/
inline ImportWorkspaceImageRequest& WithEc2ImageId(Aws::String&& value) { SetEc2ImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the EC2 image.</p>
*/
inline ImportWorkspaceImageRequest& WithEc2ImageId(const char* value) { SetEc2ImageId(value); return *this;}
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline const WorkspaceImageIngestionProcess& GetIngestionProcess() const{ return m_ingestionProcess; }
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline bool IngestionProcessHasBeenSet() const { return m_ingestionProcessHasBeenSet; }
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline void SetIngestionProcess(const WorkspaceImageIngestionProcess& value) { m_ingestionProcessHasBeenSet = true; m_ingestionProcess = value; }
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline void SetIngestionProcess(WorkspaceImageIngestionProcess&& value) { m_ingestionProcessHasBeenSet = true; m_ingestionProcess = std::move(value); }
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline ImportWorkspaceImageRequest& WithIngestionProcess(const WorkspaceImageIngestionProcess& value) { SetIngestionProcess(value); return *this;}
/**
* <p>The ingestion process to be used when importing the image.</p>
*/
inline ImportWorkspaceImageRequest& WithIngestionProcess(WorkspaceImageIngestionProcess&& value) { SetIngestionProcess(std::move(value)); return *this;}
/**
* <p>The name of the WorkSpace image.</p>
*/
inline const Aws::String& GetImageName() const{ return m_imageName; }
/**
* <p>The name of the WorkSpace image.</p>
*/
inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; }
/**
* <p>The name of the WorkSpace image.</p>
*/
inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; }
/**
* <p>The name of the WorkSpace image.</p>
*/
inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); }
/**
* <p>The name of the WorkSpace image.</p>
*/
inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); }
/**
* <p>The name of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;}
/**
* <p>The name of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;}
/**
* <p>The name of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageName(const char* value) { SetImageName(value); return *this;}
/**
* <p>The description of the WorkSpace image.</p>
*/
inline const Aws::String& GetImageDescription() const{ return m_imageDescription; }
/**
* <p>The description of the WorkSpace image.</p>
*/
inline bool ImageDescriptionHasBeenSet() const { return m_imageDescriptionHasBeenSet; }
/**
* <p>The description of the WorkSpace image.</p>
*/
inline void SetImageDescription(const Aws::String& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = value; }
/**
* <p>The description of the WorkSpace image.</p>
*/
inline void SetImageDescription(Aws::String&& value) { m_imageDescriptionHasBeenSet = true; m_imageDescription = std::move(value); }
/**
* <p>The description of the WorkSpace image.</p>
*/
inline void SetImageDescription(const char* value) { m_imageDescriptionHasBeenSet = true; m_imageDescription.assign(value); }
/**
* <p>The description of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageDescription(const Aws::String& value) { SetImageDescription(value); return *this;}
/**
* <p>The description of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageDescription(Aws::String&& value) { SetImageDescription(std::move(value)); return *this;}
/**
* <p>The description of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageRequest& WithImageDescription(const char* value) { SetImageDescription(value); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline ImportWorkspaceImageRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline ImportWorkspaceImageRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline ImportWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags. Each WorkSpaces resource can have a maximum of 50 tags.</p>
*/
inline ImportWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_ec2ImageId;
bool m_ec2ImageIdHasBeenSet;
WorkspaceImageIngestionProcess m_ingestionProcess;
bool m_ingestionProcessHasBeenSet;
Aws::String m_imageName;
bool m_imageNameHasBeenSet;
Aws::String m_imageDescription;
bool m_imageDescriptionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ImportWorkspaceImageResult
{
public:
ImportWorkspaceImageResult();
ImportWorkspaceImageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ImportWorkspaceImageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline const Aws::String& GetImageId() const{ return m_imageId; }
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline void SetImageId(const Aws::String& value) { m_imageId = value; }
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline void SetImageId(const char* value) { m_imageId.assign(value); }
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageResult& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageResult& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace image.</p>
*/
inline ImportWorkspaceImageResult& WithImageId(const char* value) { SetImageId(value); return *this;}
private:
Aws::String m_imageId;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes a rule for an IP access control group.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/IpRuleItem">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API IpRuleItem
{
public:
IpRuleItem();
IpRuleItem(Aws::Utils::Json::JsonView jsonValue);
IpRuleItem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline const Aws::String& GetIpRule() const{ return m_ipRule; }
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline bool IpRuleHasBeenSet() const { return m_ipRuleHasBeenSet; }
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline void SetIpRule(const Aws::String& value) { m_ipRuleHasBeenSet = true; m_ipRule = value; }
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline void SetIpRule(Aws::String&& value) { m_ipRuleHasBeenSet = true; m_ipRule = std::move(value); }
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline void SetIpRule(const char* value) { m_ipRuleHasBeenSet = true; m_ipRule.assign(value); }
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline IpRuleItem& WithIpRule(const Aws::String& value) { SetIpRule(value); return *this;}
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline IpRuleItem& WithIpRule(Aws::String&& value) { SetIpRule(std::move(value)); return *this;}
/**
* <p>The IP address range, in CIDR notation.</p>
*/
inline IpRuleItem& WithIpRule(const char* value) { SetIpRule(value); return *this;}
/**
* <p>The description.</p>
*/
inline const Aws::String& GetRuleDesc() const{ return m_ruleDesc; }
/**
* <p>The description.</p>
*/
inline bool RuleDescHasBeenSet() const { return m_ruleDescHasBeenSet; }
/**
* <p>The description.</p>
*/
inline void SetRuleDesc(const Aws::String& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = value; }
/**
* <p>The description.</p>
*/
inline void SetRuleDesc(Aws::String&& value) { m_ruleDescHasBeenSet = true; m_ruleDesc = std::move(value); }
/**
* <p>The description.</p>
*/
inline void SetRuleDesc(const char* value) { m_ruleDescHasBeenSet = true; m_ruleDesc.assign(value); }
/**
* <p>The description.</p>
*/
inline IpRuleItem& WithRuleDesc(const Aws::String& value) { SetRuleDesc(value); return *this;}
/**
* <p>The description.</p>
*/
inline IpRuleItem& WithRuleDesc(Aws::String&& value) { SetRuleDesc(std::move(value)); return *this;}
/**
* <p>The description.</p>
*/
inline IpRuleItem& WithRuleDesc(const char* value) { SetRuleDesc(value); return *this;}
private:
Aws::String m_ipRule;
bool m_ipRuleHasBeenSet;
Aws::String m_ruleDesc;
bool m_ruleDescHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,177 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ListAvailableManagementCidrRangesRequest : public WorkSpacesRequest
{
public:
ListAvailableManagementCidrRangesRequest();
// 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 "ListAvailableManagementCidrRanges"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline const Aws::String& GetManagementCidrRangeConstraint() const{ return m_managementCidrRangeConstraint; }
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline bool ManagementCidrRangeConstraintHasBeenSet() const { return m_managementCidrRangeConstraintHasBeenSet; }
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline void SetManagementCidrRangeConstraint(const Aws::String& value) { m_managementCidrRangeConstraintHasBeenSet = true; m_managementCidrRangeConstraint = value; }
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline void SetManagementCidrRangeConstraint(Aws::String&& value) { m_managementCidrRangeConstraintHasBeenSet = true; m_managementCidrRangeConstraint = std::move(value); }
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline void SetManagementCidrRangeConstraint(const char* value) { m_managementCidrRangeConstraintHasBeenSet = true; m_managementCidrRangeConstraint.assign(value); }
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithManagementCidrRangeConstraint(const Aws::String& value) { SetManagementCidrRangeConstraint(value); return *this;}
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithManagementCidrRangeConstraint(Aws::String&& value) { SetManagementCidrRangeConstraint(std::move(value)); return *this;}
/**
* <p>The IP address range to search. Specify an IP address range that is
* compatible with your network and in CIDR notation (that is, specify the range as
* an IPv4 CIDR block).</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithManagementCidrRangeConstraint(const char* value) { SetManagementCidrRangeConstraint(value); return *this;}
/**
* <p>The maximum number of items to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of items to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of items to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of items to return.</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>If you received a <code>NextToken</code> from a previous call that was
* paginated, provide this token to receive the next set of results.</p>
*/
inline ListAvailableManagementCidrRangesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_managementCidrRangeConstraint;
bool m_managementCidrRangeConstraintHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,128 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ListAvailableManagementCidrRangesResult
{
public:
ListAvailableManagementCidrRangesResult();
ListAvailableManagementCidrRangesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAvailableManagementCidrRangesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline const Aws::Vector<Aws::String>& GetManagementCidrRanges() const{ return m_managementCidrRanges; }
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline void SetManagementCidrRanges(const Aws::Vector<Aws::String>& value) { m_managementCidrRanges = value; }
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline void SetManagementCidrRanges(Aws::Vector<Aws::String>&& value) { m_managementCidrRanges = std::move(value); }
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline ListAvailableManagementCidrRangesResult& WithManagementCidrRanges(const Aws::Vector<Aws::String>& value) { SetManagementCidrRanges(value); return *this;}
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline ListAvailableManagementCidrRangesResult& WithManagementCidrRanges(Aws::Vector<Aws::String>&& value) { SetManagementCidrRanges(std::move(value)); return *this;}
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline ListAvailableManagementCidrRangesResult& AddManagementCidrRanges(const Aws::String& value) { m_managementCidrRanges.push_back(value); return *this; }
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline ListAvailableManagementCidrRangesResult& AddManagementCidrRanges(Aws::String&& value) { m_managementCidrRanges.push_back(std::move(value)); return *this; }
/**
* <p>The list of available IP address ranges, specified as IPv4 CIDR blocks.</p>
*/
inline ListAvailableManagementCidrRangesResult& AddManagementCidrRanges(const char* value) { m_managementCidrRanges.push_back(value); return *this; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline ListAvailableManagementCidrRangesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline ListAvailableManagementCidrRangesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to use to retrieve the next set of results, or null if no more
* results are available.</p>
*/
inline ListAvailableManagementCidrRangesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Aws::String> m_managementCidrRanges;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API MigrateWorkspaceRequest : public WorkSpacesRequest
{
public:
MigrateWorkspaceRequest();
// 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 "MigrateWorkspace"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline const Aws::String& GetSourceWorkspaceId() const{ return m_sourceWorkspaceId; }
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline bool SourceWorkspaceIdHasBeenSet() const { return m_sourceWorkspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline void SetSourceWorkspaceId(const Aws::String& value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId = value; }
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline void SetSourceWorkspaceId(Aws::String&& value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline void SetSourceWorkspaceId(const char* value) { m_sourceWorkspaceIdHasBeenSet = true; m_sourceWorkspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline MigrateWorkspaceRequest& WithSourceWorkspaceId(const Aws::String& value) { SetSourceWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline MigrateWorkspaceRequest& WithSourceWorkspaceId(Aws::String&& value) { SetSourceWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace to migrate from.</p>
*/
inline MigrateWorkspaceRequest& WithSourceWorkspaceId(const char* value) { SetSourceWorkspaceId(value); return *this;}
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline const Aws::String& GetBundleId() const{ return m_bundleId; }
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline MigrateWorkspaceRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline MigrateWorkspaceRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
/**
* <p>The identifier of the target bundle type to migrate the WorkSpace to.</p>
*/
inline MigrateWorkspaceRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;}
private:
Aws::String m_sourceWorkspaceId;
bool m_sourceWorkspaceIdHasBeenSet;
Aws::String m_bundleId;
bool m_bundleIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API MigrateWorkspaceResult
{
public:
MigrateWorkspaceResult();
MigrateWorkspaceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
MigrateWorkspaceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline const Aws::String& GetSourceWorkspaceId() const{ return m_sourceWorkspaceId; }
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline void SetSourceWorkspaceId(const Aws::String& value) { m_sourceWorkspaceId = value; }
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline void SetSourceWorkspaceId(Aws::String&& value) { m_sourceWorkspaceId = std::move(value); }
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline void SetSourceWorkspaceId(const char* value) { m_sourceWorkspaceId.assign(value); }
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline MigrateWorkspaceResult& WithSourceWorkspaceId(const Aws::String& value) { SetSourceWorkspaceId(value); return *this;}
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline MigrateWorkspaceResult& WithSourceWorkspaceId(Aws::String&& value) { SetSourceWorkspaceId(std::move(value)); return *this;}
/**
* <p>The original identifier of the WorkSpace that is being migrated.</p>
*/
inline MigrateWorkspaceResult& WithSourceWorkspaceId(const char* value) { SetSourceWorkspaceId(value); return *this;}
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline const Aws::String& GetTargetWorkspaceId() const{ return m_targetWorkspaceId; }
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline void SetTargetWorkspaceId(const Aws::String& value) { m_targetWorkspaceId = value; }
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline void SetTargetWorkspaceId(Aws::String&& value) { m_targetWorkspaceId = std::move(value); }
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline void SetTargetWorkspaceId(const char* value) { m_targetWorkspaceId.assign(value); }
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline MigrateWorkspaceResult& WithTargetWorkspaceId(const Aws::String& value) { SetTargetWorkspaceId(value); return *this;}
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline MigrateWorkspaceResult& WithTargetWorkspaceId(Aws::String&& value) { SetTargetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The new identifier of the WorkSpace that is being migrated. If the migration
* does not succeed, the target WorkSpace ID will not be used, and the WorkSpace
* will still have the original WorkSpace ID.</p>
*/
inline MigrateWorkspaceResult& WithTargetWorkspaceId(const char* value) { SetTargetWorkspaceId(value); return *this;}
private:
Aws::String m_sourceWorkspaceId;
Aws::String m_targetWorkspaceId;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class ModificationResourceEnum
{
NOT_SET,
ROOT_VOLUME,
USER_VOLUME,
COMPUTE_TYPE
};
namespace ModificationResourceEnumMapper
{
AWS_WORKSPACES_API ModificationResourceEnum GetModificationResourceEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForModificationResourceEnum(ModificationResourceEnum value);
} // namespace ModificationResourceEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/ModificationResourceEnum.h>
#include <aws/workspaces/model/ModificationStateEnum.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>Describes a WorkSpace modification.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModificationState">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API ModificationState
{
public:
ModificationState();
ModificationState(Aws::Utils::Json::JsonView jsonValue);
ModificationState& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The resource.</p>
*/
inline const ModificationResourceEnum& GetResource() const{ return m_resource; }
/**
* <p>The resource.</p>
*/
inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
/**
* <p>The resource.</p>
*/
inline void SetResource(const ModificationResourceEnum& value) { m_resourceHasBeenSet = true; m_resource = value; }
/**
* <p>The resource.</p>
*/
inline void SetResource(ModificationResourceEnum&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
/**
* <p>The resource.</p>
*/
inline ModificationState& WithResource(const ModificationResourceEnum& value) { SetResource(value); return *this;}
/**
* <p>The resource.</p>
*/
inline ModificationState& WithResource(ModificationResourceEnum&& value) { SetResource(std::move(value)); return *this;}
/**
* <p>The modification state.</p>
*/
inline const ModificationStateEnum& GetState() const{ return m_state; }
/**
* <p>The modification state.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The modification state.</p>
*/
inline void SetState(const ModificationStateEnum& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The modification state.</p>
*/
inline void SetState(ModificationStateEnum&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The modification state.</p>
*/
inline ModificationState& WithState(const ModificationStateEnum& value) { SetState(value); return *this;}
/**
* <p>The modification state.</p>
*/
inline ModificationState& WithState(ModificationStateEnum&& value) { SetState(std::move(value)); return *this;}
private:
ModificationResourceEnum m_resource;
bool m_resourceHasBeenSet;
ModificationStateEnum m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class ModificationStateEnum
{
NOT_SET,
UPDATE_INITIATED,
UPDATE_IN_PROGRESS
};
namespace ModificationStateEnumMapper
{
AWS_WORKSPACES_API ModificationStateEnum GetModificationStateEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForModificationStateEnum(ModificationStateEnum value);
} // namespace ModificationStateEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,160 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/workspaces/model/DedicatedTenancySupportEnum.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyAccountRequest : public WorkSpacesRequest
{
public:
ModifyAccountRequest();
// 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 "ModifyAccount"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The status of BYOL.</p>
*/
inline const DedicatedTenancySupportEnum& GetDedicatedTenancySupport() const{ return m_dedicatedTenancySupport; }
/**
* <p>The status of BYOL.</p>
*/
inline bool DedicatedTenancySupportHasBeenSet() const { return m_dedicatedTenancySupportHasBeenSet; }
/**
* <p>The status of BYOL.</p>
*/
inline void SetDedicatedTenancySupport(const DedicatedTenancySupportEnum& value) { m_dedicatedTenancySupportHasBeenSet = true; m_dedicatedTenancySupport = value; }
/**
* <p>The status of BYOL.</p>
*/
inline void SetDedicatedTenancySupport(DedicatedTenancySupportEnum&& value) { m_dedicatedTenancySupportHasBeenSet = true; m_dedicatedTenancySupport = std::move(value); }
/**
* <p>The status of BYOL.</p>
*/
inline ModifyAccountRequest& WithDedicatedTenancySupport(const DedicatedTenancySupportEnum& value) { SetDedicatedTenancySupport(value); return *this;}
/**
* <p>The status of BYOL.</p>
*/
inline ModifyAccountRequest& WithDedicatedTenancySupport(DedicatedTenancySupportEnum&& value) { SetDedicatedTenancySupport(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline const Aws::String& GetDedicatedTenancyManagementCidrRange() const{ return m_dedicatedTenancyManagementCidrRange; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline bool DedicatedTenancyManagementCidrRangeHasBeenSet() const { return m_dedicatedTenancyManagementCidrRangeHasBeenSet; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const Aws::String& value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange = value; }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(Aws::String&& value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange = std::move(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline void SetDedicatedTenancyManagementCidrRange(const char* value) { m_dedicatedTenancyManagementCidrRangeHasBeenSet = true; m_dedicatedTenancyManagementCidrRange.assign(value); }
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline ModifyAccountRequest& WithDedicatedTenancyManagementCidrRange(const Aws::String& value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline ModifyAccountRequest& WithDedicatedTenancyManagementCidrRange(Aws::String&& value) { SetDedicatedTenancyManagementCidrRange(std::move(value)); return *this;}
/**
* <p>The IP address range, specified as an IPv4 CIDR block, for the management
* network interface. Specify an IP address range that is compatible with your
* network and in CIDR notation (that is, specify the range as an IPv4 CIDR block).
* The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be
* specified as available by the <code>ListAvailableManagementCidrRanges</code>
* operation.</p>
*/
inline ModifyAccountRequest& WithDedicatedTenancyManagementCidrRange(const char* value) { SetDedicatedTenancyManagementCidrRange(value); return *this;}
private:
DedicatedTenancySupportEnum m_dedicatedTenancySupport;
bool m_dedicatedTenancySupportHasBeenSet;
Aws::String m_dedicatedTenancyManagementCidrRange;
bool m_dedicatedTenancyManagementCidrRangeHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyAccountResult
{
public:
ModifyAccountResult();
ModifyAccountResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyAccountResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/ClientProperties.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyClientPropertiesRequest : public WorkSpacesRequest
{
public:
ModifyClientPropertiesRequest();
// 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 "ModifyClientProperties"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline ModifyClientPropertiesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline ModifyClientPropertiesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The resource identifiers, in the form of directory IDs.</p>
*/
inline ModifyClientPropertiesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline const ClientProperties& GetClientProperties() const{ return m_clientProperties; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline bool ClientPropertiesHasBeenSet() const { return m_clientPropertiesHasBeenSet; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline void SetClientProperties(const ClientProperties& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = value; }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline void SetClientProperties(ClientProperties&& value) { m_clientPropertiesHasBeenSet = true; m_clientProperties = std::move(value); }
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline ModifyClientPropertiesRequest& WithClientProperties(const ClientProperties& value) { SetClientProperties(value); return *this;}
/**
* <p>Information about the Amazon WorkSpaces client.</p>
*/
inline ModifyClientPropertiesRequest& WithClientProperties(ClientProperties&& value) { SetClientProperties(std::move(value)); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
ClientProperties m_clientProperties;
bool m_clientPropertiesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyClientPropertiesResult
{
public:
ModifyClientPropertiesResult();
ModifyClientPropertiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyClientPropertiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/SelfservicePermissions.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifySelfservicePermissionsRequest : public WorkSpacesRequest
{
public:
ModifySelfservicePermissionsRequest();
// 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 "ModifySelfservicePermissions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the directory.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline ModifySelfservicePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifySelfservicePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifySelfservicePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline const SelfservicePermissions& GetSelfservicePermissions() const{ return m_selfservicePermissions; }
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline bool SelfservicePermissionsHasBeenSet() const { return m_selfservicePermissionsHasBeenSet; }
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline void SetSelfservicePermissions(const SelfservicePermissions& value) { m_selfservicePermissionsHasBeenSet = true; m_selfservicePermissions = value; }
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline void SetSelfservicePermissions(SelfservicePermissions&& value) { m_selfservicePermissionsHasBeenSet = true; m_selfservicePermissions = std::move(value); }
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline ModifySelfservicePermissionsRequest& WithSelfservicePermissions(const SelfservicePermissions& value) { SetSelfservicePermissions(value); return *this;}
/**
* <p>The permissions to enable or disable self-service capabilities.</p>
*/
inline ModifySelfservicePermissionsRequest& WithSelfservicePermissions(SelfservicePermissions&& value) { SetSelfservicePermissions(std::move(value)); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
SelfservicePermissions m_selfservicePermissions;
bool m_selfservicePermissionsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifySelfservicePermissionsResult
{
public:
ModifySelfservicePermissionsResult();
ModifySelfservicePermissionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifySelfservicePermissionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceAccessProperties.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyWorkspaceAccessPropertiesRequest : public WorkSpacesRequest
{
public:
ModifyWorkspaceAccessPropertiesRequest();
// 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 "ModifyWorkspaceAccessProperties"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the directory.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceAccessPropertiesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceAccessPropertiesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceAccessPropertiesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline const WorkspaceAccessProperties& GetWorkspaceAccessProperties() const{ return m_workspaceAccessProperties; }
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline bool WorkspaceAccessPropertiesHasBeenSet() const { return m_workspaceAccessPropertiesHasBeenSet; }
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline void SetWorkspaceAccessProperties(const WorkspaceAccessProperties& value) { m_workspaceAccessPropertiesHasBeenSet = true; m_workspaceAccessProperties = value; }
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline void SetWorkspaceAccessProperties(WorkspaceAccessProperties&& value) { m_workspaceAccessPropertiesHasBeenSet = true; m_workspaceAccessProperties = std::move(value); }
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline ModifyWorkspaceAccessPropertiesRequest& WithWorkspaceAccessProperties(const WorkspaceAccessProperties& value) { SetWorkspaceAccessProperties(value); return *this;}
/**
* <p>The device types and operating systems to enable or disable for access.</p>
*/
inline ModifyWorkspaceAccessPropertiesRequest& WithWorkspaceAccessProperties(WorkspaceAccessProperties&& value) { SetWorkspaceAccessProperties(std::move(value)); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
WorkspaceAccessProperties m_workspaceAccessProperties;
bool m_workspaceAccessPropertiesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyWorkspaceAccessPropertiesResult
{
public:
ModifyWorkspaceAccessPropertiesResult();
ModifyWorkspaceAccessPropertiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyWorkspaceAccessPropertiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceCreationProperties.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyWorkspaceCreationPropertiesRequest : public WorkSpacesRequest
{
public:
ModifyWorkspaceCreationPropertiesRequest();
// 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 "ModifyWorkspaceCreationProperties"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the directory.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The identifier of the directory.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceCreationPropertiesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceCreationPropertiesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The identifier of the directory.</p>
*/
inline ModifyWorkspaceCreationPropertiesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline const WorkspaceCreationProperties& GetWorkspaceCreationProperties() const{ return m_workspaceCreationProperties; }
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline bool WorkspaceCreationPropertiesHasBeenSet() const { return m_workspaceCreationPropertiesHasBeenSet; }
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline void SetWorkspaceCreationProperties(const WorkspaceCreationProperties& value) { m_workspaceCreationPropertiesHasBeenSet = true; m_workspaceCreationProperties = value; }
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline void SetWorkspaceCreationProperties(WorkspaceCreationProperties&& value) { m_workspaceCreationPropertiesHasBeenSet = true; m_workspaceCreationProperties = std::move(value); }
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline ModifyWorkspaceCreationPropertiesRequest& WithWorkspaceCreationProperties(const WorkspaceCreationProperties& value) { SetWorkspaceCreationProperties(value); return *this;}
/**
* <p>The default properties for creating WorkSpaces.</p>
*/
inline ModifyWorkspaceCreationPropertiesRequest& WithWorkspaceCreationProperties(WorkspaceCreationProperties&& value) { SetWorkspaceCreationProperties(std::move(value)); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
WorkspaceCreationProperties m_workspaceCreationProperties;
bool m_workspaceCreationPropertiesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyWorkspaceCreationPropertiesResult
{
public:
ModifyWorkspaceCreationPropertiesResult();
ModifyWorkspaceCreationPropertiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyWorkspaceCreationPropertiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/WorkspaceProperties.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyWorkspacePropertiesRequest : public WorkSpacesRequest
{
public:
ModifyWorkspacePropertiesRequest();
// 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 "ModifyWorkspaceProperties"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspacePropertiesRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
/**
* <p>The properties of the WorkSpace.</p>
*/
inline const WorkspaceProperties& GetWorkspaceProperties() const{ return m_workspaceProperties; }
/**
* <p>The properties of the WorkSpace.</p>
*/
inline bool WorkspacePropertiesHasBeenSet() const { return m_workspacePropertiesHasBeenSet; }
/**
* <p>The properties of the WorkSpace.</p>
*/
inline void SetWorkspaceProperties(const WorkspaceProperties& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = value; }
/**
* <p>The properties of the WorkSpace.</p>
*/
inline void SetWorkspaceProperties(WorkspaceProperties&& value) { m_workspacePropertiesHasBeenSet = true; m_workspaceProperties = std::move(value); }
/**
* <p>The properties of the WorkSpace.</p>
*/
inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(const WorkspaceProperties& value) { SetWorkspaceProperties(value); return *this;}
/**
* <p>The properties of the WorkSpace.</p>
*/
inline ModifyWorkspacePropertiesRequest& WithWorkspaceProperties(WorkspaceProperties&& value) { SetWorkspaceProperties(std::move(value)); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
WorkspaceProperties m_workspaceProperties;
bool m_workspacePropertiesHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyWorkspacePropertiesResult
{
public:
ModifyWorkspacePropertiesResult();
ModifyWorkspacePropertiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyWorkspacePropertiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workspaces/model/TargetWorkspaceState.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API ModifyWorkspaceStateRequest : public WorkSpacesRequest
{
public:
ModifyWorkspaceStateRequest();
// 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 "ModifyWorkspaceState"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspaceStateRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspaceStateRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline ModifyWorkspaceStateRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
/**
* <p>The WorkSpace state.</p>
*/
inline const TargetWorkspaceState& GetWorkspaceState() const{ return m_workspaceState; }
/**
* <p>The WorkSpace state.</p>
*/
inline bool WorkspaceStateHasBeenSet() const { return m_workspaceStateHasBeenSet; }
/**
* <p>The WorkSpace state.</p>
*/
inline void SetWorkspaceState(const TargetWorkspaceState& value) { m_workspaceStateHasBeenSet = true; m_workspaceState = value; }
/**
* <p>The WorkSpace state.</p>
*/
inline void SetWorkspaceState(TargetWorkspaceState&& value) { m_workspaceStateHasBeenSet = true; m_workspaceState = std::move(value); }
/**
* <p>The WorkSpace state.</p>
*/
inline ModifyWorkspaceStateRequest& WithWorkspaceState(const TargetWorkspaceState& value) { SetWorkspaceState(value); return *this;}
/**
* <p>The WorkSpace state.</p>
*/
inline ModifyWorkspaceStateRequest& WithWorkspaceState(TargetWorkspaceState&& value) { SetWorkspaceState(std::move(value)); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
TargetWorkspaceState m_workspaceState;
bool m_workspaceStateHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API ModifyWorkspaceStateResult
{
public:
ModifyWorkspaceStateResult();
ModifyWorkspaceStateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ModifyWorkspaceStateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/OperatingSystemType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
/**
* <p>The operating system that the image is running.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/OperatingSystem">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API OperatingSystem
{
public:
OperatingSystem();
OperatingSystem(Aws::Utils::Json::JsonView jsonValue);
OperatingSystem& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The operating system.</p>
*/
inline const OperatingSystemType& GetType() const{ return m_type; }
/**
* <p>The operating system.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The operating system.</p>
*/
inline void SetType(const OperatingSystemType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The operating system.</p>
*/
inline void SetType(OperatingSystemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The operating system.</p>
*/
inline OperatingSystem& WithType(const OperatingSystemType& value) { SetType(value); return *this;}
/**
* <p>The operating system.</p>
*/
inline OperatingSystem& WithType(OperatingSystemType&& value) { SetType(std::move(value)); return *this;}
private:
OperatingSystemType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class OperatingSystemType
{
NOT_SET,
WINDOWS,
LINUX
};
namespace OperatingSystemTypeMapper
{
AWS_WORKSPACES_API OperatingSystemType GetOperatingSystemTypeForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForOperatingSystemType(OperatingSystemType value);
} // namespace OperatingSystemTypeMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes the information used to reboot a WorkSpace.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebootRequest">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API RebootRequest
{
public:
RebootRequest();
RebootRequest(Aws::Utils::Json::JsonView jsonValue);
RebootRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebootRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebootRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebootRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/RebootRequest.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API RebootWorkspacesRequest : public WorkSpacesRequest
{
public:
RebootWorkspacesRequest();
// 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 "RebootWorkspaces"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline const Aws::Vector<RebootRequest>& GetRebootWorkspaceRequests() const{ return m_rebootWorkspaceRequests; }
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline bool RebootWorkspaceRequestsHasBeenSet() const { return m_rebootWorkspaceRequestsHasBeenSet; }
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetRebootWorkspaceRequests(const Aws::Vector<RebootRequest>& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = value; }
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline void SetRebootWorkspaceRequests(Aws::Vector<RebootRequest>&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests = std::move(value); }
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(const Aws::Vector<RebootRequest>& value) { SetRebootWorkspaceRequests(value); return *this;}
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline RebootWorkspacesRequest& WithRebootWorkspaceRequests(Aws::Vector<RebootRequest>&& value) { SetRebootWorkspaceRequests(std::move(value)); return *this;}
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(const RebootRequest& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(value); return *this; }
/**
* <p>The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.</p>
*/
inline RebootWorkspacesRequest& AddRebootWorkspaceRequests(RebootRequest&& value) { m_rebootWorkspaceRequestsHasBeenSet = true; m_rebootWorkspaceRequests.push_back(std::move(value)); return *this; }
private:
Aws::Vector<RebootRequest> m_rebootWorkspaceRequests;
bool m_rebootWorkspaceRequestsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/FailedWorkspaceChangeRequest.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API RebootWorkspacesResult
{
public:
RebootWorkspacesResult();
RebootWorkspacesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RebootWorkspacesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline const Aws::Vector<FailedWorkspaceChangeRequest>& GetFailedRequests() const{ return m_failedRequests; }
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline void SetFailedRequests(const Aws::Vector<FailedWorkspaceChangeRequest>& value) { m_failedRequests = value; }
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline void SetFailedRequests(Aws::Vector<FailedWorkspaceChangeRequest>&& value) { m_failedRequests = std::move(value); }
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline RebootWorkspacesResult& WithFailedRequests(const Aws::Vector<FailedWorkspaceChangeRequest>& value) { SetFailedRequests(value); return *this;}
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline RebootWorkspacesResult& WithFailedRequests(Aws::Vector<FailedWorkspaceChangeRequest>&& value) { SetFailedRequests(std::move(value)); return *this;}
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline RebootWorkspacesResult& AddFailedRequests(const FailedWorkspaceChangeRequest& value) { m_failedRequests.push_back(value); return *this; }
/**
* <p>Information about the WorkSpaces that could not be rebooted.</p>
*/
inline RebootWorkspacesResult& AddFailedRequests(FailedWorkspaceChangeRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; }
private:
Aws::Vector<FailedWorkspaceChangeRequest> m_failedRequests;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_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 WorkSpaces
{
namespace Model
{
/**
* <p>Describes the information used to rebuild a WorkSpace.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RebuildRequest">AWS
* API Reference</a></p>
*/
class AWS_WORKSPACES_API RebuildRequest
{
public:
RebuildRequest();
RebuildRequest(Aws::Utils::Json::JsonView jsonValue);
RebuildRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebuildRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebuildRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
/**
* <p>The identifier of the WorkSpace.</p>
*/
inline RebuildRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
private:
Aws::String m_workspaceId;
bool m_workspaceIdHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/RebuildRequest.h>
#include <utility>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
/**
*/
class AWS_WORKSPACES_API RebuildWorkspacesRequest : public WorkSpacesRequest
{
public:
RebuildWorkspacesRequest();
// 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 "RebuildWorkspaces"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline const Aws::Vector<RebuildRequest>& GetRebuildWorkspaceRequests() const{ return m_rebuildWorkspaceRequests; }
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline bool RebuildWorkspaceRequestsHasBeenSet() const { return m_rebuildWorkspaceRequestsHasBeenSet; }
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline void SetRebuildWorkspaceRequests(const Aws::Vector<RebuildRequest>& value) { m_rebuildWorkspaceRequestsHasBeenSet = true; m_rebuildWorkspaceRequests = value; }
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline void SetRebuildWorkspaceRequests(Aws::Vector<RebuildRequest>&& value) { m_rebuildWorkspaceRequestsHasBeenSet = true; m_rebuildWorkspaceRequests = std::move(value); }
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline RebuildWorkspacesRequest& WithRebuildWorkspaceRequests(const Aws::Vector<RebuildRequest>& value) { SetRebuildWorkspaceRequests(value); return *this;}
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline RebuildWorkspacesRequest& WithRebuildWorkspaceRequests(Aws::Vector<RebuildRequest>&& value) { SetRebuildWorkspaceRequests(std::move(value)); return *this;}
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline RebuildWorkspacesRequest& AddRebuildWorkspaceRequests(const RebuildRequest& value) { m_rebuildWorkspaceRequestsHasBeenSet = true; m_rebuildWorkspaceRequests.push_back(value); return *this; }
/**
* <p>The WorkSpace to rebuild. You can specify a single WorkSpace.</p>
*/
inline RebuildWorkspacesRequest& AddRebuildWorkspaceRequests(RebuildRequest&& value) { m_rebuildWorkspaceRequestsHasBeenSet = true; m_rebuildWorkspaceRequests.push_back(std::move(value)); return *this; }
private:
Aws::Vector<RebuildRequest> m_rebuildWorkspaceRequests;
bool m_rebuildWorkspaceRequestsHasBeenSet;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/model/FailedWorkspaceChangeRequest.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkSpaces
{
namespace Model
{
class AWS_WORKSPACES_API RebuildWorkspacesResult
{
public:
RebuildWorkspacesResult();
RebuildWorkspacesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RebuildWorkspacesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline const Aws::Vector<FailedWorkspaceChangeRequest>& GetFailedRequests() const{ return m_failedRequests; }
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline void SetFailedRequests(const Aws::Vector<FailedWorkspaceChangeRequest>& value) { m_failedRequests = value; }
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline void SetFailedRequests(Aws::Vector<FailedWorkspaceChangeRequest>&& value) { m_failedRequests = std::move(value); }
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline RebuildWorkspacesResult& WithFailedRequests(const Aws::Vector<FailedWorkspaceChangeRequest>& value) { SetFailedRequests(value); return *this;}
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline RebuildWorkspacesResult& WithFailedRequests(Aws::Vector<FailedWorkspaceChangeRequest>&& value) { SetFailedRequests(std::move(value)); return *this;}
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline RebuildWorkspacesResult& AddFailedRequests(const FailedWorkspaceChangeRequest& value) { m_failedRequests.push_back(value); return *this; }
/**
* <p>Information about the WorkSpace that could not be rebuilt.</p>
*/
inline RebuildWorkspacesResult& AddFailedRequests(FailedWorkspaceChangeRequest&& value) { m_failedRequests.push_back(std::move(value)); return *this; }
private:
Aws::Vector<FailedWorkspaceChangeRequest> m_failedRequests;
};
} // namespace Model
} // namespace WorkSpaces
} // 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/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkSpaces
{
namespace Model
{
enum class ReconnectEnum
{
NOT_SET,
ENABLED,
DISABLED
};
namespace ReconnectEnumMapper
{
AWS_WORKSPACES_API ReconnectEnum GetReconnectEnumForName(const Aws::String& name);
AWS_WORKSPACES_API Aws::String GetNameForReconnectEnum(ReconnectEnum value);
} // namespace ReconnectEnumMapper
} // namespace Model
} // namespace WorkSpaces
} // namespace Aws

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