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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace WorkDocsEndpoint
{
AWS_WORKDOCS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace WorkDocsEndpoint
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_WORKDOCS_API WorkDocsErrorMarshaller : 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,95 @@
/**
* 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/workdocs/WorkDocs_EXPORTS.h>
namespace Aws
{
namespace WorkDocs
{
enum class WorkDocsErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
CONCURRENT_MODIFICATION= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
CONFLICTING_OPERATION,
CUSTOM_METADATA_LIMIT_EXCEEDED,
DEACTIVATING_LAST_SYSTEM_USER,
DOCUMENT_LOCKED_FOR_COMMENTS,
DRAFT_UPLOAD_OUT_OF_SYNC,
ENTITY_ALREADY_EXISTS,
ENTITY_NOT_EXISTS,
FAILED_DEPENDENCY,
ILLEGAL_USER_STATE,
INVALID_ARGUMENT,
INVALID_COMMENT_OPERATION,
INVALID_OPERATION,
INVALID_PASSWORD,
LIMIT_EXCEEDED,
PROHIBITED_STATE,
REQUESTED_ENTITY_TOO_LARGE,
RESOURCE_ALREADY_CHECKED_OUT,
STORAGE_LIMIT_EXCEEDED,
STORAGE_LIMIT_WILL_EXCEED,
TOO_MANY_LABELS,
TOO_MANY_SUBSCRIPTIONS,
UNAUTHORIZED_OPERATION,
UNAUTHORIZED_RESOURCE_ACCESS
};
class AWS_WORKDOCS_API WorkDocsError : public Aws::Client::AWSError<WorkDocsErrors>
{
public:
WorkDocsError() {}
WorkDocsError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<WorkDocsErrors>(rhs) {}
WorkDocsError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<WorkDocsErrors>(rhs) {}
WorkDocsError(const Aws::Client::AWSError<WorkDocsErrors>& rhs) : Aws::Client::AWSError<WorkDocsErrors>(rhs) {}
WorkDocsError(Aws::Client::AWSError<WorkDocsErrors>&& rhs) : Aws::Client::AWSError<WorkDocsErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace WorkDocsErrorMapper
{
AWS_WORKDOCS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace WorkDocs
{
class AWS_WORKDOCS_API WorkDocsRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~WorkDocsRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2016-05-01"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace WorkDocs
} // 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_WORKDOCS_EXPORTS
#define AWS_WORKDOCS_API __declspec(dllexport)
#else
#define AWS_WORKDOCS_API __declspec(dllimport)
#endif /* AWS_WORKDOCS_EXPORTS */
#else
#define AWS_WORKDOCS_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_WORKDOCS_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,181 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API AbortDocumentVersionUploadRequest : public WorkDocsRequest
{
public:
AbortDocumentVersionUploadRequest();
// 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 "AbortDocumentVersionUpload"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AbortDocumentVersionUploadRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AbortDocumentVersionUploadRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AbortDocumentVersionUploadRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline AbortDocumentVersionUploadRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline AbortDocumentVersionUploadRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline AbortDocumentVersionUploadRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the version.</p>
*/
inline AbortDocumentVersionUploadRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the version.</p>
*/
inline AbortDocumentVersionUploadRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the version.</p>
*/
inline AbortDocumentVersionUploadRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API ActivateUserRequest : public WorkDocsRequest
{
public:
ActivateUserRequest();
// 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 "ActivateUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the user.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The ID of the user.</p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p>The ID of the user.</p>
*/
inline ActivateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline ActivateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline ActivateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline ActivateUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline ActivateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline ActivateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
private:
Aws::String m_userId;
bool m_userIdHasBeenSet;
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/User.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API ActivateUserResult
{
public:
ActivateUserResult();
ActivateUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ActivateUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user information.</p>
*/
inline const User& GetUser() const{ return m_user; }
/**
* <p>The user information.</p>
*/
inline void SetUser(const User& value) { m_user = value; }
/**
* <p>The user information.</p>
*/
inline void SetUser(User&& value) { m_user = std::move(value); }
/**
* <p>The user information.</p>
*/
inline ActivateUserResult& WithUser(const User& value) { SetUser(value); return *this;}
/**
* <p>The user information.</p>
*/
inline ActivateUserResult& WithUser(User&& value) { SetUser(std::move(value)); return *this;}
private:
User m_user;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,392 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/ActivityType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/UserMetadata.h>
#include <aws/workdocs/model/Participants.h>
#include <aws/workdocs/model/ResourceMetadata.h>
#include <aws/workdocs/model/CommentMetadata.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the activity information.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Activity">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API Activity
{
public:
Activity();
Activity(Aws::Utils::Json::JsonView jsonValue);
Activity& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The activity type.</p>
*/
inline const ActivityType& GetType() const{ return m_type; }
/**
* <p>The activity type.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The activity type.</p>
*/
inline void SetType(const ActivityType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The activity type.</p>
*/
inline void SetType(ActivityType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The activity type.</p>
*/
inline Activity& WithType(const ActivityType& value) { SetType(value); return *this;}
/**
* <p>The activity type.</p>
*/
inline Activity& WithType(ActivityType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The timestamp when the action was performed.</p>
*/
inline const Aws::Utils::DateTime& GetTimeStamp() const{ return m_timeStamp; }
/**
* <p>The timestamp when the action was performed.</p>
*/
inline bool TimeStampHasBeenSet() const { return m_timeStampHasBeenSet; }
/**
* <p>The timestamp when the action was performed.</p>
*/
inline void SetTimeStamp(const Aws::Utils::DateTime& value) { m_timeStampHasBeenSet = true; m_timeStamp = value; }
/**
* <p>The timestamp when the action was performed.</p>
*/
inline void SetTimeStamp(Aws::Utils::DateTime&& value) { m_timeStampHasBeenSet = true; m_timeStamp = std::move(value); }
/**
* <p>The timestamp when the action was performed.</p>
*/
inline Activity& WithTimeStamp(const Aws::Utils::DateTime& value) { SetTimeStamp(value); return *this;}
/**
* <p>The timestamp when the action was performed.</p>
*/
inline Activity& WithTimeStamp(Aws::Utils::DateTime&& value) { SetTimeStamp(std::move(value)); return *this;}
/**
* <p>Indicates whether an activity is indirect or direct. An indirect activity
* results from a direct activity performed on a parent resource. For example,
* sharing a parent folder (the direct activity) shares all of the subfolders and
* documents within the parent folder (the indirect activity).</p>
*/
inline bool GetIsIndirectActivity() const{ return m_isIndirectActivity; }
/**
* <p>Indicates whether an activity is indirect or direct. An indirect activity
* results from a direct activity performed on a parent resource. For example,
* sharing a parent folder (the direct activity) shares all of the subfolders and
* documents within the parent folder (the indirect activity).</p>
*/
inline bool IsIndirectActivityHasBeenSet() const { return m_isIndirectActivityHasBeenSet; }
/**
* <p>Indicates whether an activity is indirect or direct. An indirect activity
* results from a direct activity performed on a parent resource. For example,
* sharing a parent folder (the direct activity) shares all of the subfolders and
* documents within the parent folder (the indirect activity).</p>
*/
inline void SetIsIndirectActivity(bool value) { m_isIndirectActivityHasBeenSet = true; m_isIndirectActivity = value; }
/**
* <p>Indicates whether an activity is indirect or direct. An indirect activity
* results from a direct activity performed on a parent resource. For example,
* sharing a parent folder (the direct activity) shares all of the subfolders and
* documents within the parent folder (the indirect activity).</p>
*/
inline Activity& WithIsIndirectActivity(bool value) { SetIsIndirectActivity(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline Activity& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline Activity& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline Activity& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The user who performed the action.</p>
*/
inline const UserMetadata& GetInitiator() const{ return m_initiator; }
/**
* <p>The user who performed the action.</p>
*/
inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; }
/**
* <p>The user who performed the action.</p>
*/
inline void SetInitiator(const UserMetadata& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
/**
* <p>The user who performed the action.</p>
*/
inline void SetInitiator(UserMetadata&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); }
/**
* <p>The user who performed the action.</p>
*/
inline Activity& WithInitiator(const UserMetadata& value) { SetInitiator(value); return *this;}
/**
* <p>The user who performed the action.</p>
*/
inline Activity& WithInitiator(UserMetadata&& value) { SetInitiator(std::move(value)); return *this;}
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline const Participants& GetParticipants() const{ return m_participants; }
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline bool ParticipantsHasBeenSet() const { return m_participantsHasBeenSet; }
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline void SetParticipants(const Participants& value) { m_participantsHasBeenSet = true; m_participants = value; }
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline void SetParticipants(Participants&& value) { m_participantsHasBeenSet = true; m_participants = std::move(value); }
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline Activity& WithParticipants(const Participants& value) { SetParticipants(value); return *this;}
/**
* <p>The list of users or groups impacted by this action. This is an optional
* field and is filled for the following sharing activities: DOCUMENT_SHARED,
* DOCUMENT_SHARED, DOCUMENT_UNSHARED, FOLDER_SHARED, FOLDER_UNSHARED.</p>
*/
inline Activity& WithParticipants(Participants&& value) { SetParticipants(std::move(value)); return *this;}
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline const ResourceMetadata& GetResourceMetadata() const{ return m_resourceMetadata; }
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline bool ResourceMetadataHasBeenSet() const { return m_resourceMetadataHasBeenSet; }
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline void SetResourceMetadata(const ResourceMetadata& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = value; }
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline void SetResourceMetadata(ResourceMetadata&& value) { m_resourceMetadataHasBeenSet = true; m_resourceMetadata = std::move(value); }
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline Activity& WithResourceMetadata(const ResourceMetadata& value) { SetResourceMetadata(value); return *this;}
/**
* <p>The metadata of the resource involved in the user action.</p>
*/
inline Activity& WithResourceMetadata(ResourceMetadata&& value) { SetResourceMetadata(std::move(value)); return *this;}
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline const ResourceMetadata& GetOriginalParent() const{ return m_originalParent; }
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline bool OriginalParentHasBeenSet() const { return m_originalParentHasBeenSet; }
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline void SetOriginalParent(const ResourceMetadata& value) { m_originalParentHasBeenSet = true; m_originalParent = value; }
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline void SetOriginalParent(ResourceMetadata&& value) { m_originalParentHasBeenSet = true; m_originalParent = std::move(value); }
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline Activity& WithOriginalParent(const ResourceMetadata& value) { SetOriginalParent(value); return *this;}
/**
* <p>The original parent of the resource. This is an optional field and is filled
* for move activities.</p>
*/
inline Activity& WithOriginalParent(ResourceMetadata&& value) { SetOriginalParent(std::move(value)); return *this;}
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline const CommentMetadata& GetCommentMetadata() const{ return m_commentMetadata; }
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline bool CommentMetadataHasBeenSet() const { return m_commentMetadataHasBeenSet; }
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline void SetCommentMetadata(const CommentMetadata& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = value; }
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline void SetCommentMetadata(CommentMetadata&& value) { m_commentMetadataHasBeenSet = true; m_commentMetadata = std::move(value); }
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline Activity& WithCommentMetadata(const CommentMetadata& value) { SetCommentMetadata(value); return *this;}
/**
* <p>Metadata of the commenting activity. This is an optional field and is filled
* for commenting activities.</p>
*/
inline Activity& WithCommentMetadata(CommentMetadata&& value) { SetCommentMetadata(std::move(value)); return *this;}
private:
ActivityType m_type;
bool m_typeHasBeenSet;
Aws::Utils::DateTime m_timeStamp;
bool m_timeStampHasBeenSet;
bool m_isIndirectActivity;
bool m_isIndirectActivityHasBeenSet;
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
UserMetadata m_initiator;
bool m_initiatorHasBeenSet;
Participants m_participants;
bool m_participantsHasBeenSet;
ResourceMetadata m_resourceMetadata;
bool m_resourceMetadataHasBeenSet;
ResourceMetadata m_originalParent;
bool m_originalParentHasBeenSet;
CommentMetadata m_commentMetadata;
bool m_commentMetadataHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,62 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class ActivityType
{
NOT_SET,
DOCUMENT_CHECKED_IN,
DOCUMENT_CHECKED_OUT,
DOCUMENT_RENAMED,
DOCUMENT_VERSION_UPLOADED,
DOCUMENT_VERSION_DELETED,
DOCUMENT_VERSION_VIEWED,
DOCUMENT_VERSION_DOWNLOADED,
DOCUMENT_RECYCLED,
DOCUMENT_RESTORED,
DOCUMENT_REVERTED,
DOCUMENT_SHARED,
DOCUMENT_UNSHARED,
DOCUMENT_SHARE_PERMISSION_CHANGED,
DOCUMENT_SHAREABLE_LINK_CREATED,
DOCUMENT_SHAREABLE_LINK_REMOVED,
DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED,
DOCUMENT_MOVED,
DOCUMENT_COMMENT_ADDED,
DOCUMENT_COMMENT_DELETED,
DOCUMENT_ANNOTATION_ADDED,
DOCUMENT_ANNOTATION_DELETED,
FOLDER_CREATED,
FOLDER_DELETED,
FOLDER_RENAMED,
FOLDER_RECYCLED,
FOLDER_RESTORED,
FOLDER_SHARED,
FOLDER_UNSHARED,
FOLDER_SHARE_PERMISSION_CHANGED,
FOLDER_SHAREABLE_LINK_CREATED,
FOLDER_SHAREABLE_LINK_REMOVED,
FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED,
FOLDER_MOVED
};
namespace ActivityTypeMapper
{
AWS_WORKDOCS_API ActivityType GetActivityTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForActivityType(ActivityType value);
} // namespace ActivityTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,218 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workdocs/model/NotificationOptions.h>
#include <aws/workdocs/model/SharePrincipal.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API AddResourcePermissionsRequest : public WorkDocsRequest
{
public:
AddResourcePermissionsRequest();
// 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 "AddResourcePermissions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AddResourcePermissionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AddResourcePermissionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline AddResourcePermissionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline AddResourcePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline AddResourcePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline AddResourcePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline const Aws::Vector<SharePrincipal>& GetPrincipals() const{ return m_principals; }
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline void SetPrincipals(const Aws::Vector<SharePrincipal>& value) { m_principalsHasBeenSet = true; m_principals = value; }
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline void SetPrincipals(Aws::Vector<SharePrincipal>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline AddResourcePermissionsRequest& WithPrincipals(const Aws::Vector<SharePrincipal>& value) { SetPrincipals(value); return *this;}
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline AddResourcePermissionsRequest& WithPrincipals(Aws::Vector<SharePrincipal>&& value) { SetPrincipals(std::move(value)); return *this;}
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline AddResourcePermissionsRequest& AddPrincipals(const SharePrincipal& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
/**
* <p>The users, groups, or organization being granted permission.</p>
*/
inline AddResourcePermissionsRequest& AddPrincipals(SharePrincipal&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
/**
* <p>The notification options.</p>
*/
inline const NotificationOptions& GetNotificationOptions() const{ return m_notificationOptions; }
/**
* <p>The notification options.</p>
*/
inline bool NotificationOptionsHasBeenSet() const { return m_notificationOptionsHasBeenSet; }
/**
* <p>The notification options.</p>
*/
inline void SetNotificationOptions(const NotificationOptions& value) { m_notificationOptionsHasBeenSet = true; m_notificationOptions = value; }
/**
* <p>The notification options.</p>
*/
inline void SetNotificationOptions(NotificationOptions&& value) { m_notificationOptionsHasBeenSet = true; m_notificationOptions = std::move(value); }
/**
* <p>The notification options.</p>
*/
inline AddResourcePermissionsRequest& WithNotificationOptions(const NotificationOptions& value) { SetNotificationOptions(value); return *this;}
/**
* <p>The notification options.</p>
*/
inline AddResourcePermissionsRequest& WithNotificationOptions(NotificationOptions&& value) { SetNotificationOptions(std::move(value)); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::Vector<SharePrincipal> m_principals;
bool m_principalsHasBeenSet;
NotificationOptions m_notificationOptions;
bool m_notificationOptionsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workdocs/model/ShareResult.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API AddResourcePermissionsResult
{
public:
AddResourcePermissionsResult();
AddResourcePermissionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AddResourcePermissionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The share results.</p>
*/
inline const Aws::Vector<ShareResult>& GetShareResults() const{ return m_shareResults; }
/**
* <p>The share results.</p>
*/
inline void SetShareResults(const Aws::Vector<ShareResult>& value) { m_shareResults = value; }
/**
* <p>The share results.</p>
*/
inline void SetShareResults(Aws::Vector<ShareResult>&& value) { m_shareResults = std::move(value); }
/**
* <p>The share results.</p>
*/
inline AddResourcePermissionsResult& WithShareResults(const Aws::Vector<ShareResult>& value) { SetShareResults(value); return *this;}
/**
* <p>The share results.</p>
*/
inline AddResourcePermissionsResult& WithShareResults(Aws::Vector<ShareResult>&& value) { SetShareResults(std::move(value)); return *this;}
/**
* <p>The share results.</p>
*/
inline AddResourcePermissionsResult& AddShareResults(const ShareResult& value) { m_shareResults.push_back(value); return *this; }
/**
* <p>The share results.</p>
*/
inline AddResourcePermissionsResult& AddShareResults(ShareResult&& value) { m_shareResults.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ShareResult> m_shareResults;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class BooleanEnumType
{
NOT_SET,
TRUE,
FALSE
};
namespace BooleanEnumTypeMapper
{
AWS_WORKDOCS_API BooleanEnumType GetBooleanEnumTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForBooleanEnumType(BooleanEnumType value);
} // namespace BooleanEnumTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,430 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/User.h>
#include <aws/core/utils/DateTime.h>
#include <aws/workdocs/model/CommentStatusType.h>
#include <aws/workdocs/model/CommentVisibilityType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes a comment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Comment">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API Comment
{
public:
Comment();
Comment(Aws::Utils::Json::JsonView jsonValue);
Comment& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the comment.</p>
*/
inline const Aws::String& GetCommentId() const{ return m_commentId; }
/**
* <p>The ID of the comment.</p>
*/
inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
/**
* <p>The ID of the comment.</p>
*/
inline Comment& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline Comment& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline Comment& WithCommentId(const char* value) { SetCommentId(value); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline const Aws::String& GetParentId() const{ return m_parentId; }
/**
* <p>The ID of the parent comment.</p>
*/
inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
/**
* <p>The ID of the parent comment.</p>
*/
inline Comment& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline Comment& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline Comment& WithParentId(const char* value) { SetParentId(value); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline const Aws::String& GetThreadId() const{ return m_threadId; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(const Aws::String& value) { m_threadIdHasBeenSet = true; m_threadId = value; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(Aws::String&& value) { m_threadIdHasBeenSet = true; m_threadId = std::move(value); }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(const char* value) { m_threadIdHasBeenSet = true; m_threadId.assign(value); }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline Comment& WithThreadId(const Aws::String& value) { SetThreadId(value); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline Comment& WithThreadId(Aws::String&& value) { SetThreadId(std::move(value)); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline Comment& WithThreadId(const char* value) { SetThreadId(value); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The text of the comment.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The text of the comment.</p>
*/
inline Comment& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline Comment& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline Comment& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The details of the user who made the comment.</p>
*/
inline const User& GetContributor() const{ return m_contributor; }
/**
* <p>The details of the user who made the comment.</p>
*/
inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
/**
* <p>The details of the user who made the comment.</p>
*/
inline void SetContributor(const User& value) { m_contributorHasBeenSet = true; m_contributor = value; }
/**
* <p>The details of the user who made the comment.</p>
*/
inline void SetContributor(User&& value) { m_contributorHasBeenSet = true; m_contributor = std::move(value); }
/**
* <p>The details of the user who made the comment.</p>
*/
inline Comment& WithContributor(const User& value) { SetContributor(value); return *this;}
/**
* <p>The details of the user who made the comment.</p>
*/
inline Comment& WithContributor(User&& value) { SetContributor(std::move(value)); return *this;}
/**
* <p>The time that the comment was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The time that the comment was created.</p>
*/
inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
/**
* <p>The time that the comment was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
/**
* <p>The time that the comment was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
/**
* <p>The time that the comment was created.</p>
*/
inline Comment& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The time that the comment was created.</p>
*/
inline Comment& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The status of the comment.</p>
*/
inline const CommentStatusType& GetStatus() const{ return m_status; }
/**
* <p>The status of the comment.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the comment.</p>
*/
inline void SetStatus(const CommentStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the comment.</p>
*/
inline void SetStatus(CommentStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the comment.</p>
*/
inline Comment& WithStatus(const CommentStatusType& value) { SetStatus(value); return *this;}
/**
* <p>The status of the comment.</p>
*/
inline Comment& WithStatus(CommentStatusType&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline const CommentVisibilityType& GetVisibility() const{ return m_visibility; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline void SetVisibility(const CommentVisibilityType& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline void SetVisibility(CommentVisibilityType&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline Comment& WithVisibility(const CommentVisibilityType& value) { SetVisibility(value); return *this;}
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline Comment& WithVisibility(CommentVisibilityType&& value) { SetVisibility(std::move(value)); return *this;}
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline const Aws::String& GetRecipientId() const{ return m_recipientId; }
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline void SetRecipientId(const Aws::String& value) { m_recipientIdHasBeenSet = true; m_recipientId = value; }
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline void SetRecipientId(Aws::String&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::move(value); }
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline void SetRecipientId(const char* value) { m_recipientIdHasBeenSet = true; m_recipientId.assign(value); }
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline Comment& WithRecipientId(const Aws::String& value) { SetRecipientId(value); return *this;}
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline Comment& WithRecipientId(Aws::String&& value) { SetRecipientId(std::move(value)); return *this;}
/**
* <p>If the comment is a reply to another user's comment, this field contains the
* user ID of the user being replied to.</p>
*/
inline Comment& WithRecipientId(const char* value) { SetRecipientId(value); return *this;}
private:
Aws::String m_commentId;
bool m_commentIdHasBeenSet;
Aws::String m_parentId;
bool m_parentIdHasBeenSet;
Aws::String m_threadId;
bool m_threadIdHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
User m_contributor;
bool m_contributorHasBeenSet;
Aws::Utils::DateTime m_createdTimestamp;
bool m_createdTimestampHasBeenSet;
CommentStatusType m_status;
bool m_statusHasBeenSet;
CommentVisibilityType m_visibility;
bool m_visibilityHasBeenSet;
Aws::String m_recipientId;
bool m_recipientIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,237 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/User.h>
#include <aws/core/utils/DateTime.h>
#include <aws/workdocs/model/CommentStatusType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the metadata of a comment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CommentMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API CommentMetadata
{
public:
CommentMetadata();
CommentMetadata(Aws::Utils::Json::JsonView jsonValue);
CommentMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the comment.</p>
*/
inline const Aws::String& GetCommentId() const{ return m_commentId; }
/**
* <p>The ID of the comment.</p>
*/
inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
/**
* <p>The ID of the comment.</p>
*/
inline CommentMetadata& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline CommentMetadata& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline CommentMetadata& WithCommentId(const char* value) { SetCommentId(value); return *this;}
/**
* <p>The user who made the comment.</p>
*/
inline const User& GetContributor() const{ return m_contributor; }
/**
* <p>The user who made the comment.</p>
*/
inline bool ContributorHasBeenSet() const { return m_contributorHasBeenSet; }
/**
* <p>The user who made the comment.</p>
*/
inline void SetContributor(const User& value) { m_contributorHasBeenSet = true; m_contributor = value; }
/**
* <p>The user who made the comment.</p>
*/
inline void SetContributor(User&& value) { m_contributorHasBeenSet = true; m_contributor = std::move(value); }
/**
* <p>The user who made the comment.</p>
*/
inline CommentMetadata& WithContributor(const User& value) { SetContributor(value); return *this;}
/**
* <p>The user who made the comment.</p>
*/
inline CommentMetadata& WithContributor(User&& value) { SetContributor(std::move(value)); return *this;}
/**
* <p>The timestamp that the comment was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The timestamp that the comment was created.</p>
*/
inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
/**
* <p>The timestamp that the comment was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
/**
* <p>The timestamp that the comment was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
/**
* <p>The timestamp that the comment was created.</p>
*/
inline CommentMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The timestamp that the comment was created.</p>
*/
inline CommentMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The status of the comment.</p>
*/
inline const CommentStatusType& GetCommentStatus() const{ return m_commentStatus; }
/**
* <p>The status of the comment.</p>
*/
inline bool CommentStatusHasBeenSet() const { return m_commentStatusHasBeenSet; }
/**
* <p>The status of the comment.</p>
*/
inline void SetCommentStatus(const CommentStatusType& value) { m_commentStatusHasBeenSet = true; m_commentStatus = value; }
/**
* <p>The status of the comment.</p>
*/
inline void SetCommentStatus(CommentStatusType&& value) { m_commentStatusHasBeenSet = true; m_commentStatus = std::move(value); }
/**
* <p>The status of the comment.</p>
*/
inline CommentMetadata& WithCommentStatus(const CommentStatusType& value) { SetCommentStatus(value); return *this;}
/**
* <p>The status of the comment.</p>
*/
inline CommentMetadata& WithCommentStatus(CommentStatusType&& value) { SetCommentStatus(std::move(value)); return *this;}
/**
* <p>The ID of the user being replied to.</p>
*/
inline const Aws::String& GetRecipientId() const{ return m_recipientId; }
/**
* <p>The ID of the user being replied to.</p>
*/
inline bool RecipientIdHasBeenSet() const { return m_recipientIdHasBeenSet; }
/**
* <p>The ID of the user being replied to.</p>
*/
inline void SetRecipientId(const Aws::String& value) { m_recipientIdHasBeenSet = true; m_recipientId = value; }
/**
* <p>The ID of the user being replied to.</p>
*/
inline void SetRecipientId(Aws::String&& value) { m_recipientIdHasBeenSet = true; m_recipientId = std::move(value); }
/**
* <p>The ID of the user being replied to.</p>
*/
inline void SetRecipientId(const char* value) { m_recipientIdHasBeenSet = true; m_recipientId.assign(value); }
/**
* <p>The ID of the user being replied to.</p>
*/
inline CommentMetadata& WithRecipientId(const Aws::String& value) { SetRecipientId(value); return *this;}
/**
* <p>The ID of the user being replied to.</p>
*/
inline CommentMetadata& WithRecipientId(Aws::String&& value) { SetRecipientId(std::move(value)); return *this;}
/**
* <p>The ID of the user being replied to.</p>
*/
inline CommentMetadata& WithRecipientId(const char* value) { SetRecipientId(value); return *this;}
private:
Aws::String m_commentId;
bool m_commentIdHasBeenSet;
User m_contributor;
bool m_contributorHasBeenSet;
Aws::Utils::DateTime m_createdTimestamp;
bool m_createdTimestampHasBeenSet;
CommentStatusType m_commentStatus;
bool m_commentStatusHasBeenSet;
Aws::String m_recipientId;
bool m_recipientIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class CommentStatusType
{
NOT_SET,
DRAFT,
PUBLISHED,
DELETED
};
namespace CommentStatusTypeMapper
{
AWS_WORKDOCS_API CommentStatusType GetCommentStatusTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForCommentStatusType(CommentStatusType value);
} // namespace CommentStatusTypeMapper
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class CommentVisibilityType
{
NOT_SET,
PUBLIC_,
PRIVATE_
};
namespace CommentVisibilityTypeMapper
{
AWS_WORKDOCS_API CommentVisibilityType GetCommentVisibilityTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForCommentVisibilityType(CommentVisibilityType value);
} // namespace CommentVisibilityTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,394 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/CommentVisibilityType.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateCommentRequest : public WorkDocsRequest
{
public:
CreateCommentRequest();
// 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 "CreateComment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCommentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCommentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCommentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline CreateCommentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline CreateCommentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline CreateCommentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the document version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the document version.</p>
*/
inline CreateCommentRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline CreateCommentRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline CreateCommentRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline const Aws::String& GetParentId() const{ return m_parentId; }
/**
* <p>The ID of the parent comment.</p>
*/
inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
/**
* <p>The ID of the parent comment.</p>
*/
inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
/**
* <p>The ID of the parent comment.</p>
*/
inline CreateCommentRequest& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline CreateCommentRequest& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
/**
* <p>The ID of the parent comment.</p>
*/
inline CreateCommentRequest& WithParentId(const char* value) { SetParentId(value); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline const Aws::String& GetThreadId() const{ return m_threadId; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline bool ThreadIdHasBeenSet() const { return m_threadIdHasBeenSet; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(const Aws::String& value) { m_threadIdHasBeenSet = true; m_threadId = value; }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(Aws::String&& value) { m_threadIdHasBeenSet = true; m_threadId = std::move(value); }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline void SetThreadId(const char* value) { m_threadIdHasBeenSet = true; m_threadId.assign(value); }
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline CreateCommentRequest& WithThreadId(const Aws::String& value) { SetThreadId(value); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline CreateCommentRequest& WithThreadId(Aws::String&& value) { SetThreadId(std::move(value)); return *this;}
/**
* <p>The ID of the root comment in the thread.</p>
*/
inline CreateCommentRequest& WithThreadId(const char* value) { SetThreadId(value); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline const Aws::String& GetText() const{ return m_text; }
/**
* <p>The text of the comment.</p>
*/
inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
/**
* <p>The text of the comment.</p>
*/
inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
/**
* <p>The text of the comment.</p>
*/
inline CreateCommentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline CreateCommentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
/**
* <p>The text of the comment.</p>
*/
inline CreateCommentRequest& WithText(const char* value) { SetText(value); return *this;}
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline const CommentVisibilityType& GetVisibility() const{ return m_visibility; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline void SetVisibility(const CommentVisibilityType& value) { m_visibilityHasBeenSet = true; m_visibility = value; }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline void SetVisibility(CommentVisibilityType&& value) { m_visibilityHasBeenSet = true; m_visibility = std::move(value); }
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline CreateCommentRequest& WithVisibility(const CommentVisibilityType& value) { SetVisibility(value); return *this;}
/**
* <p>The visibility of the comment. Options are either PRIVATE, where the comment
* is visible only to the comment author and document owner and co-owners, or
* PUBLIC, where the comment is visible to document owners, co-owners, and
* contributors.</p>
*/
inline CreateCommentRequest& WithVisibility(CommentVisibilityType&& value) { SetVisibility(std::move(value)); return *this;}
/**
* <p>Set this parameter to TRUE to send an email out to the document collaborators
* after the comment is created.</p>
*/
inline bool GetNotifyCollaborators() const{ return m_notifyCollaborators; }
/**
* <p>Set this parameter to TRUE to send an email out to the document collaborators
* after the comment is created.</p>
*/
inline bool NotifyCollaboratorsHasBeenSet() const { return m_notifyCollaboratorsHasBeenSet; }
/**
* <p>Set this parameter to TRUE to send an email out to the document collaborators
* after the comment is created.</p>
*/
inline void SetNotifyCollaborators(bool value) { m_notifyCollaboratorsHasBeenSet = true; m_notifyCollaborators = value; }
/**
* <p>Set this parameter to TRUE to send an email out to the document collaborators
* after the comment is created.</p>
*/
inline CreateCommentRequest& WithNotifyCollaborators(bool value) { SetNotifyCollaborators(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
Aws::String m_parentId;
bool m_parentIdHasBeenSet;
Aws::String m_threadId;
bool m_threadIdHasBeenSet;
Aws::String m_text;
bool m_textHasBeenSet;
CommentVisibilityType m_visibility;
bool m_visibilityHasBeenSet;
bool m_notifyCollaborators;
bool m_notifyCollaboratorsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/Comment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateCommentResult
{
public:
CreateCommentResult();
CreateCommentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateCommentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The comment that has been created.</p>
*/
inline const Comment& GetComment() const{ return m_comment; }
/**
* <p>The comment that has been created.</p>
*/
inline void SetComment(const Comment& value) { m_comment = value; }
/**
* <p>The comment that has been created.</p>
*/
inline void SetComment(Comment&& value) { m_comment = std::move(value); }
/**
* <p>The comment that has been created.</p>
*/
inline CreateCommentResult& WithComment(const Comment& value) { SetComment(value); return *this;}
/**
* <p>The comment that has been created.</p>
*/
inline CreateCommentResult& WithComment(Comment&& value) { SetComment(std::move(value)); return *this;}
private:
Comment m_comment;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,265 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateCustomMetadataRequest : public WorkDocsRequest
{
public:
CreateCustomMetadataRequest();
// 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 "CreateCustomMetadata"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCustomMetadataRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCustomMetadataRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateCustomMetadataRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline CreateCustomMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline CreateCustomMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline CreateCustomMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline CreateCustomMetadataRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline CreateCustomMetadataRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being added to a document
* version.</p>
*/
inline CreateCustomMetadataRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline bool CustomMetadataHasBeenSet() const { return m_customMetadataHasBeenSet; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadataHasBeenSet = true; m_customMetadata = value; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadataHasBeenSet = true; m_customMetadata = std::move(value); }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& WithCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomMetadata(value); return *this;}
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& WithCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomMetadata(std::move(value)); return *this;}
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>Custom metadata in the form of name-value pairs.</p>
*/
inline CreateCustomMetadataRequest& AddCustomMetadata(const char* key, const char* value) { m_customMetadataHasBeenSet = true; m_customMetadata.emplace(key, value); return *this; }
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_customMetadata;
bool m_customMetadataHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateCustomMetadataResult
{
public:
CreateCustomMetadataResult();
CreateCustomMetadataResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateCustomMetadataResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateFolderRequest : public WorkDocsRequest
{
public:
CreateFolderRequest();
// 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 "CreateFolder"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateFolderRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateFolderRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateFolderRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The name of the new folder.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the new folder.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the new folder.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the new folder.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the new folder.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the new folder.</p>
*/
inline CreateFolderRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the new folder.</p>
*/
inline CreateFolderRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the new folder.</p>
*/
inline CreateFolderRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
/**
* <p>The ID of the parent folder.</p>
*/
inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline CreateFolderRequest& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline CreateFolderRequest& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline CreateFolderRequest& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_parentFolderId;
bool m_parentFolderIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/FolderMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateFolderResult
{
public:
CreateFolderResult();
CreateFolderResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateFolderResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The metadata of the folder.</p>
*/
inline const FolderMetadata& GetMetadata() const{ return m_metadata; }
/**
* <p>The metadata of the folder.</p>
*/
inline void SetMetadata(const FolderMetadata& value) { m_metadata = value; }
/**
* <p>The metadata of the folder.</p>
*/
inline void SetMetadata(FolderMetadata&& value) { m_metadata = std::move(value); }
/**
* <p>The metadata of the folder.</p>
*/
inline CreateFolderResult& WithMetadata(const FolderMetadata& value) { SetMetadata(value); return *this;}
/**
* <p>The metadata of the folder.</p>
*/
inline CreateFolderResult& WithMetadata(FolderMetadata&& value) { SetMetadata(std::move(value)); return *this;}
private:
FolderMetadata m_metadata;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateLabelsRequest : public WorkDocsRequest
{
public:
CreateLabelsRequest();
// 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 "CreateLabels"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline CreateLabelsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline CreateLabelsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline CreateLabelsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>List of labels to add to the resource.</p>
*/
inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
/**
* <p>List of labels to add to the resource.</p>
*/
inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
/**
* <p>List of labels to add to the resource.</p>
*/
inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
/**
* <p>List of labels to add to the resource.</p>
*/
inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
/**
* <p>List of labels to add to the resource.</p>
*/
inline CreateLabelsRequest& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
/**
* <p>List of labels to add to the resource.</p>
*/
inline CreateLabelsRequest& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
/**
* <p>List of labels to add to the resource.</p>
*/
inline CreateLabelsRequest& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>List of labels to add to the resource.</p>
*/
inline CreateLabelsRequest& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
/**
* <p>List of labels to add to the resource.</p>
*/
inline CreateLabelsRequest& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateLabelsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateLabelsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateLabelsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::Vector<Aws::String> m_labels;
bool m_labelsHasBeenSet;
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateLabelsResult
{
public:
CreateLabelsResult();
CreateLabelsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLabelsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,211 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/SubscriptionProtocolType.h>
#include <aws/workdocs/model/SubscriptionType.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateNotificationSubscriptionRequest : public WorkDocsRequest
{
public:
CreateNotificationSubscriptionRequest();
// 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 "CreateNotificationSubscription"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline CreateNotificationSubscriptionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline CreateNotificationSubscriptionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline CreateNotificationSubscriptionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline CreateNotificationSubscriptionRequest& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline CreateNotificationSubscriptionRequest& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
/**
* <p>The endpoint to receive the notifications. If the protocol is HTTPS, the
* endpoint is a URL that begins with <code>https</code>.</p>
*/
inline CreateNotificationSubscriptionRequest& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline const SubscriptionProtocolType& GetProtocol() const{ return m_protocol; }
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline void SetProtocol(const SubscriptionProtocolType& value) { m_protocolHasBeenSet = true; m_protocol = value; }
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline void SetProtocol(SubscriptionProtocolType&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline CreateNotificationSubscriptionRequest& WithProtocol(const SubscriptionProtocolType& value) { SetProtocol(value); return *this;}
/**
* <p>The protocol to use. The supported value is https, which delivers
* JSON-encoded messages using HTTPS POST.</p>
*/
inline CreateNotificationSubscriptionRequest& WithProtocol(SubscriptionProtocolType&& value) { SetProtocol(std::move(value)); return *this;}
/**
* <p>The notification type.</p>
*/
inline const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
/**
* <p>The notification type.</p>
*/
inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
/**
* <p>The notification type.</p>
*/
inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
/**
* <p>The notification type.</p>
*/
inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = std::move(value); }
/**
* <p>The notification type.</p>
*/
inline CreateNotificationSubscriptionRequest& WithSubscriptionType(const SubscriptionType& value) { SetSubscriptionType(value); return *this;}
/**
* <p>The notification type.</p>
*/
inline CreateNotificationSubscriptionRequest& WithSubscriptionType(SubscriptionType&& value) { SetSubscriptionType(std::move(value)); return *this;}
private:
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_endpoint;
bool m_endpointHasBeenSet;
SubscriptionProtocolType m_protocol;
bool m_protocolHasBeenSet;
SubscriptionType m_subscriptionType;
bool m_subscriptionTypeHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/Subscription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateNotificationSubscriptionResult
{
public:
CreateNotificationSubscriptionResult();
CreateNotificationSubscriptionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateNotificationSubscriptionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The subscription.</p>
*/
inline const Subscription& GetSubscription() const{ return m_subscription; }
/**
* <p>The subscription.</p>
*/
inline void SetSubscription(const Subscription& value) { m_subscription = value; }
/**
* <p>The subscription.</p>
*/
inline void SetSubscription(Subscription&& value) { m_subscription = std::move(value); }
/**
* <p>The subscription.</p>
*/
inline CreateNotificationSubscriptionResult& WithSubscription(const Subscription& value) { SetSubscription(value); return *this;}
/**
* <p>The subscription.</p>
*/
inline CreateNotificationSubscriptionResult& WithSubscription(Subscription&& value) { SetSubscription(std::move(value)); return *this;}
private:
Subscription m_subscription;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,436 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/StorageRuleType.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API CreateUserRequest : public WorkDocsRequest
{
public:
CreateUserRequest();
// 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 "CreateUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline CreateUserRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline CreateUserRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline CreateUserRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The login name of the user.</p>
*/
inline const Aws::String& GetUsername() const{ return m_username; }
/**
* <p>The login name of the user.</p>
*/
inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
/**
* <p>The login name of the user.</p>
*/
inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
/**
* <p>The login name of the user.</p>
*/
inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
/**
* <p>The login name of the user.</p>
*/
inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
/**
* <p>The login name of the user.</p>
*/
inline CreateUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
/**
* <p>The login name of the user.</p>
*/
inline CreateUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
/**
* <p>The login name of the user.</p>
*/
inline CreateUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
/**
* <p>The email address of the user.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address of the user.</p>
*/
inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
/**
* <p>The email address of the user.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
/**
* <p>The email address of the user.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
/**
* <p>The email address of the user.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
/**
* <p>The email address of the user.</p>
*/
inline CreateUserRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address of the user.</p>
*/
inline CreateUserRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address of the user.</p>
*/
inline CreateUserRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The given name of the user.</p>
*/
inline const Aws::String& GetGivenName() const{ return m_givenName; }
/**
* <p>The given name of the user.</p>
*/
inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; }
/**
* <p>The given name of the user.</p>
*/
inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; }
/**
* <p>The given name of the user.</p>
*/
inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); }
/**
* <p>The given name of the user.</p>
*/
inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); }
/**
* <p>The given name of the user.</p>
*/
inline CreateUserRequest& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;}
/**
* <p>The given name of the user.</p>
*/
inline CreateUserRequest& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;}
/**
* <p>The given name of the user.</p>
*/
inline CreateUserRequest& WithGivenName(const char* value) { SetGivenName(value); return *this;}
/**
* <p>The surname of the user.</p>
*/
inline const Aws::String& GetSurname() const{ return m_surname; }
/**
* <p>The surname of the user.</p>
*/
inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; }
/**
* <p>The surname of the user.</p>
*/
inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; }
/**
* <p>The surname of the user.</p>
*/
inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); }
/**
* <p>The surname of the user.</p>
*/
inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); }
/**
* <p>The surname of the user.</p>
*/
inline CreateUserRequest& WithSurname(const Aws::String& value) { SetSurname(value); return *this;}
/**
* <p>The surname of the user.</p>
*/
inline CreateUserRequest& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;}
/**
* <p>The surname of the user.</p>
*/
inline CreateUserRequest& WithSurname(const char* value) { SetSurname(value); return *this;}
/**
* <p>The password of the user.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>The password of the user.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>The password of the user.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>The password of the user.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>The password of the user.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>The password of the user.</p>
*/
inline CreateUserRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>The password of the user.</p>
*/
inline CreateUserRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>The password of the user.</p>
*/
inline CreateUserRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
/**
* <p>The time zone ID of the user.</p>
*/
inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; }
/**
* <p>The time zone ID of the user.</p>
*/
inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; }
/**
* <p>The time zone ID of the user.</p>
*/
inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; }
/**
* <p>The time zone ID of the user.</p>
*/
inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); }
/**
* <p>The time zone ID of the user.</p>
*/
inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); }
/**
* <p>The time zone ID of the user.</p>
*/
inline CreateUserRequest& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;}
/**
* <p>The time zone ID of the user.</p>
*/
inline CreateUserRequest& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;}
/**
* <p>The time zone ID of the user.</p>
*/
inline CreateUserRequest& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;}
/**
* <p>The amount of storage for the user.</p>
*/
inline const StorageRuleType& GetStorageRule() const{ return m_storageRule; }
/**
* <p>The amount of storage for the user.</p>
*/
inline bool StorageRuleHasBeenSet() const { return m_storageRuleHasBeenSet; }
/**
* <p>The amount of storage for the user.</p>
*/
inline void SetStorageRule(const StorageRuleType& value) { m_storageRuleHasBeenSet = true; m_storageRule = value; }
/**
* <p>The amount of storage for the user.</p>
*/
inline void SetStorageRule(StorageRuleType&& value) { m_storageRuleHasBeenSet = true; m_storageRule = std::move(value); }
/**
* <p>The amount of storage for the user.</p>
*/
inline CreateUserRequest& WithStorageRule(const StorageRuleType& value) { SetStorageRule(value); return *this;}
/**
* <p>The amount of storage for the user.</p>
*/
inline CreateUserRequest& WithStorageRule(StorageRuleType&& value) { SetStorageRule(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline CreateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
private:
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_username;
bool m_usernameHasBeenSet;
Aws::String m_emailAddress;
bool m_emailAddressHasBeenSet;
Aws::String m_givenName;
bool m_givenNameHasBeenSet;
Aws::String m_surname;
bool m_surnameHasBeenSet;
Aws::String m_password;
bool m_passwordHasBeenSet;
Aws::String m_timeZoneId;
bool m_timeZoneIdHasBeenSet;
StorageRuleType m_storageRule;
bool m_storageRuleHasBeenSet;
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/User.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API CreateUserResult
{
public:
CreateUserResult();
CreateUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user information.</p>
*/
inline const User& GetUser() const{ return m_user; }
/**
* <p>The user information.</p>
*/
inline void SetUser(const User& value) { m_user = value; }
/**
* <p>The user information.</p>
*/
inline void SetUser(User&& value) { m_user = std::move(value); }
/**
* <p>The user information.</p>
*/
inline CreateUserResult& WithUser(const User& value) { SetUser(value); return *this;}
/**
* <p>The user information.</p>
*/
inline CreateUserResult& WithUser(User&& value) { SetUser(std::move(value)); return *this;}
private:
User m_user;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeactivateUserRequest : public WorkDocsRequest
{
public:
DeactivateUserRequest();
// 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 "DeactivateUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the user.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The ID of the user.</p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p>The ID of the user.</p>
*/
inline DeactivateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline DeactivateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline DeactivateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeactivateUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeactivateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeactivateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
private:
Aws::String m_userId;
bool m_userIdHasBeenSet;
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,225 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteCommentRequest : public WorkDocsRequest
{
public:
DeleteCommentRequest();
// 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 "DeleteComment"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCommentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCommentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCommentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline DeleteCommentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DeleteCommentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DeleteCommentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the document version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the document version.</p>
*/
inline DeleteCommentRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline DeleteCommentRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline DeleteCommentRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline const Aws::String& GetCommentId() const{ return m_commentId; }
/**
* <p>The ID of the comment.</p>
*/
inline bool CommentIdHasBeenSet() const { return m_commentIdHasBeenSet; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const Aws::String& value) { m_commentIdHasBeenSet = true; m_commentId = value; }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(Aws::String&& value) { m_commentIdHasBeenSet = true; m_commentId = std::move(value); }
/**
* <p>The ID of the comment.</p>
*/
inline void SetCommentId(const char* value) { m_commentIdHasBeenSet = true; m_commentId.assign(value); }
/**
* <p>The ID of the comment.</p>
*/
inline DeleteCommentRequest& WithCommentId(const Aws::String& value) { SetCommentId(value); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline DeleteCommentRequest& WithCommentId(Aws::String&& value) { SetCommentId(std::move(value)); return *this;}
/**
* <p>The ID of the comment.</p>
*/
inline DeleteCommentRequest& WithCommentId(const char* value) { SetCommentId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
Aws::String m_commentId;
bool m_commentIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,273 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteCustomMetadataRequest : public WorkDocsRequest
{
public:
DeleteCustomMetadataRequest();
// 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 "DeleteCustomMetadata"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCustomMetadataRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCustomMetadataRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteCustomMetadataRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline DeleteCustomMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline DeleteCustomMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource, either a document or folder.</p>
*/
inline DeleteCustomMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline DeleteCustomMetadataRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline DeleteCustomMetadataRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the version, if the custom metadata is being deleted from a
* document version.</p>
*/
inline DeleteCustomMetadataRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>List of properties to remove.</p>
*/
inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
/**
* <p>List of properties to remove.</p>
*/
inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
/**
* <p>List of properties to remove.</p>
*/
inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
/**
* <p>List of properties to remove.</p>
*/
inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
/**
* <p>List of properties to remove.</p>
*/
inline DeleteCustomMetadataRequest& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
/**
* <p>List of properties to remove.</p>
*/
inline DeleteCustomMetadataRequest& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
/**
* <p>List of properties to remove.</p>
*/
inline DeleteCustomMetadataRequest& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
/**
* <p>List of properties to remove.</p>
*/
inline DeleteCustomMetadataRequest& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
/**
* <p>List of properties to remove.</p>
*/
inline DeleteCustomMetadataRequest& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
/**
* <p>Flag to indicate removal of all custom metadata properties from the specified
* resource.</p>
*/
inline bool GetDeleteAll() const{ return m_deleteAll; }
/**
* <p>Flag to indicate removal of all custom metadata properties from the specified
* resource.</p>
*/
inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; }
/**
* <p>Flag to indicate removal of all custom metadata properties from the specified
* resource.</p>
*/
inline void SetDeleteAll(bool value) { m_deleteAllHasBeenSet = true; m_deleteAll = value; }
/**
* <p>Flag to indicate removal of all custom metadata properties from the specified
* resource.</p>
*/
inline DeleteCustomMetadataRequest& WithDeleteAll(bool value) { SetDeleteAll(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
Aws::Vector<Aws::String> m_keys;
bool m_keysHasBeenSet;
bool m_deleteAll;
bool m_deleteAllHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DeleteCustomMetadataResult
{
public:
DeleteCustomMetadataResult();
DeleteCustomMetadataResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteCustomMetadataResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteDocumentRequest : public WorkDocsRequest
{
public:
DeleteDocumentRequest();
// 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 "DeleteDocument"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteDocumentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteDocumentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteDocumentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline DeleteDocumentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DeleteDocumentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DeleteDocumentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteFolderContentsRequest : public WorkDocsRequest
{
public:
DeleteFolderContentsRequest();
// 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 "DeleteFolderContents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderContentsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderContentsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderContentsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetFolderId() const{ return m_folderId; }
/**
* <p>The ID of the folder.</p>
*/
inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderContentsRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderContentsRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderContentsRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_folderId;
bool m_folderIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteFolderRequest : public WorkDocsRequest
{
public:
DeleteFolderRequest();
// 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 "DeleteFolder"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteFolderRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetFolderId() const{ return m_folderId; }
/**
* <p>The ID of the folder.</p>
*/
inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DeleteFolderRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_folderId;
bool m_folderIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,217 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteLabelsRequest : public WorkDocsRequest
{
public:
DeleteLabelsRequest();
// 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 "DeleteLabels"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline DeleteLabelsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline DeleteLabelsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline DeleteLabelsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteLabelsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteLabelsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DeleteLabelsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>List of labels to delete from the resource.</p>
*/
inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline DeleteLabelsRequest& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
/**
* <p>List of labels to delete from the resource.</p>
*/
inline DeleteLabelsRequest& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
/**
* <p>List of labels to delete from the resource.</p>
*/
inline DeleteLabelsRequest& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline DeleteLabelsRequest& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
/**
* <p>List of labels to delete from the resource.</p>
*/
inline DeleteLabelsRequest& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>Flag to request removal of all labels from the specified resource.</p>
*/
inline bool GetDeleteAll() const{ return m_deleteAll; }
/**
* <p>Flag to request removal of all labels from the specified resource.</p>
*/
inline bool DeleteAllHasBeenSet() const { return m_deleteAllHasBeenSet; }
/**
* <p>Flag to request removal of all labels from the specified resource.</p>
*/
inline void SetDeleteAll(bool value) { m_deleteAllHasBeenSet = true; m_deleteAll = value; }
/**
* <p>Flag to request removal of all labels from the specified resource.</p>
*/
inline DeleteLabelsRequest& WithDeleteAll(bool value) { SetDeleteAll(value); return *this;}
private:
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::Vector<Aws::String> m_labels;
bool m_labelsHasBeenSet;
bool m_deleteAll;
bool m_deleteAllHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DeleteLabelsResult
{
public:
DeleteLabelsResult();
DeleteLabelsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteLabelsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteNotificationSubscriptionRequest : public WorkDocsRequest
{
public:
DeleteNotificationSubscriptionRequest();
// 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 "DeleteNotificationSubscription"; }
Aws::String SerializePayload() const override;
/**
* <p>The ID of the subscription.</p>
*/
inline const Aws::String& GetSubscriptionId() const{ return m_subscriptionId; }
/**
* <p>The ID of the subscription.</p>
*/
inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
/**
* <p>The ID of the subscription.</p>
*/
inline void SetSubscriptionId(const Aws::String& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = value; }
/**
* <p>The ID of the subscription.</p>
*/
inline void SetSubscriptionId(Aws::String&& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = std::move(value); }
/**
* <p>The ID of the subscription.</p>
*/
inline void SetSubscriptionId(const char* value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId.assign(value); }
/**
* <p>The ID of the subscription.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithSubscriptionId(const Aws::String& value) { SetSubscriptionId(value); return *this;}
/**
* <p>The ID of the subscription.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithSubscriptionId(Aws::String&& value) { SetSubscriptionId(std::move(value)); return *this;}
/**
* <p>The ID of the subscription.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithSubscriptionId(const char* value) { SetSubscriptionId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DeleteNotificationSubscriptionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
private:
Aws::String m_subscriptionId;
bool m_subscriptionIdHasBeenSet;
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DeleteUserRequest : public WorkDocsRequest
{
public:
DeleteUserRequest();
// 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 "DeleteUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline DeleteUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline DeleteUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Do not set this field when using
* administrative API actions, as in accessing the API using AWS credentials.</p>
*/
inline DeleteUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The ID of the user.</p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p>The ID of the user.</p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p>The ID of the user.</p>
*/
inline DeleteUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline DeleteUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The ID of the user.</p>
*/
inline DeleteUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,492 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeActivitiesRequest : public WorkDocsRequest
{
public:
DescribeActivitiesRequest();
// 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 "DescribeActivities"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeActivitiesRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeActivitiesRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeActivitiesRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline DescribeActivitiesRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The timestamp that determines the starting time of the activities. The
* response includes the activities performed after the specified timestamp.</p>
*/
inline DescribeActivitiesRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline DescribeActivitiesRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
/**
* <p>The timestamp that determines the end time of the activities. The response
* includes the activities performed before the specified timestamp.</p>
*/
inline DescribeActivitiesRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization. This is a mandatory parameter when using
* administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline const Aws::String& GetActivityTypes() const{ return m_activityTypes; }
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline bool ActivityTypesHasBeenSet() const { return m_activityTypesHasBeenSet; }
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline void SetActivityTypes(const Aws::String& value) { m_activityTypesHasBeenSet = true; m_activityTypes = value; }
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline void SetActivityTypes(Aws::String&& value) { m_activityTypesHasBeenSet = true; m_activityTypes = std::move(value); }
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline void SetActivityTypes(const char* value) { m_activityTypesHasBeenSet = true; m_activityTypes.assign(value); }
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline DescribeActivitiesRequest& WithActivityTypes(const Aws::String& value) { SetActivityTypes(value); return *this;}
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline DescribeActivitiesRequest& WithActivityTypes(Aws::String&& value) { SetActivityTypes(std::move(value)); return *this;}
/**
* <p>Specifies which activity types to include in the response. If this field is
* left empty, all activity types are returned.</p>
*/
inline DescribeActivitiesRequest& WithActivityTypes(const char* value) { SetActivityTypes(value); return *this;}
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline DescribeActivitiesRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline DescribeActivitiesRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The document or folder ID for which to describe activity types.</p>
*/
inline DescribeActivitiesRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The ID of the user who performed the action. The response includes activities
* pertaining to this user. This is an optional parameter and is only applicable
* for administrative API (SigV4) requests.</p>
*/
inline DescribeActivitiesRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p>Includes indirect activities. An indirect activity results from a direct
* activity performed on a parent resource. For example, sharing a parent folder
* (the direct activity) shares all of the subfolders and documents within the
* parent folder (the indirect activity).</p>
*/
inline bool GetIncludeIndirectActivities() const{ return m_includeIndirectActivities; }
/**
* <p>Includes indirect activities. An indirect activity results from a direct
* activity performed on a parent resource. For example, sharing a parent folder
* (the direct activity) shares all of the subfolders and documents within the
* parent folder (the indirect activity).</p>
*/
inline bool IncludeIndirectActivitiesHasBeenSet() const { return m_includeIndirectActivitiesHasBeenSet; }
/**
* <p>Includes indirect activities. An indirect activity results from a direct
* activity performed on a parent resource. For example, sharing a parent folder
* (the direct activity) shares all of the subfolders and documents within the
* parent folder (the indirect activity).</p>
*/
inline void SetIncludeIndirectActivities(bool value) { m_includeIndirectActivitiesHasBeenSet = true; m_includeIndirectActivities = value; }
/**
* <p>Includes indirect activities. An indirect activity results from a direct
* activity performed on a parent resource. For example, sharing a parent folder
* (the direct activity) shares all of the subfolders and documents within the
* parent folder (the indirect activity).</p>
*/
inline DescribeActivitiesRequest& WithIncludeIndirectActivities(bool value) { SetIncludeIndirectActivities(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 DescribeActivitiesRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::Utils::DateTime m_startTime;
bool m_startTimeHasBeenSet;
Aws::Utils::DateTime m_endTime;
bool m_endTimeHasBeenSet;
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_activityTypes;
bool m_activityTypesHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
bool m_includeIndirectActivities;
bool m_includeIndirectActivitiesHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/Activity.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeActivitiesResult
{
public:
DescribeActivitiesResult();
DescribeActivitiesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeActivitiesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline const Aws::Vector<Activity>& GetUserActivities() const{ return m_userActivities; }
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline void SetUserActivities(const Aws::Vector<Activity>& value) { m_userActivities = value; }
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline void SetUserActivities(Aws::Vector<Activity>&& value) { m_userActivities = std::move(value); }
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline DescribeActivitiesResult& WithUserActivities(const Aws::Vector<Activity>& value) { SetUserActivities(value); return *this;}
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline DescribeActivitiesResult& WithUserActivities(Aws::Vector<Activity>&& value) { SetUserActivities(std::move(value)); return *this;}
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline DescribeActivitiesResult& AddUserActivities(const Activity& value) { m_userActivities.push_back(value); return *this; }
/**
* <p>The list of activities for the specified user and time period.</p>
*/
inline DescribeActivitiesResult& AddUserActivities(Activity&& value) { m_userActivities.push_back(std::move(value)); return *this; }
/**
* <p>The marker for the next set of results.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeActivitiesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<Activity> m_userActivities;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeCommentsRequest : public WorkDocsRequest
{
public:
DescribeCommentsRequest();
// 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 "DescribeComments"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeCommentsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeCommentsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeCommentsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline DescribeCommentsRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DescribeCommentsRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DescribeCommentsRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The ID of the document version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The ID of the document version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The ID of the document version.</p>
*/
inline DescribeCommentsRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline DescribeCommentsRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The ID of the document version.</p>
*/
inline DescribeCommentsRequest& WithVersionId(const char* value) { SetVersionId(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 DescribeCommentsRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/Comment.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeCommentsResult
{
public:
DescribeCommentsResult();
DescribeCommentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeCommentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of comments for the specified document version.</p>
*/
inline const Aws::Vector<Comment>& GetComments() const{ return m_comments; }
/**
* <p>The list of comments for the specified document version.</p>
*/
inline void SetComments(const Aws::Vector<Comment>& value) { m_comments = value; }
/**
* <p>The list of comments for the specified document version.</p>
*/
inline void SetComments(Aws::Vector<Comment>&& value) { m_comments = std::move(value); }
/**
* <p>The list of comments for the specified document version.</p>
*/
inline DescribeCommentsResult& WithComments(const Aws::Vector<Comment>& value) { SetComments(value); return *this;}
/**
* <p>The list of comments for the specified document version.</p>
*/
inline DescribeCommentsResult& WithComments(Aws::Vector<Comment>&& value) { SetComments(std::move(value)); return *this;}
/**
* <p>The list of comments for the specified document version.</p>
*/
inline DescribeCommentsResult& AddComments(const Comment& value) { m_comments.push_back(value); return *this; }
/**
* <p>The list of comments for the specified document version.</p>
*/
inline DescribeCommentsResult& AddComments(Comment&& value) { m_comments.push_back(std::move(value)); return *this; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeCommentsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<Comment> m_comments;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,323 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeDocumentVersionsRequest : public WorkDocsRequest
{
public:
DescribeDocumentVersionsRequest();
// 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 "DescribeDocumentVersions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeDocumentVersionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeDocumentVersionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeDocumentVersionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline DescribeDocumentVersionsRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DescribeDocumentVersionsRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DescribeDocumentVersionsRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeDocumentVersionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeDocumentVersionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeDocumentVersionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of versions to return with this call.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of versions to return with this call.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of versions to return with this call.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of versions to return with this call.</p>
*/
inline DescribeDocumentVersionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline const Aws::String& GetInclude() const{ return m_include; }
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline void SetInclude(const Aws::String& value) { m_includeHasBeenSet = true; m_include = value; }
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline void SetInclude(Aws::String&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline void SetInclude(const char* value) { m_includeHasBeenSet = true; m_include.assign(value); }
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline DescribeDocumentVersionsRequest& WithInclude(const Aws::String& value) { SetInclude(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline DescribeDocumentVersionsRequest& WithInclude(Aws::String&& value) { SetInclude(std::move(value)); return *this;}
/**
* <p>A comma-separated list of values. Specify "INITIALIZED" to include incomplete
* versions.</p>
*/
inline DescribeDocumentVersionsRequest& WithInclude(const char* value) { SetInclude(value); return *this;}
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline const Aws::String& GetFields() const{ return m_fields; }
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; }
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); }
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline DescribeDocumentVersionsRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;}
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline DescribeDocumentVersionsRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;}
/**
* <p>Specify "SOURCE" to include initialized versions and a URL for the source
* document.</p>
*/
inline DescribeDocumentVersionsRequest& WithFields(const char* value) { SetFields(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_include;
bool m_includeHasBeenSet;
Aws::String m_fields;
bool m_fieldsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/DocumentVersionMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeDocumentVersionsResult
{
public:
DescribeDocumentVersionsResult();
DescribeDocumentVersionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDocumentVersionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The document versions.</p>
*/
inline const Aws::Vector<DocumentVersionMetadata>& GetDocumentVersions() const{ return m_documentVersions; }
/**
* <p>The document versions.</p>
*/
inline void SetDocumentVersions(const Aws::Vector<DocumentVersionMetadata>& value) { m_documentVersions = value; }
/**
* <p>The document versions.</p>
*/
inline void SetDocumentVersions(Aws::Vector<DocumentVersionMetadata>&& value) { m_documentVersions = std::move(value); }
/**
* <p>The document versions.</p>
*/
inline DescribeDocumentVersionsResult& WithDocumentVersions(const Aws::Vector<DocumentVersionMetadata>& value) { SetDocumentVersions(value); return *this;}
/**
* <p>The document versions.</p>
*/
inline DescribeDocumentVersionsResult& WithDocumentVersions(Aws::Vector<DocumentVersionMetadata>&& value) { SetDocumentVersions(std::move(value)); return *this;}
/**
* <p>The document versions.</p>
*/
inline DescribeDocumentVersionsResult& AddDocumentVersions(const DocumentVersionMetadata& value) { m_documentVersions.push_back(value); return *this; }
/**
* <p>The document versions.</p>
*/
inline DescribeDocumentVersionsResult& AddDocumentVersions(DocumentVersionMetadata&& value) { m_documentVersions.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeDocumentVersionsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeDocumentVersionsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeDocumentVersionsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<DocumentVersionMetadata> m_documentVersions;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,376 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/ResourceSortType.h>
#include <aws/workdocs/model/OrderType.h>
#include <aws/workdocs/model/FolderContentType.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeFolderContentsRequest : public WorkDocsRequest
{
public:
DescribeFolderContentsRequest();
// 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 "DescribeFolderContents"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeFolderContentsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeFolderContentsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeFolderContentsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetFolderId() const{ return m_folderId; }
/**
* <p>The ID of the folder.</p>
*/
inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline DescribeFolderContentsRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DescribeFolderContentsRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline DescribeFolderContentsRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
/**
* <p>The sorting criteria.</p>
*/
inline const ResourceSortType& GetSort() const{ return m_sort; }
/**
* <p>The sorting criteria.</p>
*/
inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
/**
* <p>The sorting criteria.</p>
*/
inline void SetSort(const ResourceSortType& value) { m_sortHasBeenSet = true; m_sort = value; }
/**
* <p>The sorting criteria.</p>
*/
inline void SetSort(ResourceSortType&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
/**
* <p>The sorting criteria.</p>
*/
inline DescribeFolderContentsRequest& WithSort(const ResourceSortType& value) { SetSort(value); return *this;}
/**
* <p>The sorting criteria.</p>
*/
inline DescribeFolderContentsRequest& WithSort(ResourceSortType&& value) { SetSort(std::move(value)); return *this;}
/**
* <p>The order for the contents of the folder.</p>
*/
inline const OrderType& GetOrder() const{ return m_order; }
/**
* <p>The order for the contents of the folder.</p>
*/
inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
/**
* <p>The order for the contents of the folder.</p>
*/
inline void SetOrder(const OrderType& value) { m_orderHasBeenSet = true; m_order = value; }
/**
* <p>The order for the contents of the folder.</p>
*/
inline void SetOrder(OrderType&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
/**
* <p>The order for the contents of the folder.</p>
*/
inline DescribeFolderContentsRequest& WithOrder(const OrderType& value) { SetOrder(value); return *this;}
/**
* <p>The order for the contents of the folder.</p>
*/
inline DescribeFolderContentsRequest& WithOrder(OrderType&& value) { SetOrder(std::move(value)); return *this;}
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline DescribeFolderContentsRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeFolderContentsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeFolderContentsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline DescribeFolderContentsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The type of items.</p>
*/
inline const FolderContentType& GetType() const{ return m_type; }
/**
* <p>The type of items.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of items.</p>
*/
inline void SetType(const FolderContentType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of items.</p>
*/
inline void SetType(FolderContentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of items.</p>
*/
inline DescribeFolderContentsRequest& WithType(const FolderContentType& value) { SetType(value); return *this;}
/**
* <p>The type of items.</p>
*/
inline DescribeFolderContentsRequest& WithType(FolderContentType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline const Aws::String& GetInclude() const{ return m_include; }
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline void SetInclude(const Aws::String& value) { m_includeHasBeenSet = true; m_include = value; }
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline void SetInclude(Aws::String&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline void SetInclude(const char* value) { m_includeHasBeenSet = true; m_include.assign(value); }
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline DescribeFolderContentsRequest& WithInclude(const Aws::String& value) { SetInclude(value); return *this;}
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline DescribeFolderContentsRequest& WithInclude(Aws::String&& value) { SetInclude(std::move(value)); return *this;}
/**
* <p>The contents to include. Specify "INITIALIZED" to include initialized
* documents.</p>
*/
inline DescribeFolderContentsRequest& WithInclude(const char* value) { SetInclude(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_folderId;
bool m_folderIdHasBeenSet;
ResourceSortType m_sort;
bool m_sortHasBeenSet;
OrderType m_order;
bool m_orderHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
FolderContentType m_type;
bool m_typeHasBeenSet;
Aws::String m_include;
bool m_includeHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/FolderMetadata.h>
#include <aws/workdocs/model/DocumentMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeFolderContentsResult
{
public:
DescribeFolderContentsResult();
DescribeFolderContentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeFolderContentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The subfolders in the specified folder.</p>
*/
inline const Aws::Vector<FolderMetadata>& GetFolders() const{ return m_folders; }
/**
* <p>The subfolders in the specified folder.</p>
*/
inline void SetFolders(const Aws::Vector<FolderMetadata>& value) { m_folders = value; }
/**
* <p>The subfolders in the specified folder.</p>
*/
inline void SetFolders(Aws::Vector<FolderMetadata>&& value) { m_folders = std::move(value); }
/**
* <p>The subfolders in the specified folder.</p>
*/
inline DescribeFolderContentsResult& WithFolders(const Aws::Vector<FolderMetadata>& value) { SetFolders(value); return *this;}
/**
* <p>The subfolders in the specified folder.</p>
*/
inline DescribeFolderContentsResult& WithFolders(Aws::Vector<FolderMetadata>&& value) { SetFolders(std::move(value)); return *this;}
/**
* <p>The subfolders in the specified folder.</p>
*/
inline DescribeFolderContentsResult& AddFolders(const FolderMetadata& value) { m_folders.push_back(value); return *this; }
/**
* <p>The subfolders in the specified folder.</p>
*/
inline DescribeFolderContentsResult& AddFolders(FolderMetadata&& value) { m_folders.push_back(std::move(value)); return *this; }
/**
* <p>The documents in the specified folder.</p>
*/
inline const Aws::Vector<DocumentMetadata>& GetDocuments() const{ return m_documents; }
/**
* <p>The documents in the specified folder.</p>
*/
inline void SetDocuments(const Aws::Vector<DocumentMetadata>& value) { m_documents = value; }
/**
* <p>The documents in the specified folder.</p>
*/
inline void SetDocuments(Aws::Vector<DocumentMetadata>&& value) { m_documents = std::move(value); }
/**
* <p>The documents in the specified folder.</p>
*/
inline DescribeFolderContentsResult& WithDocuments(const Aws::Vector<DocumentMetadata>& value) { SetDocuments(value); return *this;}
/**
* <p>The documents in the specified folder.</p>
*/
inline DescribeFolderContentsResult& WithDocuments(Aws::Vector<DocumentMetadata>&& value) { SetDocuments(std::move(value)); return *this;}
/**
* <p>The documents in the specified folder.</p>
*/
inline DescribeFolderContentsResult& AddDocuments(const DocumentMetadata& value) { m_documents.push_back(value); return *this; }
/**
* <p>The documents in the specified folder.</p>
*/
inline DescribeFolderContentsResult& AddDocuments(DocumentMetadata&& value) { m_documents.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeFolderContentsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeFolderContentsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeFolderContentsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<FolderMetadata> m_folders;
Aws::Vector<DocumentMetadata> m_documents;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeGroupsRequest : public WorkDocsRequest
{
public:
DescribeGroupsRequest();
// 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 "DescribeGroups"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeGroupsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeGroupsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeGroupsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>A query to describe groups by group name.</p>
*/
inline const Aws::String& GetSearchQuery() const{ return m_searchQuery; }
/**
* <p>A query to describe groups by group name.</p>
*/
inline bool SearchQueryHasBeenSet() const { return m_searchQueryHasBeenSet; }
/**
* <p>A query to describe groups by group name.</p>
*/
inline void SetSearchQuery(const Aws::String& value) { m_searchQueryHasBeenSet = true; m_searchQuery = value; }
/**
* <p>A query to describe groups by group name.</p>
*/
inline void SetSearchQuery(Aws::String&& value) { m_searchQueryHasBeenSet = true; m_searchQuery = std::move(value); }
/**
* <p>A query to describe groups by group name.</p>
*/
inline void SetSearchQuery(const char* value) { m_searchQueryHasBeenSet = true; m_searchQuery.assign(value); }
/**
* <p>A query to describe groups by group name.</p>
*/
inline DescribeGroupsRequest& WithSearchQuery(const Aws::String& value) { SetSearchQuery(value); return *this;}
/**
* <p>A query to describe groups by group name.</p>
*/
inline DescribeGroupsRequest& WithSearchQuery(Aws::String&& value) { SetSearchQuery(std::move(value)); return *this;}
/**
* <p>A query to describe groups by group name.</p>
*/
inline DescribeGroupsRequest& WithSearchQuery(const char* value) { SetSearchQuery(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline DescribeGroupsRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeGroupsRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeGroupsRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeGroupsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeGroupsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeGroupsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline DescribeGroupsRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_searchQuery;
bool m_searchQueryHasBeenSet;
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/GroupMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeGroupsResult
{
public:
DescribeGroupsResult();
DescribeGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of groups.</p>
*/
inline const Aws::Vector<GroupMetadata>& GetGroups() const{ return m_groups; }
/**
* <p>The list of groups.</p>
*/
inline void SetGroups(const Aws::Vector<GroupMetadata>& value) { m_groups = value; }
/**
* <p>The list of groups.</p>
*/
inline void SetGroups(Aws::Vector<GroupMetadata>&& value) { m_groups = std::move(value); }
/**
* <p>The list of groups.</p>
*/
inline DescribeGroupsResult& WithGroups(const Aws::Vector<GroupMetadata>& value) { SetGroups(value); return *this;}
/**
* <p>The list of groups.</p>
*/
inline DescribeGroupsResult& WithGroups(Aws::Vector<GroupMetadata>&& value) { SetGroups(std::move(value)); return *this;}
/**
* <p>The list of groups.</p>
*/
inline DescribeGroupsResult& AddGroups(const GroupMetadata& value) { m_groups.push_back(value); return *this; }
/**
* <p>The list of groups.</p>
*/
inline DescribeGroupsResult& AddGroups(GroupMetadata&& value) { m_groups.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeGroupsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeGroupsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeGroupsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<GroupMetadata> m_groups;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeNotificationSubscriptionsRequest : public WorkDocsRequest
{
public:
DescribeNotificationSubscriptionsRequest();
// 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 "DescribeNotificationSubscriptions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline DescribeNotificationSubscriptionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
private:
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/Subscription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeNotificationSubscriptionsResult
{
public:
DescribeNotificationSubscriptionsResult();
DescribeNotificationSubscriptionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeNotificationSubscriptionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The subscriptions.</p>
*/
inline const Aws::Vector<Subscription>& GetSubscriptions() const{ return m_subscriptions; }
/**
* <p>The subscriptions.</p>
*/
inline void SetSubscriptions(const Aws::Vector<Subscription>& value) { m_subscriptions = value; }
/**
* <p>The subscriptions.</p>
*/
inline void SetSubscriptions(Aws::Vector<Subscription>&& value) { m_subscriptions = std::move(value); }
/**
* <p>The subscriptions.</p>
*/
inline DescribeNotificationSubscriptionsResult& WithSubscriptions(const Aws::Vector<Subscription>& value) { SetSubscriptions(value); return *this;}
/**
* <p>The subscriptions.</p>
*/
inline DescribeNotificationSubscriptionsResult& WithSubscriptions(Aws::Vector<Subscription>&& value) { SetSubscriptions(std::move(value)); return *this;}
/**
* <p>The subscriptions.</p>
*/
inline DescribeNotificationSubscriptionsResult& AddSubscriptions(const Subscription& value) { m_subscriptions.push_back(value); return *this; }
/**
* <p>The subscriptions.</p>
*/
inline DescribeNotificationSubscriptionsResult& AddSubscriptions(Subscription&& value) { m_subscriptions.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeNotificationSubscriptionsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeNotificationSubscriptionsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeNotificationSubscriptionsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<Subscription> m_subscriptions;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeResourcePermissionsRequest : public WorkDocsRequest
{
public:
DescribeResourcePermissionsRequest();
// 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 "DescribeResourcePermissions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeResourcePermissionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeResourcePermissionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeResourcePermissionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline DescribeResourcePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline DescribeResourcePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline DescribeResourcePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline DescribeResourcePermissionsRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline DescribeResourcePermissionsRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
/**
* <p>The ID of the principal to filter permissions by.</p>
*/
inline DescribeResourcePermissionsRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of items to return with this call.</p>
*/
inline DescribeResourcePermissionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline DescribeResourcePermissionsRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline DescribeResourcePermissionsRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call)</p>
*/
inline DescribeResourcePermissionsRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_principalId;
bool m_principalIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/Principal.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeResourcePermissionsResult
{
public:
DescribeResourcePermissionsResult();
DescribeResourcePermissionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeResourcePermissionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The principals.</p>
*/
inline const Aws::Vector<Principal>& GetPrincipals() const{ return m_principals; }
/**
* <p>The principals.</p>
*/
inline void SetPrincipals(const Aws::Vector<Principal>& value) { m_principals = value; }
/**
* <p>The principals.</p>
*/
inline void SetPrincipals(Aws::Vector<Principal>&& value) { m_principals = std::move(value); }
/**
* <p>The principals.</p>
*/
inline DescribeResourcePermissionsResult& WithPrincipals(const Aws::Vector<Principal>& value) { SetPrincipals(value); return *this;}
/**
* <p>The principals.</p>
*/
inline DescribeResourcePermissionsResult& WithPrincipals(Aws::Vector<Principal>&& value) { SetPrincipals(std::move(value)); return *this;}
/**
* <p>The principals.</p>
*/
inline DescribeResourcePermissionsResult& AddPrincipals(const Principal& value) { m_principals.push_back(value); return *this; }
/**
* <p>The principals.</p>
*/
inline DescribeResourcePermissionsResult& AddPrincipals(Principal&& value) { m_principals.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeResourcePermissionsResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeResourcePermissionsResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeResourcePermissionsResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<Principal> m_principals;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeRootFoldersRequest : public WorkDocsRequest
{
public:
DescribeRootFoldersRequest();
// 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 "DescribeRootFolders"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline DescribeRootFoldersRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline DescribeRootFoldersRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline DescribeRootFoldersRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(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 DescribeRootFoldersRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeRootFoldersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeRootFoldersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeRootFoldersRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/FolderMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeRootFoldersResult
{
public:
DescribeRootFoldersResult();
DescribeRootFoldersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeRootFoldersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user's special folders.</p>
*/
inline const Aws::Vector<FolderMetadata>& GetFolders() const{ return m_folders; }
/**
* <p>The user's special folders.</p>
*/
inline void SetFolders(const Aws::Vector<FolderMetadata>& value) { m_folders = value; }
/**
* <p>The user's special folders.</p>
*/
inline void SetFolders(Aws::Vector<FolderMetadata>&& value) { m_folders = std::move(value); }
/**
* <p>The user's special folders.</p>
*/
inline DescribeRootFoldersResult& WithFolders(const Aws::Vector<FolderMetadata>& value) { SetFolders(value); return *this;}
/**
* <p>The user's special folders.</p>
*/
inline DescribeRootFoldersResult& WithFolders(Aws::Vector<FolderMetadata>&& value) { SetFolders(std::move(value)); return *this;}
/**
* <p>The user's special folders.</p>
*/
inline DescribeRootFoldersResult& AddFolders(const FolderMetadata& value) { m_folders.push_back(value); return *this; }
/**
* <p>The user's special folders.</p>
*/
inline DescribeRootFoldersResult& AddFolders(FolderMetadata&& value) { m_folders.push_back(std::move(value)); return *this; }
/**
* <p>The marker for the next set of results.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeRootFoldersResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeRootFoldersResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results.</p>
*/
inline DescribeRootFoldersResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<FolderMetadata> m_folders;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,464 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/UserFilterType.h>
#include <aws/workdocs/model/OrderType.h>
#include <aws/workdocs/model/UserSortType.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API DescribeUsersRequest : public WorkDocsRequest
{
public:
DescribeUsersRequest();
// 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 "DescribeUsers"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeUsersRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeUsersRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline DescribeUsersRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
/**
* <p>The ID of the organization.</p>
*/
inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
/**
* <p>The ID of the organization.</p>
*/
inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
/**
* <p>The ID of the organization.</p>
*/
inline DescribeUsersRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeUsersRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
/**
* <p>The ID of the organization.</p>
*/
inline DescribeUsersRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
/**
* <p>The IDs of the users.</p>
*/
inline const Aws::String& GetUserIds() const{ return m_userIds; }
/**
* <p>The IDs of the users.</p>
*/
inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
/**
* <p>The IDs of the users.</p>
*/
inline void SetUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
/**
* <p>The IDs of the users.</p>
*/
inline void SetUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
/**
* <p>The IDs of the users.</p>
*/
inline void SetUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.assign(value); }
/**
* <p>The IDs of the users.</p>
*/
inline DescribeUsersRequest& WithUserIds(const Aws::String& value) { SetUserIds(value); return *this;}
/**
* <p>The IDs of the users.</p>
*/
inline DescribeUsersRequest& WithUserIds(Aws::String&& value) { SetUserIds(std::move(value)); return *this;}
/**
* <p>The IDs of the users.</p>
*/
inline DescribeUsersRequest& WithUserIds(const char* value) { SetUserIds(value); return *this;}
/**
* <p>A query to filter users by user name.</p>
*/
inline const Aws::String& GetQuery() const{ return m_query; }
/**
* <p>A query to filter users by user name.</p>
*/
inline bool QueryHasBeenSet() const { return m_queryHasBeenSet; }
/**
* <p>A query to filter users by user name.</p>
*/
inline void SetQuery(const Aws::String& value) { m_queryHasBeenSet = true; m_query = value; }
/**
* <p>A query to filter users by user name.</p>
*/
inline void SetQuery(Aws::String&& value) { m_queryHasBeenSet = true; m_query = std::move(value); }
/**
* <p>A query to filter users by user name.</p>
*/
inline void SetQuery(const char* value) { m_queryHasBeenSet = true; m_query.assign(value); }
/**
* <p>A query to filter users by user name.</p>
*/
inline DescribeUsersRequest& WithQuery(const Aws::String& value) { SetQuery(value); return *this;}
/**
* <p>A query to filter users by user name.</p>
*/
inline DescribeUsersRequest& WithQuery(Aws::String&& value) { SetQuery(std::move(value)); return *this;}
/**
* <p>A query to filter users by user name.</p>
*/
inline DescribeUsersRequest& WithQuery(const char* value) { SetQuery(value); return *this;}
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline const UserFilterType& GetInclude() const{ return m_include; }
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline void SetInclude(const UserFilterType& value) { m_includeHasBeenSet = true; m_include = value; }
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline void SetInclude(UserFilterType&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline DescribeUsersRequest& WithInclude(const UserFilterType& value) { SetInclude(value); return *this;}
/**
* <p>The state of the users. Specify "ALL" to include inactive users.</p>
*/
inline DescribeUsersRequest& WithInclude(UserFilterType&& value) { SetInclude(std::move(value)); return *this;}
/**
* <p>The order for the results.</p>
*/
inline const OrderType& GetOrder() const{ return m_order; }
/**
* <p>The order for the results.</p>
*/
inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
/**
* <p>The order for the results.</p>
*/
inline void SetOrder(const OrderType& value) { m_orderHasBeenSet = true; m_order = value; }
/**
* <p>The order for the results.</p>
*/
inline void SetOrder(OrderType&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
/**
* <p>The order for the results.</p>
*/
inline DescribeUsersRequest& WithOrder(const OrderType& value) { SetOrder(value); return *this;}
/**
* <p>The order for the results.</p>
*/
inline DescribeUsersRequest& WithOrder(OrderType&& value) { SetOrder(std::move(value)); return *this;}
/**
* <p>The sorting criteria.</p>
*/
inline const UserSortType& GetSort() const{ return m_sort; }
/**
* <p>The sorting criteria.</p>
*/
inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
/**
* <p>The sorting criteria.</p>
*/
inline void SetSort(const UserSortType& value) { m_sortHasBeenSet = true; m_sort = value; }
/**
* <p>The sorting criteria.</p>
*/
inline void SetSort(UserSortType&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
/**
* <p>The sorting criteria.</p>
*/
inline DescribeUsersRequest& WithSort(const UserSortType& value) { SetSort(value); return *this;}
/**
* <p>The sorting criteria.</p>
*/
inline DescribeUsersRequest& WithSort(UserSortType&& value) { SetSort(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeUsersRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeUsersRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. (You received this marker from a
* previous call.)</p>
*/
inline DescribeUsersRequest& WithMarker(const char* value) { SetMarker(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 DescribeUsersRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline const Aws::String& GetFields() const{ return m_fields; }
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; }
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); }
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline DescribeUsersRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline DescribeUsersRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;}
/**
* <p>A comma-separated list of values. Specify "STORAGE_METADATA" to include the
* user storage quota and utilization information.</p>
*/
inline DescribeUsersRequest& WithFields(const char* value) { SetFields(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_organizationId;
bool m_organizationIdHasBeenSet;
Aws::String m_userIds;
bool m_userIdsHasBeenSet;
Aws::String m_query;
bool m_queryHasBeenSet;
UserFilterType m_include;
bool m_includeHasBeenSet;
OrderType m_order;
bool m_orderHasBeenSet;
UserSortType m_sort;
bool m_sortHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_fields;
bool m_fieldsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/User.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API DescribeUsersResult
{
public:
DescribeUsersResult();
DescribeUsersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeUsersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The users.</p>
*/
inline const Aws::Vector<User>& GetUsers() const{ return m_users; }
/**
* <p>The users.</p>
*/
inline void SetUsers(const Aws::Vector<User>& value) { m_users = value; }
/**
* <p>The users.</p>
*/
inline void SetUsers(Aws::Vector<User>&& value) { m_users = std::move(value); }
/**
* <p>The users.</p>
*/
inline DescribeUsersResult& WithUsers(const Aws::Vector<User>& value) { SetUsers(value); return *this;}
/**
* <p>The users.</p>
*/
inline DescribeUsersResult& WithUsers(Aws::Vector<User>&& value) { SetUsers(std::move(value)); return *this;}
/**
* <p>The users.</p>
*/
inline DescribeUsersResult& AddUsers(const User& value) { m_users.push_back(value); return *this; }
/**
* <p>The users.</p>
*/
inline DescribeUsersResult& AddUsers(User&& value) { m_users.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeUsersResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeUsersResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline DescribeUsersResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<User> m_users;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,365 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/workdocs/model/DocumentVersionMetadata.h>
#include <aws/workdocs/model/ResourceStateType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the document.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API DocumentMetadata
{
public:
DocumentMetadata();
DocumentMetadata(Aws::Utils::Json::JsonView jsonValue);
DocumentMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the document.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline DocumentMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DocumentMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline DocumentMetadata& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
/**
* <p>The ID of the creator.</p>
*/
inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
/**
* <p>The ID of the creator.</p>
*/
inline DocumentMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline DocumentMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline DocumentMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
/**
* <p>The ID of the parent folder.</p>
*/
inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline DocumentMetadata& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline DocumentMetadata& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline DocumentMetadata& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
/**
* <p>The time when the document was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The time when the document was created.</p>
*/
inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
/**
* <p>The time when the document was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
/**
* <p>The time when the document was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
/**
* <p>The time when the document was created.</p>
*/
inline DocumentMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The time when the document was created.</p>
*/
inline DocumentMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The time when the document was updated.</p>
*/
inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
/**
* <p>The time when the document was updated.</p>
*/
inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
/**
* <p>The time when the document was updated.</p>
*/
inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
/**
* <p>The time when the document was updated.</p>
*/
inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
/**
* <p>The time when the document was updated.</p>
*/
inline DocumentMetadata& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;}
/**
* <p>The time when the document was updated.</p>
*/
inline DocumentMetadata& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
/**
* <p>The latest version of the document.</p>
*/
inline const DocumentVersionMetadata& GetLatestVersionMetadata() const{ return m_latestVersionMetadata; }
/**
* <p>The latest version of the document.</p>
*/
inline bool LatestVersionMetadataHasBeenSet() const { return m_latestVersionMetadataHasBeenSet; }
/**
* <p>The latest version of the document.</p>
*/
inline void SetLatestVersionMetadata(const DocumentVersionMetadata& value) { m_latestVersionMetadataHasBeenSet = true; m_latestVersionMetadata = value; }
/**
* <p>The latest version of the document.</p>
*/
inline void SetLatestVersionMetadata(DocumentVersionMetadata&& value) { m_latestVersionMetadataHasBeenSet = true; m_latestVersionMetadata = std::move(value); }
/**
* <p>The latest version of the document.</p>
*/
inline DocumentMetadata& WithLatestVersionMetadata(const DocumentVersionMetadata& value) { SetLatestVersionMetadata(value); return *this;}
/**
* <p>The latest version of the document.</p>
*/
inline DocumentMetadata& WithLatestVersionMetadata(DocumentVersionMetadata&& value) { SetLatestVersionMetadata(std::move(value)); return *this;}
/**
* <p>The resource state.</p>
*/
inline const ResourceStateType& GetResourceState() const{ return m_resourceState; }
/**
* <p>The resource state.</p>
*/
inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
/**
* <p>The resource state.</p>
*/
inline void SetResourceState(const ResourceStateType& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
/**
* <p>The resource state.</p>
*/
inline void SetResourceState(ResourceStateType&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
/**
* <p>The resource state.</p>
*/
inline DocumentMetadata& WithResourceState(const ResourceStateType& value) { SetResourceState(value); return *this;}
/**
* <p>The resource state.</p>
*/
inline DocumentMetadata& WithResourceState(ResourceStateType&& value) { SetResourceState(std::move(value)); return *this;}
/**
* <p>List of labels on the document.</p>
*/
inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
/**
* <p>List of labels on the document.</p>
*/
inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
/**
* <p>List of labels on the document.</p>
*/
inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
/**
* <p>List of labels on the document.</p>
*/
inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
/**
* <p>List of labels on the document.</p>
*/
inline DocumentMetadata& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
/**
* <p>List of labels on the document.</p>
*/
inline DocumentMetadata& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
/**
* <p>List of labels on the document.</p>
*/
inline DocumentMetadata& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>List of labels on the document.</p>
*/
inline DocumentMetadata& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
/**
* <p>List of labels on the document.</p>
*/
inline DocumentMetadata& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_creatorId;
bool m_creatorIdHasBeenSet;
Aws::String m_parentFolderId;
bool m_parentFolderIdHasBeenSet;
Aws::Utils::DateTime m_createdTimestamp;
bool m_createdTimestampHasBeenSet;
Aws::Utils::DateTime m_modifiedTimestamp;
bool m_modifiedTimestampHasBeenSet;
DocumentVersionMetadata m_latestVersionMetadata;
bool m_latestVersionMetadataHasBeenSet;
ResourceStateType m_resourceState;
bool m_resourceStateHasBeenSet;
Aws::Vector<Aws::String> m_labels;
bool m_labelsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class DocumentSourceType
{
NOT_SET,
ORIGINAL,
WITH_COMMENTS
};
namespace DocumentSourceTypeMapper
{
AWS_WORKDOCS_API DocumentSourceType GetDocumentSourceTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForDocumentSourceType(DocumentSourceType value);
} // namespace DocumentSourceTypeMapper
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class DocumentStatusType
{
NOT_SET,
INITIALIZED,
ACTIVE
};
namespace DocumentStatusTypeMapper
{
AWS_WORKDOCS_API DocumentStatusType GetDocumentStatusTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForDocumentStatusType(DocumentStatusType value);
} // namespace DocumentStatusTypeMapper
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class DocumentThumbnailType
{
NOT_SET,
SMALL,
SMALL_HQ,
LARGE
};
namespace DocumentThumbnailTypeMapper
{
AWS_WORKDOCS_API DocumentThumbnailType GetDocumentThumbnailTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForDocumentThumbnailType(DocumentThumbnailType value);
} // namespace DocumentThumbnailTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,591 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/DocumentStatusType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/workdocs/model/DocumentThumbnailType.h>
#include <aws/workdocs/model/DocumentSourceType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes a version of a document.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DocumentVersionMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API DocumentVersionMetadata
{
public:
DocumentVersionMetadata();
DocumentVersionMetadata(Aws::Utils::Json::JsonView jsonValue);
DocumentVersionMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the version.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the version.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the version.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the version.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the version.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the version.</p>
*/
inline DocumentVersionMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the version.</p>
*/
inline DocumentVersionMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the version.</p>
*/
inline DocumentVersionMetadata& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the version.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the version.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the version.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the version.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the version.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the version.</p>
*/
inline DocumentVersionMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the version.</p>
*/
inline DocumentVersionMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the version.</p>
*/
inline DocumentVersionMetadata& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>The content type of the document.</p>
*/
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
/**
* <p>The content type of the document.</p>
*/
inline DocumentVersionMetadata& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline DocumentVersionMetadata& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline DocumentVersionMetadata& WithContentType(const char* value) { SetContentType(value); return *this;}
/**
* <p>The size of the document, in bytes.</p>
*/
inline long long GetSize() const{ return m_size; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline DocumentVersionMetadata& WithSize(long long value) { SetSize(value); return *this;}
/**
* <p>The signature of the document.</p>
*/
inline const Aws::String& GetSignature() const{ return m_signature; }
/**
* <p>The signature of the document.</p>
*/
inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
/**
* <p>The signature of the document.</p>
*/
inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; }
/**
* <p>The signature of the document.</p>
*/
inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
/**
* <p>The signature of the document.</p>
*/
inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); }
/**
* <p>The signature of the document.</p>
*/
inline DocumentVersionMetadata& WithSignature(const Aws::String& value) { SetSignature(value); return *this;}
/**
* <p>The signature of the document.</p>
*/
inline DocumentVersionMetadata& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;}
/**
* <p>The signature of the document.</p>
*/
inline DocumentVersionMetadata& WithSignature(const char* value) { SetSignature(value); return *this;}
/**
* <p>The status of the document.</p>
*/
inline const DocumentStatusType& GetStatus() const{ return m_status; }
/**
* <p>The status of the document.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the document.</p>
*/
inline void SetStatus(const DocumentStatusType& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the document.</p>
*/
inline void SetStatus(DocumentStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the document.</p>
*/
inline DocumentVersionMetadata& WithStatus(const DocumentStatusType& value) { SetStatus(value); return *this;}
/**
* <p>The status of the document.</p>
*/
inline DocumentVersionMetadata& WithStatus(DocumentStatusType&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline DocumentVersionMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The timestamp when the document was first uploaded.</p>
*/
inline DocumentVersionMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline DocumentVersionMetadata& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;}
/**
* <p>The timestamp when the document was last uploaded.</p>
*/
inline DocumentVersionMetadata& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const{ return m_contentCreatedTimestamp; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline void SetContentCreatedTimestamp(const Aws::Utils::DateTime& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = value; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline void SetContentCreatedTimestamp(Aws::Utils::DateTime&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::move(value); }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline DocumentVersionMetadata& WithContentCreatedTimestamp(const Aws::Utils::DateTime& value) { SetContentCreatedTimestamp(value); return *this;}
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline DocumentVersionMetadata& WithContentCreatedTimestamp(Aws::Utils::DateTime&& value) { SetContentCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const{ return m_contentModifiedTimestamp; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline void SetContentModifiedTimestamp(const Aws::Utils::DateTime& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = value; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline void SetContentModifiedTimestamp(Aws::Utils::DateTime&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::move(value); }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline DocumentVersionMetadata& WithContentModifiedTimestamp(const Aws::Utils::DateTime& value) { SetContentModifiedTimestamp(value); return *this;}
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline DocumentVersionMetadata& WithContentModifiedTimestamp(Aws::Utils::DateTime&& value) { SetContentModifiedTimestamp(std::move(value)); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
/**
* <p>The ID of the creator.</p>
*/
inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
/**
* <p>The ID of the creator.</p>
*/
inline DocumentVersionMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline DocumentVersionMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline DocumentVersionMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
/**
* <p>The thumbnail of the document.</p>
*/
inline const Aws::Map<DocumentThumbnailType, Aws::String>& GetThumbnail() const{ return m_thumbnail; }
/**
* <p>The thumbnail of the document.</p>
*/
inline bool ThumbnailHasBeenSet() const { return m_thumbnailHasBeenSet; }
/**
* <p>The thumbnail of the document.</p>
*/
inline void SetThumbnail(const Aws::Map<DocumentThumbnailType, Aws::String>& value) { m_thumbnailHasBeenSet = true; m_thumbnail = value; }
/**
* <p>The thumbnail of the document.</p>
*/
inline void SetThumbnail(Aws::Map<DocumentThumbnailType, Aws::String>&& value) { m_thumbnailHasBeenSet = true; m_thumbnail = std::move(value); }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& WithThumbnail(const Aws::Map<DocumentThumbnailType, Aws::String>& value) { SetThumbnail(value); return *this;}
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& WithThumbnail(Aws::Map<DocumentThumbnailType, Aws::String>&& value) { SetThumbnail(std::move(value)); return *this;}
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, const Aws::String& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, value); return *this; }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, const Aws::String& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), value); return *this; }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, Aws::String&& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, std::move(value)); return *this; }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, Aws::String&& value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(DocumentThumbnailType&& key, const char* value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(std::move(key), value); return *this; }
/**
* <p>The thumbnail of the document.</p>
*/
inline DocumentVersionMetadata& AddThumbnail(const DocumentThumbnailType& key, const char* value) { m_thumbnailHasBeenSet = true; m_thumbnail.emplace(key, value); return *this; }
/**
* <p>The source of the document.</p>
*/
inline const Aws::Map<DocumentSourceType, Aws::String>& GetSource() const{ return m_source; }
/**
* <p>The source of the document.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The source of the document.</p>
*/
inline void SetSource(const Aws::Map<DocumentSourceType, Aws::String>& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The source of the document.</p>
*/
inline void SetSource(Aws::Map<DocumentSourceType, Aws::String>&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& WithSource(const Aws::Map<DocumentSourceType, Aws::String>& value) { SetSource(value); return *this;}
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& WithSource(Aws::Map<DocumentSourceType, Aws::String>&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, const Aws::String& value) { m_sourceHasBeenSet = true; m_source.emplace(key, value); return *this; }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, const Aws::String& value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), value); return *this; }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, Aws::String&& value) { m_sourceHasBeenSet = true; m_source.emplace(key, std::move(value)); return *this; }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, Aws::String&& value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(DocumentSourceType&& key, const char* value) { m_sourceHasBeenSet = true; m_source.emplace(std::move(key), value); return *this; }
/**
* <p>The source of the document.</p>
*/
inline DocumentVersionMetadata& AddSource(const DocumentSourceType& key, const char* value) { m_sourceHasBeenSet = true; m_source.emplace(key, value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_contentType;
bool m_contentTypeHasBeenSet;
long long m_size;
bool m_sizeHasBeenSet;
Aws::String m_signature;
bool m_signatureHasBeenSet;
DocumentStatusType m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_createdTimestamp;
bool m_createdTimestampHasBeenSet;
Aws::Utils::DateTime m_modifiedTimestamp;
bool m_modifiedTimestampHasBeenSet;
Aws::Utils::DateTime m_contentCreatedTimestamp;
bool m_contentCreatedTimestampHasBeenSet;
Aws::Utils::DateTime m_contentModifiedTimestamp;
bool m_contentModifiedTimestampHasBeenSet;
Aws::String m_creatorId;
bool m_creatorIdHasBeenSet;
Aws::Map<DocumentThumbnailType, Aws::String> m_thumbnail;
bool m_thumbnailHasBeenSet;
Aws::Map<DocumentSourceType, Aws::String> m_source;
bool m_sourceHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class DocumentVersionStatus
{
NOT_SET,
ACTIVE
};
namespace DocumentVersionStatusMapper
{
AWS_WORKDOCS_API DocumentVersionStatus GetDocumentVersionStatusForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForDocumentVersionStatus(DocumentVersionStatus value);
} // namespace DocumentVersionStatusMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>The resource does not exist.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/EntityNotExistsException">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API EntityNotExistsException
{
public:
EntityNotExistsException();
EntityNotExistsException(Aws::Utils::Json::JsonView jsonValue);
EntityNotExistsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetMessage() const{ return m_message; }
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
inline EntityNotExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline EntityNotExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline EntityNotExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::Vector<Aws::String>& GetEntityIds() const{ return m_entityIds; }
inline bool EntityIdsHasBeenSet() const { return m_entityIdsHasBeenSet; }
inline void SetEntityIds(const Aws::Vector<Aws::String>& value) { m_entityIdsHasBeenSet = true; m_entityIds = value; }
inline void SetEntityIds(Aws::Vector<Aws::String>&& value) { m_entityIdsHasBeenSet = true; m_entityIds = std::move(value); }
inline EntityNotExistsException& WithEntityIds(const Aws::Vector<Aws::String>& value) { SetEntityIds(value); return *this;}
inline EntityNotExistsException& WithEntityIds(Aws::Vector<Aws::String>&& value) { SetEntityIds(std::move(value)); return *this;}
inline EntityNotExistsException& AddEntityIds(const Aws::String& value) { m_entityIdsHasBeenSet = true; m_entityIds.push_back(value); return *this; }
inline EntityNotExistsException& AddEntityIds(Aws::String&& value) { m_entityIdsHasBeenSet = true; m_entityIds.push_back(std::move(value)); return *this; }
inline EntityNotExistsException& AddEntityIds(const char* value) { m_entityIdsHasBeenSet = true; m_entityIds.push_back(value); return *this; }
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::Vector<Aws::String> m_entityIds;
bool m_entityIdsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class FolderContentType
{
NOT_SET,
ALL,
DOCUMENT,
FOLDER
};
namespace FolderContentTypeMapper
{
AWS_WORKDOCS_API FolderContentType GetFolderContentTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForFolderContentType(FolderContentType value);
} // namespace FolderContentTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,474 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/workdocs/model/ResourceStateType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes a folder.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/FolderMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API FolderMetadata
{
public:
FolderMetadata();
FolderMetadata(Aws::Utils::Json::JsonView jsonValue);
FolderMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the folder.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline FolderMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline FolderMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline FolderMetadata& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the folder.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the folder.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the folder.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the folder.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the folder.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the folder.</p>
*/
inline FolderMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the folder.</p>
*/
inline FolderMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the folder.</p>
*/
inline FolderMetadata& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline const Aws::String& GetCreatorId() const{ return m_creatorId; }
/**
* <p>The ID of the creator.</p>
*/
inline bool CreatorIdHasBeenSet() const { return m_creatorIdHasBeenSet; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const Aws::String& value) { m_creatorIdHasBeenSet = true; m_creatorId = value; }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(Aws::String&& value) { m_creatorIdHasBeenSet = true; m_creatorId = std::move(value); }
/**
* <p>The ID of the creator.</p>
*/
inline void SetCreatorId(const char* value) { m_creatorIdHasBeenSet = true; m_creatorId.assign(value); }
/**
* <p>The ID of the creator.</p>
*/
inline FolderMetadata& WithCreatorId(const Aws::String& value) { SetCreatorId(value); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline FolderMetadata& WithCreatorId(Aws::String&& value) { SetCreatorId(std::move(value)); return *this;}
/**
* <p>The ID of the creator.</p>
*/
inline FolderMetadata& WithCreatorId(const char* value) { SetCreatorId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
/**
* <p>The ID of the parent folder.</p>
*/
inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline FolderMetadata& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline FolderMetadata& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline FolderMetadata& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
/**
* <p>The time when the folder was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The time when the folder was created.</p>
*/
inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
/**
* <p>The time when the folder was created.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; }
/**
* <p>The time when the folder was created.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); }
/**
* <p>The time when the folder was created.</p>
*/
inline FolderMetadata& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The time when the folder was created.</p>
*/
inline FolderMetadata& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The time when the folder was updated.</p>
*/
inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; }
/**
* <p>The time when the folder was updated.</p>
*/
inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; }
/**
* <p>The time when the folder was updated.</p>
*/
inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; }
/**
* <p>The time when the folder was updated.</p>
*/
inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); }
/**
* <p>The time when the folder was updated.</p>
*/
inline FolderMetadata& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;}
/**
* <p>The time when the folder was updated.</p>
*/
inline FolderMetadata& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;}
/**
* <p>The resource state of the folder.</p>
*/
inline const ResourceStateType& GetResourceState() const{ return m_resourceState; }
/**
* <p>The resource state of the folder.</p>
*/
inline bool ResourceStateHasBeenSet() const { return m_resourceStateHasBeenSet; }
/**
* <p>The resource state of the folder.</p>
*/
inline void SetResourceState(const ResourceStateType& value) { m_resourceStateHasBeenSet = true; m_resourceState = value; }
/**
* <p>The resource state of the folder.</p>
*/
inline void SetResourceState(ResourceStateType&& value) { m_resourceStateHasBeenSet = true; m_resourceState = std::move(value); }
/**
* <p>The resource state of the folder.</p>
*/
inline FolderMetadata& WithResourceState(const ResourceStateType& value) { SetResourceState(value); return *this;}
/**
* <p>The resource state of the folder.</p>
*/
inline FolderMetadata& WithResourceState(ResourceStateType&& value) { SetResourceState(std::move(value)); return *this;}
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline const Aws::String& GetSignature() const{ return m_signature; }
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; }
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); }
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); }
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline FolderMetadata& WithSignature(const Aws::String& value) { SetSignature(value); return *this;}
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline FolderMetadata& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;}
/**
* <p>The unique identifier created from the subfolders and documents of the
* folder.</p>
*/
inline FolderMetadata& WithSignature(const char* value) { SetSignature(value); return *this;}
/**
* <p>List of labels on the folder.</p>
*/
inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
/**
* <p>List of labels on the folder.</p>
*/
inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
/**
* <p>List of labels on the folder.</p>
*/
inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
/**
* <p>List of labels on the folder.</p>
*/
inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
/**
* <p>List of labels on the folder.</p>
*/
inline FolderMetadata& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
/**
* <p>List of labels on the folder.</p>
*/
inline FolderMetadata& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
/**
* <p>List of labels on the folder.</p>
*/
inline FolderMetadata& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>List of labels on the folder.</p>
*/
inline FolderMetadata& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
/**
* <p>List of labels on the folder.</p>
*/
inline FolderMetadata& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
/**
* <p>The size of the folder metadata.</p>
*/
inline long long GetSize() const{ return m_size; }
/**
* <p>The size of the folder metadata.</p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p>The size of the folder metadata.</p>
*/
inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p>The size of the folder metadata.</p>
*/
inline FolderMetadata& WithSize(long long value) { SetSize(value); return *this;}
/**
* <p>The size of the latest version of the folder metadata.</p>
*/
inline long long GetLatestVersionSize() const{ return m_latestVersionSize; }
/**
* <p>The size of the latest version of the folder metadata.</p>
*/
inline bool LatestVersionSizeHasBeenSet() const { return m_latestVersionSizeHasBeenSet; }
/**
* <p>The size of the latest version of the folder metadata.</p>
*/
inline void SetLatestVersionSize(long long value) { m_latestVersionSizeHasBeenSet = true; m_latestVersionSize = value; }
/**
* <p>The size of the latest version of the folder metadata.</p>
*/
inline FolderMetadata& WithLatestVersionSize(long long value) { SetLatestVersionSize(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_creatorId;
bool m_creatorIdHasBeenSet;
Aws::String m_parentFolderId;
bool m_parentFolderIdHasBeenSet;
Aws::Utils::DateTime m_createdTimestamp;
bool m_createdTimestampHasBeenSet;
Aws::Utils::DateTime m_modifiedTimestamp;
bool m_modifiedTimestampHasBeenSet;
ResourceStateType m_resourceState;
bool m_resourceStateHasBeenSet;
Aws::String m_signature;
bool m_signatureHasBeenSet;
Aws::Vector<Aws::String> m_labels;
bool m_labelsHasBeenSet;
long long m_size;
bool m_sizeHasBeenSet;
long long m_latestVersionSize;
bool m_latestVersionSizeHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetCurrentUserRequest : public WorkDocsRequest
{
public:
GetCurrentUserRequest();
// 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 "GetCurrentUser"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline GetCurrentUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline GetCurrentUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token.</p>
*/
inline GetCurrentUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/User.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetCurrentUserResult
{
public:
GetCurrentUserResult();
GetCurrentUserResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetCurrentUserResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Metadata of the user.</p>
*/
inline const User& GetUser() const{ return m_user; }
/**
* <p>Metadata of the user.</p>
*/
inline void SetUser(const User& value) { m_user = value; }
/**
* <p>Metadata of the user.</p>
*/
inline void SetUser(User&& value) { m_user = std::move(value); }
/**
* <p>Metadata of the user.</p>
*/
inline GetCurrentUserResult& WithUser(const User& value) { SetUser(value); return *this;}
/**
* <p>Metadata of the user.</p>
*/
inline GetCurrentUserResult& WithUser(User&& value) { SetUser(std::move(value)); return *this;}
private:
User m_user;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetDocumentPathRequest : public WorkDocsRequest
{
public:
GetDocumentPathRequest();
// 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 "GetDocumentPath"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentPathRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentPathRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentPathRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentPathRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentPathRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentPathRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline GetDocumentPathRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline const Aws::String& GetFields() const{ return m_fields; }
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; }
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); }
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline GetDocumentPathRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;}
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline GetDocumentPathRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;}
/**
* <p>A comma-separated list of values. Specify <code>NAME</code> to include the
* names of the parent folders.</p>
*/
inline GetDocumentPathRequest& WithFields(const char* value) { SetFields(value); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>This value is not supported.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>This value is not supported.</p>
*/
inline GetDocumentPathRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline GetDocumentPathRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline GetDocumentPathRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_fields;
bool m_fieldsHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/ResourcePath.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetDocumentPathResult
{
public:
GetDocumentPathResult();
GetDocumentPathResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDocumentPathResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The path information.</p>
*/
inline const ResourcePath& GetPath() const{ return m_path; }
/**
* <p>The path information.</p>
*/
inline void SetPath(const ResourcePath& value) { m_path = value; }
/**
* <p>The path information.</p>
*/
inline void SetPath(ResourcePath&& value) { m_path = std::move(value); }
/**
* <p>The path information.</p>
*/
inline GetDocumentPathResult& WithPath(const ResourcePath& value) { SetPath(value); return *this;}
/**
* <p>The path information.</p>
*/
inline GetDocumentPathResult& WithPath(ResourcePath&& value) { SetPath(std::move(value)); return *this;}
private:
ResourcePath m_path;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetDocumentRequest : public WorkDocsRequest
{
public:
GetDocumentRequest();
// 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 "GetDocument"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>Set this to <code>TRUE</code> to include custom metadata in the response.</p>
*/
inline bool GetIncludeCustomMetadata() const{ return m_includeCustomMetadata; }
/**
* <p>Set this to <code>TRUE</code> to include custom metadata in the response.</p>
*/
inline bool IncludeCustomMetadataHasBeenSet() const { return m_includeCustomMetadataHasBeenSet; }
/**
* <p>Set this to <code>TRUE</code> to include custom metadata in the response.</p>
*/
inline void SetIncludeCustomMetadata(bool value) { m_includeCustomMetadataHasBeenSet = true; m_includeCustomMetadata = value; }
/**
* <p>Set this to <code>TRUE</code> to include custom metadata in the response.</p>
*/
inline GetDocumentRequest& WithIncludeCustomMetadata(bool value) { SetIncludeCustomMetadata(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
bool m_includeCustomMetadata;
bool m_includeCustomMetadataHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/DocumentMetadata.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetDocumentResult
{
public:
GetDocumentResult();
GetDocumentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDocumentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The metadata details of the document.</p>
*/
inline const DocumentMetadata& GetMetadata() const{ return m_metadata; }
/**
* <p>The metadata details of the document.</p>
*/
inline void SetMetadata(const DocumentMetadata& value) { m_metadata = value; }
/**
* <p>The metadata details of the document.</p>
*/
inline void SetMetadata(DocumentMetadata&& value) { m_metadata = std::move(value); }
/**
* <p>The metadata details of the document.</p>
*/
inline GetDocumentResult& WithMetadata(const DocumentMetadata& value) { SetMetadata(value); return *this;}
/**
* <p>The metadata details of the document.</p>
*/
inline GetDocumentResult& WithMetadata(DocumentMetadata&& value) { SetMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the document.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
/**
* <p>The custom metadata on the document.</p>
*/
inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadata = value; }
/**
* <p>The custom metadata on the document.</p>
*/
inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadata = std::move(value); }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& WithCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomMetadata(value); return *this;}
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& WithCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadata.emplace(key, value); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the document.</p>
*/
inline GetDocumentResult& AddCustomMetadata(const char* key, const char* value) { m_customMetadata.emplace(key, value); return *this; }
private:
DocumentMetadata m_metadata;
Aws::Map<Aws::String, Aws::String> m_customMetadata;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetDocumentVersionRequest : public WorkDocsRequest
{
public:
GetDocumentVersionRequest();
// 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 "GetDocumentVersion"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentVersionRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentVersionRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetDocumentVersionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetDocumentId() const{ return m_documentId; }
/**
* <p>The ID of the document.</p>
*/
inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithDocumentId(const char* value) { SetDocumentId(value); return *this;}
/**
* <p>The version ID of the document.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The version ID of the document.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The version ID of the document.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The version ID of the document.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The version ID of the document.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The version ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The version ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The version ID of the document.</p>
*/
inline GetDocumentVersionRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline const Aws::String& GetFields() const{ return m_fields; }
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; }
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); }
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline GetDocumentVersionRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline GetDocumentVersionRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;}
/**
* <p>A comma-separated list of values. Specify "SOURCE" to include a URL for the
* source document.</p>
*/
inline GetDocumentVersionRequest& WithFields(const char* value) { SetFields(value); return *this;}
/**
* <p>Set this to TRUE to include custom metadata in the response.</p>
*/
inline bool GetIncludeCustomMetadata() const{ return m_includeCustomMetadata; }
/**
* <p>Set this to TRUE to include custom metadata in the response.</p>
*/
inline bool IncludeCustomMetadataHasBeenSet() const { return m_includeCustomMetadataHasBeenSet; }
/**
* <p>Set this to TRUE to include custom metadata in the response.</p>
*/
inline void SetIncludeCustomMetadata(bool value) { m_includeCustomMetadataHasBeenSet = true; m_includeCustomMetadata = value; }
/**
* <p>Set this to TRUE to include custom metadata in the response.</p>
*/
inline GetDocumentVersionRequest& WithIncludeCustomMetadata(bool value) { SetIncludeCustomMetadata(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_documentId;
bool m_documentIdHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
Aws::String m_fields;
bool m_fieldsHasBeenSet;
bool m_includeCustomMetadata;
bool m_includeCustomMetadataHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/DocumentVersionMetadata.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetDocumentVersionResult
{
public:
GetDocumentVersionResult();
GetDocumentVersionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDocumentVersionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The version metadata.</p>
*/
inline const DocumentVersionMetadata& GetMetadata() const{ return m_metadata; }
/**
* <p>The version metadata.</p>
*/
inline void SetMetadata(const DocumentVersionMetadata& value) { m_metadata = value; }
/**
* <p>The version metadata.</p>
*/
inline void SetMetadata(DocumentVersionMetadata&& value) { m_metadata = std::move(value); }
/**
* <p>The version metadata.</p>
*/
inline GetDocumentVersionResult& WithMetadata(const DocumentVersionMetadata& value) { SetMetadata(value); return *this;}
/**
* <p>The version metadata.</p>
*/
inline GetDocumentVersionResult& WithMetadata(DocumentVersionMetadata&& value) { SetMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the document version.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadata = value; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadata = std::move(value); }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& WithCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomMetadata(value); return *this;}
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& WithCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadata.emplace(key, value); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the document version.</p>
*/
inline GetDocumentVersionResult& AddCustomMetadata(const char* key, const char* value) { m_customMetadata.emplace(key, value); return *this; }
private:
DocumentVersionMetadata m_metadata;
Aws::Map<Aws::String, Aws::String> m_customMetadata;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetFolderPathRequest : public WorkDocsRequest
{
public:
GetFolderPathRequest();
// 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 "GetFolderPath"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderPathRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderPathRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderPathRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetFolderId() const{ return m_folderId; }
/**
* <p>The ID of the folder.</p>
*/
inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderPathRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderPathRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderPathRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of levels in the hierarchy to return.</p>
*/
inline GetFolderPathRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline const Aws::String& GetFields() const{ return m_fields; }
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline void SetFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields = value; }
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline void SetFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); }
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline void SetFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.assign(value); }
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline GetFolderPathRequest& WithFields(const Aws::String& value) { SetFields(value); return *this;}
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline GetFolderPathRequest& WithFields(Aws::String&& value) { SetFields(std::move(value)); return *this;}
/**
* <p>A comma-separated list of values. Specify "NAME" to include the names of the
* parent folders.</p>
*/
inline GetFolderPathRequest& WithFields(const char* value) { SetFields(value); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>This value is not supported.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>This value is not supported.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>This value is not supported.</p>
*/
inline GetFolderPathRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline GetFolderPathRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>This value is not supported.</p>
*/
inline GetFolderPathRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_folderId;
bool m_folderIdHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_fields;
bool m_fieldsHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/ResourcePath.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetFolderPathResult
{
public:
GetFolderPathResult();
GetFolderPathResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetFolderPathResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The path information.</p>
*/
inline const ResourcePath& GetPath() const{ return m_path; }
/**
* <p>The path information.</p>
*/
inline void SetPath(const ResourcePath& value) { m_path = value; }
/**
* <p>The path information.</p>
*/
inline void SetPath(ResourcePath&& value) { m_path = std::move(value); }
/**
* <p>The path information.</p>
*/
inline GetFolderPathResult& WithPath(const ResourcePath& value) { SetPath(value); return *this;}
/**
* <p>The path information.</p>
*/
inline GetFolderPathResult& WithPath(ResourcePath&& value) { SetPath(std::move(value)); return *this;}
private:
ResourcePath m_path;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetFolderRequest : public WorkDocsRequest
{
public:
GetFolderRequest();
// 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 "GetFolder"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetFolderRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline const Aws::String& GetFolderId() const{ return m_folderId; }
/**
* <p>The ID of the folder.</p>
*/
inline bool FolderIdHasBeenSet() const { return m_folderIdHasBeenSet; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const Aws::String& value) { m_folderIdHasBeenSet = true; m_folderId = value; }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(Aws::String&& value) { m_folderIdHasBeenSet = true; m_folderId = std::move(value); }
/**
* <p>The ID of the folder.</p>
*/
inline void SetFolderId(const char* value) { m_folderIdHasBeenSet = true; m_folderId.assign(value); }
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderRequest& WithFolderId(const Aws::String& value) { SetFolderId(value); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderRequest& WithFolderId(Aws::String&& value) { SetFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the folder.</p>
*/
inline GetFolderRequest& WithFolderId(const char* value) { SetFolderId(value); return *this;}
/**
* <p>Set to TRUE to include custom metadata in the response.</p>
*/
inline bool GetIncludeCustomMetadata() const{ return m_includeCustomMetadata; }
/**
* <p>Set to TRUE to include custom metadata in the response.</p>
*/
inline bool IncludeCustomMetadataHasBeenSet() const { return m_includeCustomMetadataHasBeenSet; }
/**
* <p>Set to TRUE to include custom metadata in the response.</p>
*/
inline void SetIncludeCustomMetadata(bool value) { m_includeCustomMetadataHasBeenSet = true; m_includeCustomMetadata = value; }
/**
* <p>Set to TRUE to include custom metadata in the response.</p>
*/
inline GetFolderRequest& WithIncludeCustomMetadata(bool value) { SetIncludeCustomMetadata(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_folderId;
bool m_folderIdHasBeenSet;
bool m_includeCustomMetadata;
bool m_includeCustomMetadataHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/FolderMetadata.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetFolderResult
{
public:
GetFolderResult();
GetFolderResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetFolderResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The metadata of the folder.</p>
*/
inline const FolderMetadata& GetMetadata() const{ return m_metadata; }
/**
* <p>The metadata of the folder.</p>
*/
inline void SetMetadata(const FolderMetadata& value) { m_metadata = value; }
/**
* <p>The metadata of the folder.</p>
*/
inline void SetMetadata(FolderMetadata&& value) { m_metadata = std::move(value); }
/**
* <p>The metadata of the folder.</p>
*/
inline GetFolderResult& WithMetadata(const FolderMetadata& value) { SetMetadata(value); return *this;}
/**
* <p>The metadata of the folder.</p>
*/
inline GetFolderResult& WithMetadata(FolderMetadata&& value) { SetMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the folder.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetCustomMetadata() const{ return m_customMetadata; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline void SetCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_customMetadata = value; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline void SetCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_customMetadata = std::move(value); }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& WithCustomMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetCustomMetadata(value); return *this;}
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& WithCustomMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetCustomMetadata(std::move(value)); return *this;}
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(const Aws::String& key, const Aws::String& value) { m_customMetadata.emplace(key, value); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(Aws::String&& key, const Aws::String& value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(const Aws::String& key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(Aws::String&& key, Aws::String&& value) { m_customMetadata.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(const char* key, Aws::String&& value) { m_customMetadata.emplace(key, std::move(value)); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(Aws::String&& key, const char* value) { m_customMetadata.emplace(std::move(key), value); return *this; }
/**
* <p>The custom metadata on the folder.</p>
*/
inline GetFolderResult& AddCustomMetadata(const char* key, const char* value) { m_customMetadata.emplace(key, value); return *this; }
private:
FolderMetadata m_metadata;
Aws::Map<Aws::String, Aws::String> m_customMetadata;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,262 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/ResourceCollectionType.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API GetResourcesRequest : public WorkDocsRequest
{
public:
GetResourcesRequest();
// 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 "GetResources"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetResourcesRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetResourcesRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>The Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline GetResourcesRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline const Aws::String& GetUserId() const{ return m_userId; }
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline GetResourcesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline GetResourcesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
/**
* <p>The user ID for the resource collection. This is a required field for
* accessing the API operation using IAM credentials.</p>
*/
inline GetResourcesRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
/**
* <p>The collection type.</p>
*/
inline const ResourceCollectionType& GetCollectionType() const{ return m_collectionType; }
/**
* <p>The collection type.</p>
*/
inline bool CollectionTypeHasBeenSet() const { return m_collectionTypeHasBeenSet; }
/**
* <p>The collection type.</p>
*/
inline void SetCollectionType(const ResourceCollectionType& value) { m_collectionTypeHasBeenSet = true; m_collectionType = value; }
/**
* <p>The collection type.</p>
*/
inline void SetCollectionType(ResourceCollectionType&& value) { m_collectionTypeHasBeenSet = true; m_collectionType = std::move(value); }
/**
* <p>The collection type.</p>
*/
inline GetResourcesRequest& WithCollectionType(const ResourceCollectionType& value) { SetCollectionType(value); return *this;}
/**
* <p>The collection type.</p>
*/
inline GetResourcesRequest& WithCollectionType(ResourceCollectionType&& value) { SetCollectionType(std::move(value)); return *this;}
/**
* <p>The maximum number of resources to return.</p>
*/
inline int GetLimit() const{ return m_limit; }
/**
* <p>The maximum number of resources to return.</p>
*/
inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
/**
* <p>The maximum number of resources to return.</p>
*/
inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
/**
* <p>The maximum number of resources to return.</p>
*/
inline GetResourcesRequest& WithLimit(int value) { SetLimit(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline GetResourcesRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline GetResourcesRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker for the next set of results. This marker was received from a
* previous call.</p>
*/
inline GetResourcesRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_userId;
bool m_userIdHasBeenSet;
ResourceCollectionType m_collectionType;
bool m_collectionTypeHasBeenSet;
int m_limit;
bool m_limitHasBeenSet;
Aws::String m_marker;
bool m_markerHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/FolderMetadata.h>
#include <aws/workdocs/model/DocumentMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API GetResourcesResult
{
public:
GetResourcesResult();
GetResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The folders in the specified folder.</p>
*/
inline const Aws::Vector<FolderMetadata>& GetFolders() const{ return m_folders; }
/**
* <p>The folders in the specified folder.</p>
*/
inline void SetFolders(const Aws::Vector<FolderMetadata>& value) { m_folders = value; }
/**
* <p>The folders in the specified folder.</p>
*/
inline void SetFolders(Aws::Vector<FolderMetadata>&& value) { m_folders = std::move(value); }
/**
* <p>The folders in the specified folder.</p>
*/
inline GetResourcesResult& WithFolders(const Aws::Vector<FolderMetadata>& value) { SetFolders(value); return *this;}
/**
* <p>The folders in the specified folder.</p>
*/
inline GetResourcesResult& WithFolders(Aws::Vector<FolderMetadata>&& value) { SetFolders(std::move(value)); return *this;}
/**
* <p>The folders in the specified folder.</p>
*/
inline GetResourcesResult& AddFolders(const FolderMetadata& value) { m_folders.push_back(value); return *this; }
/**
* <p>The folders in the specified folder.</p>
*/
inline GetResourcesResult& AddFolders(FolderMetadata&& value) { m_folders.push_back(std::move(value)); return *this; }
/**
* <p>The documents in the specified collection.</p>
*/
inline const Aws::Vector<DocumentMetadata>& GetDocuments() const{ return m_documents; }
/**
* <p>The documents in the specified collection.</p>
*/
inline void SetDocuments(const Aws::Vector<DocumentMetadata>& value) { m_documents = value; }
/**
* <p>The documents in the specified collection.</p>
*/
inline void SetDocuments(Aws::Vector<DocumentMetadata>&& value) { m_documents = std::move(value); }
/**
* <p>The documents in the specified collection.</p>
*/
inline GetResourcesResult& WithDocuments(const Aws::Vector<DocumentMetadata>& value) { SetDocuments(value); return *this;}
/**
* <p>The documents in the specified collection.</p>
*/
inline GetResourcesResult& WithDocuments(Aws::Vector<DocumentMetadata>&& value) { SetDocuments(std::move(value)); return *this;}
/**
* <p>The documents in the specified collection.</p>
*/
inline GetResourcesResult& AddDocuments(const DocumentMetadata& value) { m_documents.push_back(value); return *this; }
/**
* <p>The documents in the specified collection.</p>
*/
inline GetResourcesResult& AddDocuments(DocumentMetadata&& value) { m_documents.push_back(std::move(value)); return *this; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline const Aws::String& GetMarker() const{ return m_marker; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const Aws::String& value) { m_marker = value; }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(Aws::String&& value) { m_marker = std::move(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline void SetMarker(const char* value) { m_marker.assign(value); }
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline GetResourcesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline GetResourcesResult& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
/**
* <p>The marker to use when requesting the next set of results. If there are no
* additional results, the string is empty.</p>
*/
inline GetResourcesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
private:
Aws::Vector<FolderMetadata> m_folders;
Aws::Vector<DocumentMetadata> m_documents;
Aws::String m_marker;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_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 WorkDocs
{
namespace Model
{
/**
* <p>Describes the metadata of a user group.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GroupMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API GroupMetadata
{
public:
GroupMetadata();
GroupMetadata(Aws::Utils::Json::JsonView jsonValue);
GroupMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the user group.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the user group.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the user group.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the user group.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the user group.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the user group.</p>
*/
inline GroupMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the user group.</p>
*/
inline GroupMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the user group.</p>
*/
inline GroupMetadata& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the group.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the group.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the group.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the group.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the group.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the group.</p>
*/
inline GroupMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the group.</p>
*/
inline GroupMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the group.</p>
*/
inline GroupMetadata& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,362 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API InitiateDocumentVersionUploadRequest : public WorkDocsRequest
{
public:
InitiateDocumentVersionUploadRequest();
// 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 "InitiateDocumentVersionUpload"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the document.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the document.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the document.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the document.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the document.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the document.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the document.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline const Aws::Utils::DateTime& GetContentCreatedTimestamp() const{ return m_contentCreatedTimestamp; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline bool ContentCreatedTimestampHasBeenSet() const { return m_contentCreatedTimestampHasBeenSet; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline void SetContentCreatedTimestamp(const Aws::Utils::DateTime& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = value; }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline void SetContentCreatedTimestamp(Aws::Utils::DateTime&& value) { m_contentCreatedTimestampHasBeenSet = true; m_contentCreatedTimestamp = std::move(value); }
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentCreatedTimestamp(const Aws::Utils::DateTime& value) { SetContentCreatedTimestamp(value); return *this;}
/**
* <p>The timestamp when the content of the document was originally created.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentCreatedTimestamp(Aws::Utils::DateTime&& value) { SetContentCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline const Aws::Utils::DateTime& GetContentModifiedTimestamp() const{ return m_contentModifiedTimestamp; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline bool ContentModifiedTimestampHasBeenSet() const { return m_contentModifiedTimestampHasBeenSet; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline void SetContentModifiedTimestamp(const Aws::Utils::DateTime& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = value; }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline void SetContentModifiedTimestamp(Aws::Utils::DateTime&& value) { m_contentModifiedTimestampHasBeenSet = true; m_contentModifiedTimestamp = std::move(value); }
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentModifiedTimestamp(const Aws::Utils::DateTime& value) { SetContentModifiedTimestamp(value); return *this;}
/**
* <p>The timestamp when the content of the document was modified.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentModifiedTimestamp(Aws::Utils::DateTime&& value) { SetContentModifiedTimestamp(std::move(value)); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline const Aws::String& GetContentType() const{ return m_contentType; }
/**
* <p>The content type of the document.</p>
*/
inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
/**
* <p>The content type of the document.</p>
*/
inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
/**
* <p>The content type of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
/**
* <p>The content type of the document.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
/**
* <p>The size of the document, in bytes.</p>
*/
inline long long GetDocumentSizeInBytes() const{ return m_documentSizeInBytes; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline bool DocumentSizeInBytesHasBeenSet() const { return m_documentSizeInBytesHasBeenSet; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline void SetDocumentSizeInBytes(long long value) { m_documentSizeInBytesHasBeenSet = true; m_documentSizeInBytes = value; }
/**
* <p>The size of the document, in bytes.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithDocumentSizeInBytes(long long value) { SetDocumentSizeInBytes(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline const Aws::String& GetParentFolderId() const{ return m_parentFolderId; }
/**
* <p>The ID of the parent folder.</p>
*/
inline bool ParentFolderIdHasBeenSet() const { return m_parentFolderIdHasBeenSet; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const Aws::String& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = value; }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(Aws::String&& value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId = std::move(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline void SetParentFolderId(const char* value) { m_parentFolderIdHasBeenSet = true; m_parentFolderId.assign(value); }
/**
* <p>The ID of the parent folder.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithParentFolderId(const Aws::String& value) { SetParentFolderId(value); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithParentFolderId(Aws::String&& value) { SetParentFolderId(std::move(value)); return *this;}
/**
* <p>The ID of the parent folder.</p>
*/
inline InitiateDocumentVersionUploadRequest& WithParentFolderId(const char* value) { SetParentFolderId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Utils::DateTime m_contentCreatedTimestamp;
bool m_contentCreatedTimestampHasBeenSet;
Aws::Utils::DateTime m_contentModifiedTimestamp;
bool m_contentModifiedTimestampHasBeenSet;
Aws::String m_contentType;
bool m_contentTypeHasBeenSet;
long long m_documentSizeInBytes;
bool m_documentSizeInBytesHasBeenSet;
Aws::String m_parentFolderId;
bool m_parentFolderIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,96 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/DocumentMetadata.h>
#include <aws/workdocs/model/UploadMetadata.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
class AWS_WORKDOCS_API InitiateDocumentVersionUploadResult
{
public:
InitiateDocumentVersionUploadResult();
InitiateDocumentVersionUploadResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InitiateDocumentVersionUploadResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The document metadata.</p>
*/
inline const DocumentMetadata& GetMetadata() const{ return m_metadata; }
/**
* <p>The document metadata.</p>
*/
inline void SetMetadata(const DocumentMetadata& value) { m_metadata = value; }
/**
* <p>The document metadata.</p>
*/
inline void SetMetadata(DocumentMetadata&& value) { m_metadata = std::move(value); }
/**
* <p>The document metadata.</p>
*/
inline InitiateDocumentVersionUploadResult& WithMetadata(const DocumentMetadata& value) { SetMetadata(value); return *this;}
/**
* <p>The document metadata.</p>
*/
inline InitiateDocumentVersionUploadResult& WithMetadata(DocumentMetadata&& value) { SetMetadata(std::move(value)); return *this;}
/**
* <p>The upload metadata.</p>
*/
inline const UploadMetadata& GetUploadMetadata() const{ return m_uploadMetadata; }
/**
* <p>The upload metadata.</p>
*/
inline void SetUploadMetadata(const UploadMetadata& value) { m_uploadMetadata = value; }
/**
* <p>The upload metadata.</p>
*/
inline void SetUploadMetadata(UploadMetadata&& value) { m_uploadMetadata = std::move(value); }
/**
* <p>The upload metadata.</p>
*/
inline InitiateDocumentVersionUploadResult& WithUploadMetadata(const UploadMetadata& value) { SetUploadMetadata(value); return *this;}
/**
* <p>The upload metadata.</p>
*/
inline InitiateDocumentVersionUploadResult& WithUploadMetadata(UploadMetadata&& value) { SetUploadMetadata(std::move(value)); return *this;}
private:
DocumentMetadata m_metadata;
UploadMetadata m_uploadMetadata;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class LocaleType
{
NOT_SET,
en,
fr,
ko,
de,
es,
ja,
ru,
zh_CN,
zh_TW,
pt_BR,
default_
};
namespace LocaleTypeMapper
{
AWS_WORKDOCS_API LocaleType GetLocaleTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForLocaleType(LocaleType value);
} // namespace LocaleTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_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 WorkDocs
{
namespace Model
{
/**
* <p>Set of options which defines notification preferences of given
* action.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/NotificationOptions">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API NotificationOptions
{
public:
NotificationOptions();
NotificationOptions(Aws::Utils::Json::JsonView jsonValue);
NotificationOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Boolean value to indicate an email notification should be sent to the
* receipients.</p>
*/
inline bool GetSendEmail() const{ return m_sendEmail; }
/**
* <p>Boolean value to indicate an email notification should be sent to the
* receipients.</p>
*/
inline bool SendEmailHasBeenSet() const { return m_sendEmailHasBeenSet; }
/**
* <p>Boolean value to indicate an email notification should be sent to the
* receipients.</p>
*/
inline void SetSendEmail(bool value) { m_sendEmailHasBeenSet = true; m_sendEmail = value; }
/**
* <p>Boolean value to indicate an email notification should be sent to the
* receipients.</p>
*/
inline NotificationOptions& WithSendEmail(bool value) { SetSendEmail(value); return *this;}
/**
* <p>Text value to be included in the email body.</p>
*/
inline const Aws::String& GetEmailMessage() const{ return m_emailMessage; }
/**
* <p>Text value to be included in the email body.</p>
*/
inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
/**
* <p>Text value to be included in the email body.</p>
*/
inline void SetEmailMessage(const Aws::String& value) { m_emailMessageHasBeenSet = true; m_emailMessage = value; }
/**
* <p>Text value to be included in the email body.</p>
*/
inline void SetEmailMessage(Aws::String&& value) { m_emailMessageHasBeenSet = true; m_emailMessage = std::move(value); }
/**
* <p>Text value to be included in the email body.</p>
*/
inline void SetEmailMessage(const char* value) { m_emailMessageHasBeenSet = true; m_emailMessage.assign(value); }
/**
* <p>Text value to be included in the email body.</p>
*/
inline NotificationOptions& WithEmailMessage(const Aws::String& value) { SetEmailMessage(value); return *this;}
/**
* <p>Text value to be included in the email body.</p>
*/
inline NotificationOptions& WithEmailMessage(Aws::String&& value) { SetEmailMessage(std::move(value)); return *this;}
/**
* <p>Text value to be included in the email body.</p>
*/
inline NotificationOptions& WithEmailMessage(const char* value) { SetEmailMessage(value); return *this;}
private:
bool m_sendEmail;
bool m_sendEmailHasBeenSet;
Aws::String m_emailMessage;
bool m_emailMessageHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class OrderType
{
NOT_SET,
ASCENDING,
DESCENDING
};
namespace OrderTypeMapper
{
AWS_WORKDOCS_API OrderType GetOrderTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForOrderType(OrderType value);
} // namespace OrderTypeMapper
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workdocs/model/UserMetadata.h>
#include <aws/workdocs/model/GroupMetadata.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the users or user groups.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Participants">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API Participants
{
public:
Participants();
Participants(Aws::Utils::Json::JsonView jsonValue);
Participants& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The list of users.</p>
*/
inline const Aws::Vector<UserMetadata>& GetUsers() const{ return m_users; }
/**
* <p>The list of users.</p>
*/
inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
/**
* <p>The list of users.</p>
*/
inline void SetUsers(const Aws::Vector<UserMetadata>& value) { m_usersHasBeenSet = true; m_users = value; }
/**
* <p>The list of users.</p>
*/
inline void SetUsers(Aws::Vector<UserMetadata>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
/**
* <p>The list of users.</p>
*/
inline Participants& WithUsers(const Aws::Vector<UserMetadata>& value) { SetUsers(value); return *this;}
/**
* <p>The list of users.</p>
*/
inline Participants& WithUsers(Aws::Vector<UserMetadata>&& value) { SetUsers(std::move(value)); return *this;}
/**
* <p>The list of users.</p>
*/
inline Participants& AddUsers(const UserMetadata& value) { m_usersHasBeenSet = true; m_users.push_back(value); return *this; }
/**
* <p>The list of users.</p>
*/
inline Participants& AddUsers(UserMetadata&& value) { m_usersHasBeenSet = true; m_users.push_back(std::move(value)); return *this; }
/**
* <p>The list of user groups.</p>
*/
inline const Aws::Vector<GroupMetadata>& GetGroups() const{ return m_groups; }
/**
* <p>The list of user groups.</p>
*/
inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
/**
* <p>The list of user groups.</p>
*/
inline void SetGroups(const Aws::Vector<GroupMetadata>& value) { m_groupsHasBeenSet = true; m_groups = value; }
/**
* <p>The list of user groups.</p>
*/
inline void SetGroups(Aws::Vector<GroupMetadata>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
/**
* <p>The list of user groups.</p>
*/
inline Participants& WithGroups(const Aws::Vector<GroupMetadata>& value) { SetGroups(value); return *this;}
/**
* <p>The list of user groups.</p>
*/
inline Participants& WithGroups(Aws::Vector<GroupMetadata>&& value) { SetGroups(std::move(value)); return *this;}
/**
* <p>The list of user groups.</p>
*/
inline Participants& AddGroups(const GroupMetadata& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
/**
* <p>The list of user groups.</p>
*/
inline Participants& AddGroups(GroupMetadata&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
private:
Aws::Vector<UserMetadata> m_users;
bool m_usersHasBeenSet;
Aws::Vector<GroupMetadata> m_groups;
bool m_groupsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/RoleType.h>
#include <aws/workdocs/model/RolePermissionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the permissions.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/PermissionInfo">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API PermissionInfo
{
public:
PermissionInfo();
PermissionInfo(Aws::Utils::Json::JsonView jsonValue);
PermissionInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The role of the user.</p>
*/
inline const RoleType& GetRole() const{ return m_role; }
/**
* <p>The role of the user.</p>
*/
inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
/**
* <p>The role of the user.</p>
*/
inline void SetRole(const RoleType& value) { m_roleHasBeenSet = true; m_role = value; }
/**
* <p>The role of the user.</p>
*/
inline void SetRole(RoleType&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
/**
* <p>The role of the user.</p>
*/
inline PermissionInfo& WithRole(const RoleType& value) { SetRole(value); return *this;}
/**
* <p>The role of the user.</p>
*/
inline PermissionInfo& WithRole(RoleType&& value) { SetRole(std::move(value)); return *this;}
/**
* <p>The type of permissions.</p>
*/
inline const RolePermissionType& GetType() const{ return m_type; }
/**
* <p>The type of permissions.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of permissions.</p>
*/
inline void SetType(const RolePermissionType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of permissions.</p>
*/
inline void SetType(RolePermissionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of permissions.</p>
*/
inline PermissionInfo& WithType(const RolePermissionType& value) { SetType(value); return *this;}
/**
* <p>The type of permissions.</p>
*/
inline PermissionInfo& WithType(RolePermissionType&& value) { SetType(std::move(value)); return *this;}
private:
RoleType m_role;
bool m_roleHasBeenSet;
RolePermissionType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,169 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/PrincipalType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workdocs/model/PermissionInfo.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/Principal">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API Principal
{
public:
Principal();
Principal(Aws::Utils::Json::JsonView jsonValue);
Principal& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the resource.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline Principal& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline Principal& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline Principal& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The type of resource.</p>
*/
inline const PrincipalType& GetType() const{ return m_type; }
/**
* <p>The type of resource.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of resource.</p>
*/
inline void SetType(const PrincipalType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of resource.</p>
*/
inline void SetType(PrincipalType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of resource.</p>
*/
inline Principal& WithType(const PrincipalType& value) { SetType(value); return *this;}
/**
* <p>The type of resource.</p>
*/
inline Principal& WithType(PrincipalType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The permission information for the resource.</p>
*/
inline const Aws::Vector<PermissionInfo>& GetRoles() const{ return m_roles; }
/**
* <p>The permission information for the resource.</p>
*/
inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; }
/**
* <p>The permission information for the resource.</p>
*/
inline void SetRoles(const Aws::Vector<PermissionInfo>& value) { m_rolesHasBeenSet = true; m_roles = value; }
/**
* <p>The permission information for the resource.</p>
*/
inline void SetRoles(Aws::Vector<PermissionInfo>&& value) { m_rolesHasBeenSet = true; m_roles = std::move(value); }
/**
* <p>The permission information for the resource.</p>
*/
inline Principal& WithRoles(const Aws::Vector<PermissionInfo>& value) { SetRoles(value); return *this;}
/**
* <p>The permission information for the resource.</p>
*/
inline Principal& WithRoles(Aws::Vector<PermissionInfo>&& value) { SetRoles(std::move(value)); return *this;}
/**
* <p>The permission information for the resource.</p>
*/
inline Principal& AddRoles(const PermissionInfo& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; }
/**
* <p>The permission information for the resource.</p>
*/
inline Principal& AddRoles(PermissionInfo&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
PrincipalType m_type;
bool m_typeHasBeenSet;
Aws::Vector<PermissionInfo> m_roles;
bool m_rolesHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class PrincipalType
{
NOT_SET,
USER,
GROUP,
INVITE,
ANONYMOUS,
ORGANIZATION
};
namespace PrincipalTypeMapper
{
AWS_WORKDOCS_API PrincipalType GetPrincipalTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForPrincipalType(PrincipalType value);
} // namespace PrincipalTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API RemoveAllResourcePermissionsRequest : public WorkDocsRequest
{
public:
RemoveAllResourcePermissionsRequest();
// 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 "RemoveAllResourcePermissions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline RemoveAllResourcePermissionsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,222 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/WorkDocsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/PrincipalType.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace WorkDocs
{
namespace Model
{
/**
*/
class AWS_WORKDOCS_API RemoveResourcePermissionRequest : public WorkDocsRequest
{
public:
RemoveResourcePermissionRequest();
// 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 "RemoveResourcePermission"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveResourcePermissionRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveResourcePermissionRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
/**
* <p>Amazon WorkDocs authentication token. Not required when using AWS
* administrator credentials to access the API.</p>
*/
inline RemoveResourcePermissionRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The principal ID of the resource.</p>
*/
inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
/**
* <p>The principal ID of the resource.</p>
*/
inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
/**
* <p>The principal ID of the resource.</p>
*/
inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
/**
* <p>The principal ID of the resource.</p>
*/
inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
/**
* <p>The principal ID of the resource.</p>
*/
inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
/**
* <p>The principal ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
/**
* <p>The principal ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
/**
* <p>The principal ID of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
/**
* <p>The principal type of the resource.</p>
*/
inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
/**
* <p>The principal type of the resource.</p>
*/
inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
/**
* <p>The principal type of the resource.</p>
*/
inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
/**
* <p>The principal type of the resource.</p>
*/
inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
/**
* <p>The principal type of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
/**
* <p>The principal type of the resource.</p>
*/
inline RemoveResourcePermissionRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
private:
Aws::String m_authenticationToken;
bool m_authenticationTokenHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_principalId;
bool m_principalIdHasBeenSet;
PrincipalType m_principalType;
bool m_principalTypeHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class ResourceCollectionType
{
NOT_SET,
SHARED_WITH_ME
};
namespace ResourceCollectionTypeMapper
{
AWS_WORKDOCS_API ResourceCollectionType GetResourceCollectionTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForResourceCollectionType(ResourceCollectionType value);
} // namespace ResourceCollectionTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,342 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/workdocs/model/ResourceType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/workdocs/model/UserMetadata.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the metadata of a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourceMetadata">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API ResourceMetadata
{
public:
ResourceMetadata();
ResourceMetadata(Aws::Utils::Json::JsonView jsonValue);
ResourceMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of resource.</p>
*/
inline const ResourceType& GetType() const{ return m_type; }
/**
* <p>The type of resource.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of resource.</p>
*/
inline void SetType(const ResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of resource.</p>
*/
inline void SetType(ResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of resource.</p>
*/
inline ResourceMetadata& WithType(const ResourceType& value) { SetType(value); return *this;}
/**
* <p>The type of resource.</p>
*/
inline ResourceMetadata& WithType(ResourceType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the resource.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the resource.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the resource.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the resource.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the resource.</p>
*/
inline ResourceMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline ResourceMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the resource.</p>
*/
inline ResourceMetadata& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline const Aws::String& GetOriginalName() const{ return m_originalName; }
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline bool OriginalNameHasBeenSet() const { return m_originalNameHasBeenSet; }
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline void SetOriginalName(const Aws::String& value) { m_originalNameHasBeenSet = true; m_originalName = value; }
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline void SetOriginalName(Aws::String&& value) { m_originalNameHasBeenSet = true; m_originalName = std::move(value); }
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline void SetOriginalName(const char* value) { m_originalNameHasBeenSet = true; m_originalName.assign(value); }
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithOriginalName(const Aws::String& value) { SetOriginalName(value); return *this;}
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithOriginalName(Aws::String&& value) { SetOriginalName(std::move(value)); return *this;}
/**
* <p>The original name of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithOriginalName(const char* value) { SetOriginalName(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the resource.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline ResourceMetadata& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline ResourceMetadata& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline ResourceMetadata& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline const Aws::String& GetVersionId() const{ return m_versionId; }
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline ResourceMetadata& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline ResourceMetadata& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
/**
* <p>The version ID of the resource. This is an optional field and is filled for
* action on document version.</p>
*/
inline ResourceMetadata& WithVersionId(const char* value) { SetVersionId(value); return *this;}
/**
* <p>The owner of the resource.</p>
*/
inline const UserMetadata& GetOwner() const{ return m_owner; }
/**
* <p>The owner of the resource.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The owner of the resource.</p>
*/
inline void SetOwner(const UserMetadata& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The owner of the resource.</p>
*/
inline void SetOwner(UserMetadata&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The owner of the resource.</p>
*/
inline ResourceMetadata& WithOwner(const UserMetadata& value) { SetOwner(value); return *this;}
/**
* <p>The owner of the resource.</p>
*/
inline ResourceMetadata& WithOwner(UserMetadata&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline const Aws::String& GetParentId() const{ return m_parentId; }
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline bool ParentIdHasBeenSet() const { return m_parentIdHasBeenSet; }
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline void SetParentId(const Aws::String& value) { m_parentIdHasBeenSet = true; m_parentId = value; }
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline void SetParentId(Aws::String&& value) { m_parentIdHasBeenSet = true; m_parentId = std::move(value); }
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline void SetParentId(const char* value) { m_parentIdHasBeenSet = true; m_parentId.assign(value); }
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithParentId(const Aws::String& value) { SetParentId(value); return *this;}
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithParentId(Aws::String&& value) { SetParentId(std::move(value)); return *this;}
/**
* <p>The parent ID of the resource before a rename operation.</p>
*/
inline ResourceMetadata& WithParentId(const char* value) { SetParentId(value); return *this;}
private:
ResourceType m_type;
bool m_typeHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_originalName;
bool m_originalNameHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_versionId;
bool m_versionIdHasBeenSet;
UserMetadata m_owner;
bool m_ownerHasBeenSet;
Aws::String m_parentId;
bool m_parentIdHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workdocs/model/ResourcePathComponent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WorkDocs
{
namespace Model
{
/**
* <p>Describes the path information of a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePath">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API ResourcePath
{
public:
ResourcePath();
ResourcePath(Aws::Utils::Json::JsonView jsonValue);
ResourcePath& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The components of the resource path.</p>
*/
inline const Aws::Vector<ResourcePathComponent>& GetComponents() const{ return m_components; }
/**
* <p>The components of the resource path.</p>
*/
inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; }
/**
* <p>The components of the resource path.</p>
*/
inline void SetComponents(const Aws::Vector<ResourcePathComponent>& value) { m_componentsHasBeenSet = true; m_components = value; }
/**
* <p>The components of the resource path.</p>
*/
inline void SetComponents(Aws::Vector<ResourcePathComponent>&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); }
/**
* <p>The components of the resource path.</p>
*/
inline ResourcePath& WithComponents(const Aws::Vector<ResourcePathComponent>& value) { SetComponents(value); return *this;}
/**
* <p>The components of the resource path.</p>
*/
inline ResourcePath& WithComponents(Aws::Vector<ResourcePathComponent>&& value) { SetComponents(std::move(value)); return *this;}
/**
* <p>The components of the resource path.</p>
*/
inline ResourcePath& AddComponents(const ResourcePathComponent& value) { m_componentsHasBeenSet = true; m_components.push_back(value); return *this; }
/**
* <p>The components of the resource path.</p>
*/
inline ResourcePath& AddComponents(ResourcePathComponent&& value) { m_componentsHasBeenSet = true; m_components.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ResourcePathComponent> m_components;
bool m_componentsHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_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 WorkDocs
{
namespace Model
{
/**
* <p>Describes the resource path.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ResourcePathComponent">AWS
* API Reference</a></p>
*/
class AWS_WORKDOCS_API ResourcePathComponent
{
public:
ResourcePathComponent();
ResourcePathComponent(Aws::Utils::Json::JsonView jsonValue);
ResourcePathComponent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the resource path.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the resource path.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the resource path.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the resource path.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the resource path.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the resource path.</p>
*/
inline ResourcePathComponent& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the resource path.</p>
*/
inline ResourcePathComponent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the resource path.</p>
*/
inline ResourcePathComponent& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the resource path.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the resource path.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the resource path.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the resource path.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the resource path.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the resource path.</p>
*/
inline ResourcePathComponent& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the resource path.</p>
*/
inline ResourcePathComponent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the resource path.</p>
*/
inline ResourcePathComponent& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WorkDocs
} // 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/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class ResourceSortType
{
NOT_SET,
DATE,
NAME
};
namespace ResourceSortTypeMapper
{
AWS_WORKDOCS_API ResourceSortType GetResourceSortTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForResourceSortType(ResourceSortType value);
} // namespace ResourceSortTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/workdocs/WorkDocs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace WorkDocs
{
namespace Model
{
enum class ResourceStateType
{
NOT_SET,
ACTIVE,
RESTORING,
RECYCLING,
RECYCLED
};
namespace ResourceStateTypeMapper
{
AWS_WORKDOCS_API ResourceStateType GetResourceStateTypeForName(const Aws::String& name);
AWS_WORKDOCS_API Aws::String GetNameForResourceStateType(ResourceStateType value);
} // namespace ResourceStateTypeMapper
} // namespace Model
} // namespace WorkDocs
} // namespace Aws

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