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/datasync/DataSync_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace DataSyncEndpoint
{
AWS_DATASYNC_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace DataSyncEndpoint
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_DATASYNC_API DataSyncErrorMarshaller : 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,73 @@
/**
* 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
namespace DataSync
{
enum class DataSyncErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
INTERNAL= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_REQUEST
};
class AWS_DATASYNC_API DataSyncError : public Aws::Client::AWSError<DataSyncErrors>
{
public:
DataSyncError() {}
DataSyncError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<DataSyncErrors>(rhs) {}
DataSyncError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<DataSyncErrors>(rhs) {}
DataSyncError(const Aws::Client::AWSError<DataSyncErrors>& rhs) : Aws::Client::AWSError<DataSyncErrors>(rhs) {}
DataSyncError(Aws::Client::AWSError<DataSyncErrors>&& rhs) : Aws::Client::AWSError<DataSyncErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace DataSyncErrorMapper
{
AWS_DATASYNC_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace DataSync
{
class AWS_DATASYNC_API DataSyncRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~DataSyncRequest () {}
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, "2018-11-09"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace DataSync
} // 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_DATASYNC_EXPORTS
#define AWS_DATASYNC_API __declspec(dllexport)
#else
#define AWS_DATASYNC_API __declspec(dllimport)
#endif /* AWS_DATASYNC_EXPORTS */
#else
#define AWS_DATASYNC_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_DATASYNC_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/AgentStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents a single entry in a list of agents. <code>AgentListEntry</code>
* returns an array that contains a list of agents when the <a>ListAgents</a>
* operation is called.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/AgentListEntry">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API AgentListEntry
{
public:
AgentListEntry();
AgentListEntry(Aws::Utils::Json::JsonView jsonValue);
AgentListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline AgentListEntry& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline AgentListEntry& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline AgentListEntry& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the agent.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the agent.</p>
*/
inline AgentListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline AgentListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline AgentListEntry& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The status of the agent.</p>
*/
inline const AgentStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the agent.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the agent.</p>
*/
inline void SetStatus(const AgentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the agent.</p>
*/
inline void SetStatus(AgentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the agent.</p>
*/
inline AgentListEntry& WithStatus(const AgentStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the agent.</p>
*/
inline AgentListEntry& WithStatus(AgentStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_agentArn;
bool m_agentArnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
AgentStatus m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class AgentStatus
{
NOT_SET,
ONLINE,
OFFLINE
};
namespace AgentStatusMapper
{
AWS_DATASYNC_API AgentStatus GetAgentStatusForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForAgentStatus(AgentStatus value);
} // namespace AgentStatusMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class Atime
{
NOT_SET,
NONE,
BEST_EFFORT
};
namespace AtimeMapper
{
AWS_DATASYNC_API Atime GetAtimeForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForAtime(Atime value);
} // namespace AtimeMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CancelTaskExecutionRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CancelTaskExecutionRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CancelTaskExecutionRequest : public DataSyncRequest
{
public:
CancelTaskExecutionRequest();
// 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 "CancelTaskExecution"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline bool TaskExecutionArnHasBeenSet() const { return m_taskExecutionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline CancelTaskExecutionRequest& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline CancelTaskExecutionRequest& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution to cancel.</p>
*/
inline CancelTaskExecutionRequest& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
private:
Aws::String m_taskExecutionArn;
bool m_taskExecutionArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API CancelTaskExecutionResult
{
public:
CancelTaskExecutionResult();
CancelTaskExecutionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CancelTaskExecutionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,527 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateAgentRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgentRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateAgentRequest : public DataSyncRequest
{
public:
CreateAgentRequest();
// 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 "CreateAgent"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline CreateAgentRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline CreateAgentRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
/**
* <p>Your agent activation key. You can get the activation key either by sending
* an HTTP GET request with redirects that enable you to get the agent IP address
* (port 80). Alternatively, you can get it from the AWS DataSync console.</p>
* <p>The redirect URL returned in the response provides you the activation key for
* your agent in the query string parameter <code>activationKey</code>. It might
* also include other activation-related parameters; however, these are merely
* defaults. The arguments you pass to this API call determine the actual
* configuration of your agent.</p> <p>For more information, see Activating an
* Agent in the <i>AWS DataSync User Guide.</i> </p>
*/
inline CreateAgentRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline const Aws::String& GetAgentName() const{ return m_agentName; }
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline bool AgentNameHasBeenSet() const { return m_agentNameHasBeenSet; }
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline void SetAgentName(const Aws::String& value) { m_agentNameHasBeenSet = true; m_agentName = value; }
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline void SetAgentName(Aws::String&& value) { m_agentNameHasBeenSet = true; m_agentName = std::move(value); }
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline void SetAgentName(const char* value) { m_agentNameHasBeenSet = true; m_agentName.assign(value); }
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline CreateAgentRequest& WithAgentName(const Aws::String& value) { SetAgentName(value); return *this;}
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline CreateAgentRequest& WithAgentName(Aws::String&& value) { SetAgentName(std::move(value)); return *this;}
/**
* <p>The name you configured for your agent. This value is a text reference that
* is used to identify the agent in the console.</p>
*/
inline CreateAgentRequest& WithAgentName(const char* value) { SetAgentName(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline CreateAgentRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline CreateAgentRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline CreateAgentRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to associate with
* the agent. The value can be an empty string. This value helps you manage,
* filter, and search for your agents.</p> <p>Valid characters for key and
* value are letters, spaces, and numbers representable in UTF-8 format, and the
* following special characters: + - = . _ : / @. </p>
*/
inline CreateAgentRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline CreateAgentRequest& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline CreateAgentRequest& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
/**
* <p>The ID of the VPC (virtual private cloud) endpoint that the agent has access
* to. This is the client-side VPC endpoint, also called a PrivateLink. If you
* don't have a PrivateLink VPC endpoint, see <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html#create-endpoint-service">Creating
* a VPC Endpoint Service Configuration</a> in the Amazon VPC User Guide.</p>
* <p>VPC endpoint ID looks like this: <code>vpce-01234d5aff67890e1</code>.</p>
*/
inline CreateAgentRequest& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline CreateAgentRequest& WithSubnetArns(const Aws::Vector<Aws::String>& value) { SetSubnetArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline CreateAgentRequest& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline CreateAgentRequest& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline CreateAgentRequest& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets in which DataSync will create
* elastic network interfaces for each data transfer task. The agent that runs a
* task must be private. When you start a task that is associated with an agent
* created in a VPC, or one that has access to an IP address in a VPC, then the
* task is also private. In this case, DataSync creates four network interfaces for
* each task in your subnet. For a data transfer to work, the agent must be able to
* route to all these four network interfaces.</p>
*/
inline CreateAgentRequest& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline CreateAgentRequest& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline CreateAgentRequest& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline CreateAgentRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline CreateAgentRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The ARNs of the security groups used to protect your data transfer task
* subnets. See <a>CreateAgentRequest$SubnetArns</a>.</p>
*/
inline CreateAgentRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
private:
Aws::String m_activationKey;
bool m_activationKeyHasBeenSet;
Aws::String m_agentName;
bool m_agentNameHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_vpcEndpointId;
bool m_vpcEndpointIdHasBeenSet;
Aws::Vector<Aws::String> m_subnetArns;
bool m_subnetArnsHasBeenSet;
Aws::Vector<Aws::String> m_securityGroupArns;
bool m_securityGroupArnsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateAgentResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgentResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateAgentResult
{
public:
CreateAgentResult();
CreateAgentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateAgentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline void SetAgentArn(const Aws::String& value) { m_agentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline void SetAgentArn(Aws::String&& value) { m_agentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline void SetAgentArn(const char* value) { m_agentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline CreateAgentResult& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline CreateAgentResult& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent. Use the <code>ListAgents</code>
* operation to return a list of agents for your account and AWS Region.</p>
*/
inline CreateAgentResult& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
private:
Aws::String m_agentArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,353 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/Ec2Config.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationEfsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationEfsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationEfsRequest : public DataSyncRequest
{
public:
CreateLocationEfsRequest();
// 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 "CreateLocationEfs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline CreateLocationEfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline CreateLocationEfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>A subdirectory in the locations path. This subdirectory in the EFS file
* system is used to read data from the EFS source location or write data to the
* EFS destination. By default, AWS DataSync uses the root directory.</p>
* <p> <code>Subdirectory</code> must be specified with forward slashes. For
* example, <code>/path/to/folder</code>.</p>
*/
inline CreateLocationEfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline const Aws::String& GetEfsFilesystemArn() const{ return m_efsFilesystemArn; }
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline bool EfsFilesystemArnHasBeenSet() const { return m_efsFilesystemArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline void SetEfsFilesystemArn(const Aws::String& value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline void SetEfsFilesystemArn(Aws::String&& value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline void SetEfsFilesystemArn(const char* value) { m_efsFilesystemArnHasBeenSet = true; m_efsFilesystemArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline CreateLocationEfsRequest& WithEfsFilesystemArn(const Aws::String& value) { SetEfsFilesystemArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline CreateLocationEfsRequest& WithEfsFilesystemArn(Aws::String&& value) { SetEfsFilesystemArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the Amazon EFS file system.</p>
*/
inline CreateLocationEfsRequest& WithEfsFilesystemArn(const char* value) { SetEfsFilesystemArn(value); return *this;}
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline const Ec2Config& GetEc2Config() const{ return m_ec2Config; }
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline bool Ec2ConfigHasBeenSet() const { return m_ec2ConfigHasBeenSet; }
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline void SetEc2Config(const Ec2Config& value) { m_ec2ConfigHasBeenSet = true; m_ec2Config = value; }
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline void SetEc2Config(Ec2Config&& value) { m_ec2ConfigHasBeenSet = true; m_ec2Config = std::move(value); }
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline CreateLocationEfsRequest& WithEc2Config(const Ec2Config& value) { SetEc2Config(value); return *this;}
/**
* <p>The subnet and security group that the Amazon EFS file system uses. The
* security group that you provide needs to be able to communicate with the
* security group on the mount target in the subnet specified.</p> <p>The exact
* relationship between security group M (of the mount target) and security group S
* (which you provide for DataSync to use at this stage) is as follows: </p> <ul>
* <li> <p> Security group M (which you associate with the mount target) must allow
* inbound access for the Transmission Control Protocol (TCP) on the NFS port
* (2049) from security group S. You can enable inbound connections either by IP
* address (CIDR range) or security group. </p> </li> <li> <p>Security group S
* (provided to DataSync to access EFS) should have a rule that enables outbound
* connections to the NFS port on one of the file systems mount targets. You can
* enable outbound connections either by IP address (CIDR range) or security
* group.</p> <p>For information about security groups and mount targets, see
* Security Groups for Amazon EC2 Instances and Mount Targets in the <i>Amazon EFS
* User Guide.</i> </p> </li> </ul>
*/
inline CreateLocationEfsRequest& WithEc2Config(Ec2Config&& value) { SetEc2Config(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationEfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationEfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationEfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationEfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_efsFilesystemArn;
bool m_efsFilesystemArnHasBeenSet;
Ec2Config m_ec2Config;
bool m_ec2ConfigHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationEfs</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationEfsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationEfsResult
{
public:
CreateLocationEfsResult();
CreateLocationEfsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationEfsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline CreateLocationEfsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline CreateLocationEfsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon EFS file system location that is
* created.</p>
*/
inline CreateLocationEfsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,429 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
*/
class AWS_DATASYNC_API CreateLocationFsxWindowsRequest : public DataSyncRequest
{
public:
CreateLocationFsxWindowsRequest();
// 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 "CreateLocationFsxWindows"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline CreateLocationFsxWindowsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline CreateLocationFsxWindowsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>A subdirectory in the locations path. This subdirectory in the Amazon FSx
* for Windows file system is used to read data from the Amazon FSx for Windows
* source location or write data to the FSx for Windows destination.</p>
*/
inline CreateLocationFsxWindowsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline const Aws::String& GetFsxFilesystemArn() const{ return m_fsxFilesystemArn; }
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline bool FsxFilesystemArnHasBeenSet() const { return m_fsxFilesystemArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline void SetFsxFilesystemArn(const Aws::String& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline void SetFsxFilesystemArn(Aws::String&& value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline void SetFsxFilesystemArn(const char* value) { m_fsxFilesystemArnHasBeenSet = true; m_fsxFilesystemArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(const Aws::String& value) { SetFsxFilesystemArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(Aws::String&& value) { SetFsxFilesystemArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithFsxFilesystemArn(const char* value) { SetFsxFilesystemArn(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are to use to
* configure the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationFsxWindowsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationFsxWindowsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationFsxWindowsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents a tag that you want to add to the
* resource. The value can be an empty string. This value helps you manage, filter,
* and search for your resources. We recommend that you create a name tag for your
* location.</p>
*/
inline CreateLocationFsxWindowsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline const Aws::String& GetUser() const{ return m_user; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithUser(const Aws::String& value) { SetUser(value); return *this;}
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithUser(const char* value) { SetUser(value); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline const Aws::String& GetDomain() const{ return m_domain; }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline CreateLocationFsxWindowsRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline CreateLocationFsxWindowsRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline CreateLocationFsxWindowsRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>The password of the user who has the permissions to access files and folders
* in the FSx for Windows file system.</p>
*/
inline CreateLocationFsxWindowsRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
private:
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_fsxFilesystemArn;
bool m_fsxFilesystemArnHasBeenSet;
Aws::Vector<Aws::String> m_securityGroupArns;
bool m_securityGroupArnsHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
Aws::String m_user;
bool m_userHasBeenSet;
Aws::String m_domain;
bool m_domainHasBeenSet;
Aws::String m_password;
bool m_passwordHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API CreateLocationFsxWindowsResult
{
public:
CreateLocationFsxWindowsResult();
CreateLocationFsxWindowsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationFsxWindowsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline CreateLocationFsxWindowsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline CreateLocationFsxWindowsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows file system location
* that is created.</p>
*/
inline CreateLocationFsxWindowsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,480 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/OnPremConfig.h>
#include <aws/datasync/model/NfsMountOptions.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationNfsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationNfsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationNfsRequest : public DataSyncRequest
{
public:
CreateLocationNfsRequest();
// 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 "CreateLocationNfs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline CreateLocationNfsRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline CreateLocationNfsRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>The subdirectory in the NFS file system that is used to read data from the
* NFS source location or write data to the NFS destination. The NFS path should be
* a path that's exported by the NFS server, or a subdirectory of that path. The
* path should be such that it can be mounted by other NFS clients in your network.
* </p> <p>To see all the paths exported by your NFS server. run "<code>showmount
* -e nfs-server-name</code>" from an NFS client that has access to your server.
* You can specify any directory that appears in the results, and any subdirectory
* of that directory. Ensure that the NFS export is accessible without Kerberos
* authentication. </p> <p>To transfer all the data in the folder you specified,
* DataSync needs to have permissions to read all the data. To ensure this, either
* configure the NFS export with <code>no_root_squash,</code> or ensure that the
* permissions for all of the files that you want DataSync allow read access for
* all users. Doing either enables the agent to read the files. For the agent to
* access directories, you must additionally enable all execute access.</p> <p>If
* you are copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>For information about
* NFS export configuration, see 18.7. The /etc/exports Configuration File in the
* Red Hat Enterprise Linux documentation.</p>
*/
inline CreateLocationNfsRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline CreateLocationNfsRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline CreateLocationNfsRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
/**
* <p>The name of the NFS server. This value is the IP address or Domain Name
* Service (DNS) name of the NFS server. An agent that is installed on-premises
* uses this host name to mount the NFS server in a network. </p> <p>If you are
* copying data to or from your AWS Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p> <p>This name must
* either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*/
inline CreateLocationNfsRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; }
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline bool OnPremConfigHasBeenSet() const { return m_onPremConfigHasBeenSet; }
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = value; }
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfigHasBeenSet = true; m_onPremConfig = std::move(value); }
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline CreateLocationNfsRequest& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;}
/**
* <p>Contains a list of Amazon Resource Names (ARNs) of agents that are used to
* connect to an NFS server. </p> <p>If you are copying data to or from your AWS
* Snowcone device, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/create-nfs-location.html#nfs-on-snowcone">NFS
* Server on AWS Snowcone</a> for more information.</p>
*/
inline CreateLocationNfsRequest& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;}
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; }
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline CreateLocationNfsRequest& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;}
/**
* <p>The NFS mount options that DataSync can use to mount your NFS share.</p>
*/
inline CreateLocationNfsRequest& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationNfsRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationNfsRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationNfsRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationNfsRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_serverHostname;
bool m_serverHostnameHasBeenSet;
OnPremConfig m_onPremConfig;
bool m_onPremConfigHasBeenSet;
NfsMountOptions m_mountOptions;
bool m_mountOptionsHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationNfsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationNfsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationNfsResult
{
public:
CreateLocationNfsResult();
CreateLocationNfsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationNfsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline CreateLocationNfsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline CreateLocationNfsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source NFS file system location that is
* created.</p>
*/
inline CreateLocationNfsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,509 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/ObjectStorageServerProtocol.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationObjectStorageRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationObjectStorageRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationObjectStorageRequest : public DataSyncRequest
{
public:
CreateLocationObjectStorageRequest();
// 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 "CreateLocationObjectStorage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline CreateLocationObjectStorageRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline CreateLocationObjectStorageRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
/**
* <p>The name of the self-managed object storage server. This value is the IP
* address or Domain Name Service (DNS) name of the object storage server. An agent
* uses this host name to mount the object storage server in a network. </p>
*/
inline CreateLocationObjectStorageRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS). You can specify a custom port if your self-managed object storage
* server requires one.</p>
*/
inline int GetServerPort() const{ return m_serverPort; }
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS). You can specify a custom port if your self-managed object storage
* server requires one.</p>
*/
inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS). You can specify a custom port if your self-managed object storage
* server requires one.</p>
*/
inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS). You can specify a custom port if your self-managed object storage
* server requires one.</p>
*/
inline CreateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = std::move(value); }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline CreateLocationObjectStorageRequest& WithServerProtocol(const ObjectStorageServerProtocol& value) { SetServerProtocol(value); return *this;}
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline CreateLocationObjectStorageRequest& WithServerProtocol(ObjectStorageServerProtocol&& value) { SetServerProtocol(std::move(value)); return *this;}
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>The subdirectory in the self-managed object storage server that is used to
* read data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline const Aws::String& GetBucketName() const{ return m_bucketName; }
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
/**
* <p>The bucket on the self-managed object storage server that is used to read
* data from.</p>
*/
inline CreateLocationObjectStorageRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(const Aws::String& value) { m_accessKeyHasBeenSet = true; m_accessKey = value; }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(Aws::String&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::move(value); }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(const char* value) { m_accessKeyHasBeenSet = true; m_accessKey.assign(value); }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline const Aws::String& GetSecretKey() const{ return m_secretKey; }
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetSecretKey(const Aws::String& value) { m_secretKeyHasBeenSet = true; m_secretKey = value; }
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetSecretKey(Aws::String&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::move(value); }
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetSecretKey(const char* value) { m_secretKeyHasBeenSet = true; m_secretKey.assign(value); }
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithSecretKey(const Aws::String& value) { SetSecretKey(value); return *this;}
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithSecretKey(Aws::String&& value) { SetSecretKey(std::move(value)); return *this;}
/**
* <p>Optional. The secret key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline CreateLocationObjectStorageRequest& WithSecretKey(const char* value) { SetSecretKey(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageRequest& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationObjectStorageRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationObjectStorageRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationObjectStorageRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationObjectStorageRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_serverHostname;
bool m_serverHostnameHasBeenSet;
int m_serverPort;
bool m_serverPortHasBeenSet;
ObjectStorageServerProtocol m_serverProtocol;
bool m_serverProtocolHasBeenSet;
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_bucketName;
bool m_bucketNameHasBeenSet;
Aws::String m_accessKey;
bool m_accessKeyHasBeenSet;
Aws::String m_secretKey;
bool m_secretKeyHasBeenSet;
Aws::Vector<Aws::String> m_agentArns;
bool m_agentArnsHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationObjectStorageResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationObjectStorageResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationObjectStorageResult
{
public:
CreateLocationObjectStorageResult();
CreateLocationObjectStorageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationObjectStorageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline CreateLocationObjectStorageResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,298 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/S3StorageClass.h>
#include <aws/datasync/model/S3Config.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationS3Request</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationS3Request">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationS3Request : public DataSyncRequest
{
public:
CreateLocationS3Request();
// 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 "CreateLocationS3"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline CreateLocationS3Request& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline CreateLocationS3Request& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is
* used to read data from the S3 source location or write data to the S3
* destination.</p>
*/
inline CreateLocationS3Request& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline CreateLocationS3Request& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline CreateLocationS3Request& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket.</p>
*/
inline CreateLocationS3Request& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;}
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline const S3StorageClass& GetS3StorageClass() const{ return m_s3StorageClass; }
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline bool S3StorageClassHasBeenSet() const { return m_s3StorageClassHasBeenSet; }
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline void SetS3StorageClass(const S3StorageClass& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = value; }
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline void SetS3StorageClass(S3StorageClass&& value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = std::move(value); }
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline CreateLocationS3Request& WithS3StorageClass(const S3StorageClass& value) { SetS3StorageClass(value); return *this;}
/**
* <p>The Amazon S3 storage class that you want to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline CreateLocationS3Request& WithS3StorageClass(S3StorageClass&& value) { SetS3StorageClass(std::move(value)); return *this;}
inline const S3Config& GetS3Config() const{ return m_s3Config; }
inline bool S3ConfigHasBeenSet() const { return m_s3ConfigHasBeenSet; }
inline void SetS3Config(const S3Config& value) { m_s3ConfigHasBeenSet = true; m_s3Config = value; }
inline void SetS3Config(S3Config&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::move(value); }
inline CreateLocationS3Request& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
inline CreateLocationS3Request& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationS3Request& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationS3Request& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationS3Request& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationS3Request& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_s3BucketArn;
bool m_s3BucketArnHasBeenSet;
S3StorageClass m_s3StorageClass;
bool m_s3StorageClassHasBeenSet;
S3Config m_s3Config;
bool m_s3ConfigHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationS3Response</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationS3Response">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationS3Result
{
public:
CreateLocationS3Result();
CreateLocationS3Result(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationS3Result& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline CreateLocationS3Result& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline CreateLocationS3Result& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source Amazon S3 bucket location that
* is created.</p>
*/
inline CreateLocationS3Result& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,571 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/SmbMountOptions.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationSmbRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationSmbRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationSmbRequest : public DataSyncRequest
{
public:
CreateLocationSmbRequest();
// 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 "CreateLocationSmb"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline const Aws::String& GetSubdirectory() const{ return m_subdirectory; }
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline void SetSubdirectory(const Aws::String& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = value; }
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline void SetSubdirectory(Aws::String&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::move(value); }
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline void SetSubdirectory(const char* value) { m_subdirectoryHasBeenSet = true; m_subdirectory.assign(value); }
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline CreateLocationSmbRequest& WithSubdirectory(const Aws::String& value) { SetSubdirectory(value); return *this;}
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline CreateLocationSmbRequest& WithSubdirectory(Aws::String&& value) { SetSubdirectory(std::move(value)); return *this;}
/**
* <p>The subdirectory in the SMB file system that is used to read data from the
* SMB source location or write data to the SMB destination. The SMB path should be
* a path that's exported by the SMB server, or a subdirectory of that path. The
* path should be such that it can be mounted by other SMB clients in your
* network.</p> <p> <code>Subdirectory</code> must be specified with forward
* slashes. For example, <code>/path/to/folder</code>.</p> <p>To transfer
* all the data in the folder you specified, DataSync needs to have permissions to
* mount the SMB share, as well as to access all the data in that share. To ensure
* this, either ensure that the user/password specified belongs to the user who can
* mount the share, and who has the appropriate permissions for all of the files
* and directories that you want DataSync to access, or use credentials of a member
* of the Backup Operators group to mount the share. Doing either enables the agent
* to access the data. For the agent to access directories, you must additionally
* enable all execute access.</p>
*/
inline CreateLocationSmbRequest& WithSubdirectory(const char* value) { SetSubdirectory(value); return *this;}
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline CreateLocationSmbRequest& WithServerHostname(const Aws::String& value) { SetServerHostname(value); return *this;}
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline CreateLocationSmbRequest& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
/**
* <p>The name of the SMB server. This value is the IP address or Domain Name
* Service (DNS) name of the SMB server. An agent that is installed on-premises
* uses this hostname to mount the SMB server in a network.</p> <p>This name
* must either be DNS-compliant or must be an IP version 4 (IPv4) address.</p>
*
*/
inline CreateLocationSmbRequest& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline const Aws::String& GetUser() const{ return m_user; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline bool UserHasBeenSet() const { return m_userHasBeenSet; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(const Aws::String& value) { m_userHasBeenSet = true; m_user = value; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(Aws::String&& value) { m_userHasBeenSet = true; m_user = std::move(value); }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(const char* value) { m_userHasBeenSet = true; m_user.assign(value); }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithUser(const Aws::String& value) { SetUser(value); return *this;}
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithUser(const char* value) { SetUser(value); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline const Aws::String& GetDomain() const{ return m_domain; }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline CreateLocationSmbRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline CreateLocationSmbRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline CreateLocationSmbRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline const Aws::String& GetPassword() const{ return m_password; }
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
/**
* <p>The password of the user who can mount the share, has the permissions to
* access files and folders in the SMB share.</p>
*/
inline CreateLocationSmbRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline CreateLocationSmbRequest& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline CreateLocationSmbRequest& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline CreateLocationSmbRequest& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline CreateLocationSmbRequest& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block
* (SMB) location. </p>
*/
inline CreateLocationSmbRequest& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline const SmbMountOptions& GetMountOptions() const{ return m_mountOptions; }
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline bool MountOptionsHasBeenSet() const { return m_mountOptionsHasBeenSet; }
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline void SetMountOptions(const SmbMountOptions& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = value; }
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline void SetMountOptions(SmbMountOptions&& value) { m_mountOptionsHasBeenSet = true; m_mountOptions = std::move(value); }
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline CreateLocationSmbRequest& WithMountOptions(const SmbMountOptions& value) { SetMountOptions(value); return *this;}
/**
* <p>The mount options used by DataSync to access the SMB server.</p>
*/
inline CreateLocationSmbRequest& WithMountOptions(SmbMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationSmbRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationSmbRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationSmbRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* location. The value can be an empty string. We recommend using tags to name your
* resources.</p>
*/
inline CreateLocationSmbRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_subdirectory;
bool m_subdirectoryHasBeenSet;
Aws::String m_serverHostname;
bool m_serverHostnameHasBeenSet;
Aws::String m_user;
bool m_userHasBeenSet;
Aws::String m_domain;
bool m_domainHasBeenSet;
Aws::String m_password;
bool m_passwordHasBeenSet;
Aws::Vector<Aws::String> m_agentArns;
bool m_agentArnsHasBeenSet;
SmbMountOptions m_mountOptions;
bool m_mountOptionsHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateLocationSmbResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationSmbResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateLocationSmbResult
{
public:
CreateLocationSmbResult();
CreateLocationSmbResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateLocationSmbResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline CreateLocationSmbResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline CreateLocationSmbResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline CreateLocationSmbResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,477 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/Options.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TaskSchedule.h>
#include <aws/datasync/model/FilterRule.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>CreateTaskRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateTaskRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateTaskRequest : public DataSyncRequest
{
public:
CreateTaskRequest();
// 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 "CreateTask"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline const Aws::String& GetSourceLocationArn() const{ return m_sourceLocationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline bool SourceLocationArnHasBeenSet() const { return m_sourceLocationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline void SetSourceLocationArn(const Aws::String& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline void SetSourceLocationArn(Aws::String&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline void SetSourceLocationArn(const char* value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline CreateTaskRequest& WithSourceLocationArn(const Aws::String& value) { SetSourceLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline CreateTaskRequest& WithSourceLocationArn(Aws::String&& value) { SetSourceLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source location for the task.</p>
*/
inline CreateTaskRequest& WithSourceLocationArn(const char* value) { SetSourceLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline const Aws::String& GetDestinationLocationArn() const{ return m_destinationLocationArn; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline bool DestinationLocationArnHasBeenSet() const { return m_destinationLocationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline void SetDestinationLocationArn(const Aws::String& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline void SetDestinationLocationArn(Aws::String&& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline void SetDestinationLocationArn(const char* value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline CreateTaskRequest& WithDestinationLocationArn(const Aws::String& value) { SetDestinationLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline CreateTaskRequest& WithDestinationLocationArn(Aws::String&& value) { SetDestinationLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of an AWS storage resource's location. </p>
*/
inline CreateTaskRequest& WithDestinationLocationArn(const char* value) { SetDestinationLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline CreateTaskRequest& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline CreateTaskRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is
* used to monitor and log events in the task. </p>
*/
inline CreateTaskRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline CreateTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline CreateTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of a task. This value is a text reference that is used to identify
* the task in the console. </p>
*/
inline CreateTaskRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline const Options& GetOptions() const{ return m_options; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline CreateTaskRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group ID (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the <code>OverrideOptions</code> before starting the task execution.
* For more information, see the operation. </p>
*/
inline CreateTaskRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline CreateTaskRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline CreateTaskRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline CreateTaskRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example,
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline CreateTaskRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline void SetSchedule(const TaskSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline void SetSchedule(TaskSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline CreateTaskRequest& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
/**
* <p>Specifies a schedule used to periodically transfer files from a source to a
* destination location. The schedule should be specified in UTC time. For more
* information, see <a>task-scheduling</a>.</p>
*/
inline CreateTaskRequest& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline CreateTaskRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline CreateTaskRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline CreateTaskRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The key-value pair that represents the tag that you want to add to the
* resource. The value can be an empty string. </p>
*/
inline CreateTaskRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_sourceLocationArn;
bool m_sourceLocationArnHasBeenSet;
Aws::String m_destinationLocationArn;
bool m_destinationLocationArnHasBeenSet;
Aws::String m_cloudWatchLogGroupArn;
bool m_cloudWatchLogGroupArnHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Options m_options;
bool m_optionsHasBeenSet;
Aws::Vector<FilterRule> m_excludes;
bool m_excludesHasBeenSet;
TaskSchedule m_schedule;
bool m_scheduleHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>CreateTaskResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateTaskResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API CreateTaskResult
{
public:
CreateTaskResult();
CreateTaskResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateTaskResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline CreateTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline CreateTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline CreateTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
private:
Aws::String m_taskArn;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DeleteAgentRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteAgentRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DeleteAgentRequest : public DataSyncRequest
{
public:
DeleteAgentRequest();
// 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 "DeleteAgent"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline DeleteAgentRequest& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline DeleteAgentRequest& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent to delete. Use the
* <code>ListAgents</code> operation to return a list of agents for your account
* and AWS Region.</p>
*/
inline DeleteAgentRequest& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
private:
Aws::String m_agentArn;
bool m_agentArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API DeleteAgentResult
{
public:
DeleteAgentResult();
DeleteAgentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteAgentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DeleteLocation</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteLocationRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DeleteLocationRequest : public DataSyncRequest
{
public:
DeleteLocationRequest();
// 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 "DeleteLocation"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline DeleteLocationRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline DeleteLocationRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the location to delete.</p>
*/
inline DeleteLocationRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API DeleteLocationResult
{
public:
DeleteLocationResult();
DeleteLocationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteLocationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DeleteTask</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteTaskRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DeleteTaskRequest : public DataSyncRequest
{
public:
DeleteTaskRequest();
// 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 "DeleteTask"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline DeleteTaskRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline DeleteTaskRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to delete.</p>
*/
inline DeleteTaskRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
private:
Aws::String m_taskArn;
bool m_taskArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API DeleteTaskResult
{
public:
DeleteTaskResult();
DeleteTaskResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteTaskResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeAgent</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeAgentRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeAgentRequest : public DataSyncRequest
{
public:
DescribeAgentRequest();
// 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 "DescribeAgent"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline DescribeAgentRequest& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline DescribeAgentRequest& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent to describe.</p>
*/
inline DescribeAgentRequest& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
private:
Aws::String m_agentArn;
bool m_agentArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,294 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/AgentStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/datasync/model/EndpointType.h>
#include <aws/datasync/model/PrivateLinkConfig.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeAgentResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeAgentResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeAgentResult
{
public:
DescribeAgentResult();
DescribeAgentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeAgentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(const Aws::String& value) { m_agentArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(Aws::String&& value) { m_agentArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline void SetAgentArn(const char* value) { m_agentArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline DescribeAgentResult& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline DescribeAgentResult& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agent.</p>
*/
inline DescribeAgentResult& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the agent.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the agent.</p>
*/
inline DescribeAgentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline DescribeAgentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the agent.</p>
*/
inline DescribeAgentResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The status of the agent. If the status is ONLINE, then the agent is
* configured properly and is available to use. The Running status is the normal
* running status for an agent. If the status is OFFLINE, the agent's VM is turned
* off or the agent is in an unhealthy state. When the issue that caused the
* unhealthy state is resolved, the agent returns to ONLINE status.</p>
*/
inline const AgentStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the agent. If the status is ONLINE, then the agent is
* configured properly and is available to use. The Running status is the normal
* running status for an agent. If the status is OFFLINE, the agent's VM is turned
* off or the agent is in an unhealthy state. When the issue that caused the
* unhealthy state is resolved, the agent returns to ONLINE status.</p>
*/
inline void SetStatus(const AgentStatus& value) { m_status = value; }
/**
* <p>The status of the agent. If the status is ONLINE, then the agent is
* configured properly and is available to use. The Running status is the normal
* running status for an agent. If the status is OFFLINE, the agent's VM is turned
* off or the agent is in an unhealthy state. When the issue that caused the
* unhealthy state is resolved, the agent returns to ONLINE status.</p>
*/
inline void SetStatus(AgentStatus&& value) { m_status = std::move(value); }
/**
* <p>The status of the agent. If the status is ONLINE, then the agent is
* configured properly and is available to use. The Running status is the normal
* running status for an agent. If the status is OFFLINE, the agent's VM is turned
* off or the agent is in an unhealthy state. When the issue that caused the
* unhealthy state is resolved, the agent returns to ONLINE status.</p>
*/
inline DescribeAgentResult& WithStatus(const AgentStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the agent. If the status is ONLINE, then the agent is
* configured properly and is available to use. The Running status is the normal
* running status for an agent. If the status is OFFLINE, the agent's VM is turned
* off or the agent is in an unhealthy state. When the issue that caused the
* unhealthy state is resolved, the agent returns to ONLINE status.</p>
*/
inline DescribeAgentResult& WithStatus(AgentStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The time that the agent last connected to DataSyc.</p>
*/
inline const Aws::Utils::DateTime& GetLastConnectionTime() const{ return m_lastConnectionTime; }
/**
* <p>The time that the agent last connected to DataSyc.</p>
*/
inline void SetLastConnectionTime(const Aws::Utils::DateTime& value) { m_lastConnectionTime = value; }
/**
* <p>The time that the agent last connected to DataSyc.</p>
*/
inline void SetLastConnectionTime(Aws::Utils::DateTime&& value) { m_lastConnectionTime = std::move(value); }
/**
* <p>The time that the agent last connected to DataSyc.</p>
*/
inline DescribeAgentResult& WithLastConnectionTime(const Aws::Utils::DateTime& value) { SetLastConnectionTime(value); return *this;}
/**
* <p>The time that the agent last connected to DataSyc.</p>
*/
inline DescribeAgentResult& WithLastConnectionTime(Aws::Utils::DateTime&& value) { SetLastConnectionTime(std::move(value)); return *this;}
/**
* <p>The time that the agent was activated (that is, created in your account).</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the agent was activated (that is, created in your account).</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the agent was activated (that is, created in your account).</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the agent was activated (that is, created in your account).</p>
*/
inline DescribeAgentResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the agent was activated (that is, created in your account).</p>
*/
inline DescribeAgentResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The type of endpoint that your agent is connected to. If the endpoint is a
* VPC endpoint, the agent is not accessible over the public internet. </p>
*/
inline const EndpointType& GetEndpointType() const{ return m_endpointType; }
/**
* <p>The type of endpoint that your agent is connected to. If the endpoint is a
* VPC endpoint, the agent is not accessible over the public internet. </p>
*/
inline void SetEndpointType(const EndpointType& value) { m_endpointType = value; }
/**
* <p>The type of endpoint that your agent is connected to. If the endpoint is a
* VPC endpoint, the agent is not accessible over the public internet. </p>
*/
inline void SetEndpointType(EndpointType&& value) { m_endpointType = std::move(value); }
/**
* <p>The type of endpoint that your agent is connected to. If the endpoint is a
* VPC endpoint, the agent is not accessible over the public internet. </p>
*/
inline DescribeAgentResult& WithEndpointType(const EndpointType& value) { SetEndpointType(value); return *this;}
/**
* <p>The type of endpoint that your agent is connected to. If the endpoint is a
* VPC endpoint, the agent is not accessible over the public internet. </p>
*/
inline DescribeAgentResult& WithEndpointType(EndpointType&& value) { SetEndpointType(std::move(value)); return *this;}
/**
* <p>The subnet and the security group that DataSync used to access a VPC
* endpoint.</p>
*/
inline const PrivateLinkConfig& GetPrivateLinkConfig() const{ return m_privateLinkConfig; }
/**
* <p>The subnet and the security group that DataSync used to access a VPC
* endpoint.</p>
*/
inline void SetPrivateLinkConfig(const PrivateLinkConfig& value) { m_privateLinkConfig = value; }
/**
* <p>The subnet and the security group that DataSync used to access a VPC
* endpoint.</p>
*/
inline void SetPrivateLinkConfig(PrivateLinkConfig&& value) { m_privateLinkConfig = std::move(value); }
/**
* <p>The subnet and the security group that DataSync used to access a VPC
* endpoint.</p>
*/
inline DescribeAgentResult& WithPrivateLinkConfig(const PrivateLinkConfig& value) { SetPrivateLinkConfig(value); return *this;}
/**
* <p>The subnet and the security group that DataSync used to access a VPC
* endpoint.</p>
*/
inline DescribeAgentResult& WithPrivateLinkConfig(PrivateLinkConfig&& value) { SetPrivateLinkConfig(std::move(value)); return *this;}
private:
Aws::String m_agentArn;
Aws::String m_name;
AgentStatus m_status;
Aws::Utils::DateTime m_lastConnectionTime;
Aws::Utils::DateTime m_creationTime;
EndpointType m_endpointType;
PrivateLinkConfig m_privateLinkConfig;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationEfsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationEfsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationEfsRequest : public DataSyncRequest
{
public:
DescribeLocationEfsRequest();
// 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 "DescribeLocationEfs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline DescribeLocationEfsRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline DescribeLocationEfsRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the EFS location to describe.</p>
*/
inline DescribeLocationEfsRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,168 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/Ec2Config.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationEfsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationEfsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationEfsResult
{
public:
DescribeLocationEfsResult();
DescribeLocationEfsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationEfsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the EFS location that was described.</p>
*/
inline DescribeLocationEfsResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
inline const Ec2Config& GetEc2Config() const{ return m_ec2Config; }
inline void SetEc2Config(const Ec2Config& value) { m_ec2Config = value; }
inline void SetEc2Config(Ec2Config&& value) { m_ec2Config = std::move(value); }
inline DescribeLocationEfsResult& WithEc2Config(const Ec2Config& value) { SetEc2Config(value); return *this;}
inline DescribeLocationEfsResult& WithEc2Config(Ec2Config&& value) { SetEc2Config(std::move(value)); return *this;}
/**
* <p>The time that the EFS location was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the EFS location was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the EFS location was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the EFS location was created.</p>
*/
inline DescribeLocationEfsResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the EFS location was created.</p>
*/
inline DescribeLocationEfsResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
Ec2Config m_ec2Config;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
*/
class AWS_DATASYNC_API DescribeLocationFsxWindowsRequest : public DataSyncRequest
{
public:
DescribeLocationFsxWindowsRequest();
// 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 "DescribeLocationFsxWindows"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline DescribeLocationFsxWindowsRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline DescribeLocationFsxWindowsRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location to
* describe.</p>
*/
inline DescribeLocationFsxWindowsRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,293 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API DescribeLocationFsxWindowsResult
{
public:
DescribeLocationFsxWindowsResult();
DescribeLocationFsxWindowsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationFsxWindowsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the FSx for Windows location that was
* described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the FSx for Windows location that was described.</p>
*/
inline DescribeLocationFsxWindowsResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the FSx for Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& AddSecurityGroupArns(const char* value) { m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The time that the FSx for Windows location was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the FSx for Windows location was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the FSx for Windows location was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the FSx for Windows location was created.</p>
*/
inline DescribeLocationFsxWindowsResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the FSx for Windows location was created.</p>
*/
inline DescribeLocationFsxWindowsResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline const Aws::String& GetUser() const{ return m_user; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(const Aws::String& value) { m_user = value; }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(Aws::String&& value) { m_user = std::move(value); }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline void SetUser(const char* value) { m_user.assign(value); }
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& WithUser(const Aws::String& value) { SetUser(value); return *this;}
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
/**
* <p>The user who has the permissions to access files and folders in the FSx for
* Windows file system.</p>
*/
inline DescribeLocationFsxWindowsResult& WithUser(const char* value) { SetUser(value); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline const Aws::String& GetDomain() const{ return m_domain; }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(const Aws::String& value) { m_domain = value; }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(Aws::String&& value) { m_domain = std::move(value); }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline void SetDomain(const char* value) { m_domain.assign(value); }
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline DescribeLocationFsxWindowsResult& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline DescribeLocationFsxWindowsResult& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The name of the Windows domain that the FSx for Windows server belongs
* to.</p>
*/
inline DescribeLocationFsxWindowsResult& WithDomain(const char* value) { SetDomain(value); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
Aws::Vector<Aws::String> m_securityGroupArns;
Aws::Utils::DateTime m_creationTime;
Aws::String m_user;
Aws::String m_domain;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationNfsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationNfsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationNfsRequest : public DataSyncRequest
{
public:
DescribeLocationNfsRequest();
// 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 "DescribeLocationNfs"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline DescribeLocationNfsRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline DescribeLocationNfsRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the NFS location to describe.</p>
*/
inline DescribeLocationNfsRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,197 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/OnPremConfig.h>
#include <aws/datasync/model/NfsMountOptions.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationNfsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationNfsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationNfsResult
{
public:
DescribeLocationNfsResult();
DescribeLocationNfsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationNfsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the source NFS location that was described.</p>
*/
inline DescribeLocationNfsResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
inline const OnPremConfig& GetOnPremConfig() const{ return m_onPremConfig; }
inline void SetOnPremConfig(const OnPremConfig& value) { m_onPremConfig = value; }
inline void SetOnPremConfig(OnPremConfig&& value) { m_onPremConfig = std::move(value); }
inline DescribeLocationNfsResult& WithOnPremConfig(const OnPremConfig& value) { SetOnPremConfig(value); return *this;}
inline DescribeLocationNfsResult& WithOnPremConfig(OnPremConfig&& value) { SetOnPremConfig(std::move(value)); return *this;}
/**
* <p>The NFS mount options that DataSync used to mount your NFS share.</p>
*/
inline const NfsMountOptions& GetMountOptions() const{ return m_mountOptions; }
/**
* <p>The NFS mount options that DataSync used to mount your NFS share.</p>
*/
inline void SetMountOptions(const NfsMountOptions& value) { m_mountOptions = value; }
/**
* <p>The NFS mount options that DataSync used to mount your NFS share.</p>
*/
inline void SetMountOptions(NfsMountOptions&& value) { m_mountOptions = std::move(value); }
/**
* <p>The NFS mount options that DataSync used to mount your NFS share.</p>
*/
inline DescribeLocationNfsResult& WithMountOptions(const NfsMountOptions& value) { SetMountOptions(value); return *this;}
/**
* <p>The NFS mount options that DataSync used to mount your NFS share.</p>
*/
inline DescribeLocationNfsResult& WithMountOptions(NfsMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
/**
* <p>The time that the NFS location was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the NFS location was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the NFS location was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the NFS location was created.</p>
*/
inline DescribeLocationNfsResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the NFS location was created.</p>
*/
inline DescribeLocationNfsResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
OnPremConfig m_onPremConfig;
NfsMountOptions m_mountOptions;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationObjectStorageRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationObjectStorageRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationObjectStorageRequest : public DataSyncRequest
{
public:
DescribeLocationObjectStorageRequest();
// 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 "DescribeLocationObjectStorage"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline DescribeLocationObjectStorageRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline DescribeLocationObjectStorageRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location that was described.</p>
*/
inline DescribeLocationObjectStorageRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,318 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/ObjectStorageServerProtocol.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationObjectStorageResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationObjectStorageResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationObjectStorageResult
{
public:
DescribeLocationObjectStorageResult();
DescribeLocationObjectStorageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationObjectStorageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the self-managed object storage server
* location to describe.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the source self-managed object storage server location that was
* described.</p>
*/
inline DescribeLocationObjectStorageResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline const Aws::String& GetAccessKey() const{ return m_accessKey; }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(const Aws::String& value) { m_accessKey = value; }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(Aws::String&& value) { m_accessKey = std::move(value); }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline void SetAccessKey(const char* value) { m_accessKey.assign(value); }
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline DescribeLocationObjectStorageResult& WithAccessKey(const Aws::String& value) { SetAccessKey(value); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline DescribeLocationObjectStorageResult& WithAccessKey(Aws::String&& value) { SetAccessKey(std::move(value)); return *this;}
/**
* <p>Optional. The access key is used if credentials are required to access the
* self-managed object storage server.</p>
*/
inline DescribeLocationObjectStorageResult& WithAccessKey(const char* value) { SetAccessKey(value); return *this;}
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS).</p>
*/
inline int GetServerPort() const{ return m_serverPort; }
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS).</p>
*/
inline void SetServerPort(int value) { m_serverPort = value; }
/**
* <p>The port that your self-managed object storage server accepts inbound network
* traffic on. The server port is set by default to TCP 80 (HTTP) or TCP 443
* (HTTPS).</p>
*/
inline DescribeLocationObjectStorageResult& WithServerPort(int value) { SetServerPort(value); return *this;}
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline const ObjectStorageServerProtocol& GetServerProtocol() const{ return m_serverProtocol; }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline void SetServerProtocol(const ObjectStorageServerProtocol& value) { m_serverProtocol = value; }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline void SetServerProtocol(ObjectStorageServerProtocol&& value) { m_serverProtocol = std::move(value); }
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline DescribeLocationObjectStorageResult& WithServerProtocol(const ObjectStorageServerProtocol& value) { SetServerProtocol(value); return *this;}
/**
* <p>The protocol that the object storage server uses to communicate. Valid values
* are HTTP or HTTPS.</p>
*/
inline DescribeLocationObjectStorageResult& WithServerProtocol(ObjectStorageServerProtocol&& value) { SetServerProtocol(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArns = value; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArns = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline DescribeLocationObjectStorageResult& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline DescribeLocationObjectStorageResult& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline DescribeLocationObjectStorageResult& AddAgentArns(const Aws::String& value) { m_agentArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline DescribeLocationObjectStorageResult& AddAgentArns(Aws::String&& value) { m_agentArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the agents associated with the self-managed
* object storage server location.</p>
*/
inline DescribeLocationObjectStorageResult& AddAgentArns(const char* value) { m_agentArns.push_back(value); return *this; }
/**
* <p>The time that the self-managed object storage server agent was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the self-managed object storage server agent was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the self-managed object storage server agent was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the self-managed object storage server agent was created.</p>
*/
inline DescribeLocationObjectStorageResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the self-managed object storage server agent was created.</p>
*/
inline DescribeLocationObjectStorageResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
Aws::String m_accessKey;
int m_serverPort;
ObjectStorageServerProtocol m_serverProtocol;
Aws::Vector<Aws::String> m_agentArns;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationS3Request</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationS3Request">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationS3Request : public DataSyncRequest
{
public:
DescribeLocationS3Request();
// 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 "DescribeLocationS3"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline DescribeLocationS3Request& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline DescribeLocationS3Request& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location to
* describe.</p>
*/
inline DescribeLocationS3Request& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/S3StorageClass.h>
#include <aws/datasync/model/S3Config.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationS3Response</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationS3Response">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationS3Result
{
public:
DescribeLocationS3Result();
DescribeLocationS3Result(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationS3Result& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline DescribeLocationS3Result& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline DescribeLocationS3Result& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon S3 bucket location.</p>
*/
inline DescribeLocationS3Result& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline DescribeLocationS3Result& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline DescribeLocationS3Result& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the Amazon S3 location that was described.</p>
*/
inline DescribeLocationS3Result& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The Amazon S3 storage class that you chose to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline const S3StorageClass& GetS3StorageClass() const{ return m_s3StorageClass; }
/**
* <p>The Amazon S3 storage class that you chose to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline void SetS3StorageClass(const S3StorageClass& value) { m_s3StorageClass = value; }
/**
* <p>The Amazon S3 storage class that you chose to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline void SetS3StorageClass(S3StorageClass&& value) { m_s3StorageClass = std::move(value); }
/**
* <p>The Amazon S3 storage class that you chose to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline DescribeLocationS3Result& WithS3StorageClass(const S3StorageClass& value) { SetS3StorageClass(value); return *this;}
/**
* <p>The Amazon S3 storage class that you chose to store your files in when this
* location is used as a task destination. For more information about S3 storage
* classes, see <a href="https://aws.amazon.com/s3/storage-classes/">Amazon S3
* Storage Classes</a> in the <i>Amazon Simple Storage Service Developer Guide</i>.
* Some storage classes have behaviors that can affect your S3 storage cost. For
* detailed information, see <a>using-storage-classes</a>.</p>
*/
inline DescribeLocationS3Result& WithS3StorageClass(S3StorageClass&& value) { SetS3StorageClass(std::move(value)); return *this;}
inline const S3Config& GetS3Config() const{ return m_s3Config; }
inline void SetS3Config(const S3Config& value) { m_s3Config = value; }
inline void SetS3Config(S3Config&& value) { m_s3Config = std::move(value); }
inline DescribeLocationS3Result& WithS3Config(const S3Config& value) { SetS3Config(value); return *this;}
inline DescribeLocationS3Result& WithS3Config(S3Config&& value) { SetS3Config(std::move(value)); return *this;}
/**
* <p>The time that the Amazon S3 bucket location was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the Amazon S3 bucket location was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the Amazon S3 bucket location was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the Amazon S3 bucket location was created.</p>
*/
inline DescribeLocationS3Result& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the Amazon S3 bucket location was created.</p>
*/
inline DescribeLocationS3Result& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
S3StorageClass m_s3StorageClass;
S3Config m_s3Config;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationSmbRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationSmbRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationSmbRequest : public DataSyncRequest
{
public:
DescribeLocationSmbRequest();
// 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 "DescribeLocationSmb"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline DescribeLocationSmbRequest& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline DescribeLocationSmbRequest& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the SMB location to describe.</p>
*/
inline DescribeLocationSmbRequest& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,318 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/SmbMountOptions.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeLocationSmbResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationSmbResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeLocationSmbResult
{
public:
DescribeLocationSmbResult();
DescribeLocationSmbResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLocationSmbResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the SMB location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUri = value; }
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUri = std::move(value); }
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline void SetLocationUri(const char* value) { m_locationUri.assign(value); }
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>The URL of the source SBM location that was described.</p>
*/
inline DescribeLocationSmbResult& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArns = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArns = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline DescribeLocationSmbResult& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline DescribeLocationSmbResult& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline DescribeLocationSmbResult& AddAgentArns(const Aws::String& value) { m_agentArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline DescribeLocationSmbResult& AddAgentArns(Aws::String&& value) { m_agentArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the source SMB file system location that is
* created.</p>
*/
inline DescribeLocationSmbResult& AddAgentArns(const char* value) { m_agentArns.push_back(value); return *this; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline const Aws::String& GetUser() const{ return m_user; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(const Aws::String& value) { m_user = value; }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(Aws::String&& value) { m_user = std::move(value); }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline void SetUser(const char* value) { m_user.assign(value); }
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline DescribeLocationSmbResult& WithUser(const Aws::String& value) { SetUser(value); return *this;}
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline DescribeLocationSmbResult& WithUser(Aws::String&& value) { SetUser(std::move(value)); return *this;}
/**
* <p>The user who can mount the share, has the permissions to access files and
* folders in the SMB share.</p>
*/
inline DescribeLocationSmbResult& WithUser(const char* value) { SetUser(value); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline const Aws::String& GetDomain() const{ return m_domain; }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(const Aws::String& value) { m_domain = value; }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(Aws::String&& value) { m_domain = std::move(value); }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline void SetDomain(const char* value) { m_domain.assign(value); }
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline DescribeLocationSmbResult& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline DescribeLocationSmbResult& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
/**
* <p>The name of the Windows domain that the SMB server belongs to.</p>
*/
inline DescribeLocationSmbResult& WithDomain(const char* value) { SetDomain(value); return *this;}
/**
* <p>The mount options that are available for DataSync to use to access an SMB
* location.</p>
*/
inline const SmbMountOptions& GetMountOptions() const{ return m_mountOptions; }
/**
* <p>The mount options that are available for DataSync to use to access an SMB
* location.</p>
*/
inline void SetMountOptions(const SmbMountOptions& value) { m_mountOptions = value; }
/**
* <p>The mount options that are available for DataSync to use to access an SMB
* location.</p>
*/
inline void SetMountOptions(SmbMountOptions&& value) { m_mountOptions = std::move(value); }
/**
* <p>The mount options that are available for DataSync to use to access an SMB
* location.</p>
*/
inline DescribeLocationSmbResult& WithMountOptions(const SmbMountOptions& value) { SetMountOptions(value); return *this;}
/**
* <p>The mount options that are available for DataSync to use to access an SMB
* location.</p>
*/
inline DescribeLocationSmbResult& WithMountOptions(SmbMountOptions&& value) { SetMountOptions(std::move(value)); return *this;}
/**
* <p>The time that the SMB location was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the SMB location was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the SMB location was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the SMB location was created.</p>
*/
inline DescribeLocationSmbResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the SMB location was created.</p>
*/
inline DescribeLocationSmbResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_locationArn;
Aws::String m_locationUri;
Aws::Vector<Aws::String> m_agentArns;
Aws::String m_user;
Aws::String m_domain;
SmbMountOptions m_mountOptions;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeTaskExecutionRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecutionRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeTaskExecutionRequest : public DataSyncRequest
{
public:
DescribeTaskExecutionRequest();
// 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 "DescribeTaskExecution"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline bool TaskExecutionArnHasBeenSet() const { return m_taskExecutionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline DescribeTaskExecutionRequest& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline DescribeTaskExecutionRequest& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that is being executed.</p>
*/
inline DescribeTaskExecutionRequest& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
private:
Aws::String m_taskExecutionArn;
bool m_taskExecutionArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,496 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskExecutionStatus.h>
#include <aws/datasync/model/Options.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/datasync/model/TaskExecutionResultDetail.h>
#include <aws/datasync/model/FilterRule.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeTaskExecutionResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecutionResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeTaskExecutionResult
{
public:
DescribeTaskExecutionResult();
DescribeTaskExecutionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTaskExecutionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline DescribeTaskExecutionResult& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline DescribeTaskExecutionResult& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution that was described.
* <code>TaskExecutionArn</code> is hierarchical and includes <code>TaskArn</code>
* for the task that was executed. </p> <p>For example, a
* <code>TaskExecution</code> value with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b</code>
* executed the task with the ARN
* <code>arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2</code>.
* </p>
*/
inline DescribeTaskExecutionResult& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The status of the task execution. </p> <p>For detailed information about task
* execution statuses, see Understanding Task Statuses in the <i>AWS DataSync User
* Guide.</i> </p>
*/
inline const TaskExecutionStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the task execution. </p> <p>For detailed information about task
* execution statuses, see Understanding Task Statuses in the <i>AWS DataSync User
* Guide.</i> </p>
*/
inline void SetStatus(const TaskExecutionStatus& value) { m_status = value; }
/**
* <p>The status of the task execution. </p> <p>For detailed information about task
* execution statuses, see Understanding Task Statuses in the <i>AWS DataSync User
* Guide.</i> </p>
*/
inline void SetStatus(TaskExecutionStatus&& value) { m_status = std::move(value); }
/**
* <p>The status of the task execution. </p> <p>For detailed information about task
* execution statuses, see Understanding Task Statuses in the <i>AWS DataSync User
* Guide.</i> </p>
*/
inline DescribeTaskExecutionResult& WithStatus(const TaskExecutionStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the task execution. </p> <p>For detailed information about task
* execution statuses, see Understanding Task Statuses in the <i>AWS DataSync User
* Guide.</i> </p>
*/
inline DescribeTaskExecutionResult& WithStatus(TaskExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
inline const Options& GetOptions() const{ return m_options; }
inline void SetOptions(const Options& value) { m_options = value; }
inline void SetOptions(Options&& value) { m_options = std::move(value); }
inline DescribeTaskExecutionResult& WithOptions(const Options& value) { SetOptions(value); return *this;}
inline DescribeTaskExecutionResult& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludes = value; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludes = std::move(value); }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& AddExcludes(const FilterRule& value) { m_excludes.push_back(value); return *this; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& AddExcludes(FilterRule&& value) { m_excludes.push_back(std::move(value)); return *this; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includes = value; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includes = std::move(value); }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& AddIncludes(const FilterRule& value) { m_includes.push_back(value); return *this; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The list should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskExecutionResult& AddIncludes(FilterRule&& value) { m_includes.push_back(std::move(value)); return *this; }
/**
* <p>The time that the task execution was started.</p>
*/
inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
/**
* <p>The time that the task execution was started.</p>
*/
inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
/**
* <p>The time that the task execution was started.</p>
*/
inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
/**
* <p>The time that the task execution was started.</p>
*/
inline DescribeTaskExecutionResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
/**
* <p>The time that the task execution was started.</p>
*/
inline DescribeTaskExecutionResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
/**
* <p>The expected number of files that is to be transferred over the network. This
* value is calculated during the PREPARING phase, before the TRANSFERRING phase.
* This value is the expected number of files to be transferred. It's calculated
* based on comparing the content of the source and destination locations and
* finding the delta that needs to be transferred. </p>
*/
inline long long GetEstimatedFilesToTransfer() const{ return m_estimatedFilesToTransfer; }
/**
* <p>The expected number of files that is to be transferred over the network. This
* value is calculated during the PREPARING phase, before the TRANSFERRING phase.
* This value is the expected number of files to be transferred. It's calculated
* based on comparing the content of the source and destination locations and
* finding the delta that needs to be transferred. </p>
*/
inline void SetEstimatedFilesToTransfer(long long value) { m_estimatedFilesToTransfer = value; }
/**
* <p>The expected number of files that is to be transferred over the network. This
* value is calculated during the PREPARING phase, before the TRANSFERRING phase.
* This value is the expected number of files to be transferred. It's calculated
* based on comparing the content of the source and destination locations and
* finding the delta that needs to be transferred. </p>
*/
inline DescribeTaskExecutionResult& WithEstimatedFilesToTransfer(long long value) { SetEstimatedFilesToTransfer(value); return *this;}
/**
* <p>The estimated physical number of bytes that is to be transferred over the
* network.</p>
*/
inline long long GetEstimatedBytesToTransfer() const{ return m_estimatedBytesToTransfer; }
/**
* <p>The estimated physical number of bytes that is to be transferred over the
* network.</p>
*/
inline void SetEstimatedBytesToTransfer(long long value) { m_estimatedBytesToTransfer = value; }
/**
* <p>The estimated physical number of bytes that is to be transferred over the
* network.</p>
*/
inline DescribeTaskExecutionResult& WithEstimatedBytesToTransfer(long long value) { SetEstimatedBytesToTransfer(value); return *this;}
/**
* <p>The actual number of files that was transferred over the network. This value
* is calculated and updated on an ongoing basis during the TRANSFERRING phase.
* It's updated periodically when each file is read from the source and sent over
* the network. </p> <p>If failures occur during a transfer, this value can be less
* than <code>EstimatedFilesToTransfer</code>. This value can also be greater than
* <code>EstimatedFilesTransferred</code> in some cases. This element is
* implementation-specific for some location types, so don't use it as an indicator
* for a correct file number or to monitor your task execution.</p>
*/
inline long long GetFilesTransferred() const{ return m_filesTransferred; }
/**
* <p>The actual number of files that was transferred over the network. This value
* is calculated and updated on an ongoing basis during the TRANSFERRING phase.
* It's updated periodically when each file is read from the source and sent over
* the network. </p> <p>If failures occur during a transfer, this value can be less
* than <code>EstimatedFilesToTransfer</code>. This value can also be greater than
* <code>EstimatedFilesTransferred</code> in some cases. This element is
* implementation-specific for some location types, so don't use it as an indicator
* for a correct file number or to monitor your task execution.</p>
*/
inline void SetFilesTransferred(long long value) { m_filesTransferred = value; }
/**
* <p>The actual number of files that was transferred over the network. This value
* is calculated and updated on an ongoing basis during the TRANSFERRING phase.
* It's updated periodically when each file is read from the source and sent over
* the network. </p> <p>If failures occur during a transfer, this value can be less
* than <code>EstimatedFilesToTransfer</code>. This value can also be greater than
* <code>EstimatedFilesTransferred</code> in some cases. This element is
* implementation-specific for some location types, so don't use it as an indicator
* for a correct file number or to monitor your task execution.</p>
*/
inline DescribeTaskExecutionResult& WithFilesTransferred(long long value) { SetFilesTransferred(value); return *this;}
/**
* <p>The number of logical bytes written to the destination AWS storage
* resource.</p>
*/
inline long long GetBytesWritten() const{ return m_bytesWritten; }
/**
* <p>The number of logical bytes written to the destination AWS storage
* resource.</p>
*/
inline void SetBytesWritten(long long value) { m_bytesWritten = value; }
/**
* <p>The number of logical bytes written to the destination AWS storage
* resource.</p>
*/
inline DescribeTaskExecutionResult& WithBytesWritten(long long value) { SetBytesWritten(value); return *this;}
/**
* <p>The physical number of bytes transferred over the network.</p>
*/
inline long long GetBytesTransferred() const{ return m_bytesTransferred; }
/**
* <p>The physical number of bytes transferred over the network.</p>
*/
inline void SetBytesTransferred(long long value) { m_bytesTransferred = value; }
/**
* <p>The physical number of bytes transferred over the network.</p>
*/
inline DescribeTaskExecutionResult& WithBytesTransferred(long long value) { SetBytesTransferred(value); return *this;}
/**
* <p>The result of the task execution.</p>
*/
inline const TaskExecutionResultDetail& GetResult() const{ return m_result; }
/**
* <p>The result of the task execution.</p>
*/
inline void SetResult(const TaskExecutionResultDetail& value) { m_result = value; }
/**
* <p>The result of the task execution.</p>
*/
inline void SetResult(TaskExecutionResultDetail&& value) { m_result = std::move(value); }
/**
* <p>The result of the task execution.</p>
*/
inline DescribeTaskExecutionResult& WithResult(const TaskExecutionResultDetail& value) { SetResult(value); return *this;}
/**
* <p>The result of the task execution.</p>
*/
inline DescribeTaskExecutionResult& WithResult(TaskExecutionResultDetail&& value) { SetResult(std::move(value)); return *this;}
private:
Aws::String m_taskExecutionArn;
TaskExecutionStatus m_status;
Options m_options;
Aws::Vector<FilterRule> m_excludes;
Aws::Vector<FilterRule> m_includes;
Aws::Utils::DateTime m_startTime;
long long m_estimatedFilesToTransfer;
long long m_estimatedBytesToTransfer;
long long m_filesTransferred;
long long m_bytesWritten;
long long m_bytesTransferred;
TaskExecutionResultDetail m_result;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeTaskRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeTaskRequest : public DataSyncRequest
{
public:
DescribeTaskRequest();
// 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 "DescribeTask"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline DescribeTaskRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline DescribeTaskRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to describe.</p>
*/
inline DescribeTaskRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
private:
Aws::String m_taskArn;
bool m_taskArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,709 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/Options.h>
#include <aws/datasync/model/TaskSchedule.h>
#include <aws/core/utils/DateTime.h>
#include <aws/datasync/model/FilterRule.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>DescribeTaskResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API DescribeTaskResult
{
public:
DescribeTaskResult();
DescribeTaskResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeTaskResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline DescribeTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline DescribeTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that was described.</p>
*/
inline DescribeTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
/**
* <p>The status of the task that was described.</p> <p>For detailed information
* about task execution statuses, see Understanding Task Statuses in the <i>AWS
* DataSync User Guide.</i> </p>
*/
inline const TaskStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the task that was described.</p> <p>For detailed information
* about task execution statuses, see Understanding Task Statuses in the <i>AWS
* DataSync User Guide.</i> </p>
*/
inline void SetStatus(const TaskStatus& value) { m_status = value; }
/**
* <p>The status of the task that was described.</p> <p>For detailed information
* about task execution statuses, see Understanding Task Statuses in the <i>AWS
* DataSync User Guide.</i> </p>
*/
inline void SetStatus(TaskStatus&& value) { m_status = std::move(value); }
/**
* <p>The status of the task that was described.</p> <p>For detailed information
* about task execution statuses, see Understanding Task Statuses in the <i>AWS
* DataSync User Guide.</i> </p>
*/
inline DescribeTaskResult& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the task that was described.</p> <p>For detailed information
* about task execution statuses, see Understanding Task Statuses in the <i>AWS
* DataSync User Guide.</i> </p>
*/
inline DescribeTaskResult& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The name of the task that was described.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the task that was described.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the task that was described.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the task that was described.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the task that was described.</p>
*/
inline DescribeTaskResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the task that was described.</p>
*/
inline DescribeTaskResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the task that was described.</p>
*/
inline DescribeTaskResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline const Aws::String& GetCurrentTaskExecutionArn() const{ return m_currentTaskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline void SetCurrentTaskExecutionArn(const Aws::String& value) { m_currentTaskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline void SetCurrentTaskExecutionArn(Aws::String&& value) { m_currentTaskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline void SetCurrentTaskExecutionArn(const char* value) { m_currentTaskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline DescribeTaskResult& WithCurrentTaskExecutionArn(const Aws::String& value) { SetCurrentTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline DescribeTaskResult& WithCurrentTaskExecutionArn(Aws::String&& value) { SetCurrentTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task execution that is syncing
* files.</p>
*/
inline DescribeTaskResult& WithCurrentTaskExecutionArn(const char* value) { SetCurrentTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline const Aws::String& GetSourceLocationArn() const{ return m_sourceLocationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline void SetSourceLocationArn(const Aws::String& value) { m_sourceLocationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline void SetSourceLocationArn(Aws::String&& value) { m_sourceLocationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline void SetSourceLocationArn(const char* value) { m_sourceLocationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline DescribeTaskResult& WithSourceLocationArn(const Aws::String& value) { SetSourceLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline DescribeTaskResult& WithSourceLocationArn(Aws::String&& value) { SetSourceLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source file system's location.</p>
*/
inline DescribeTaskResult& WithSourceLocationArn(const char* value) { SetSourceLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline const Aws::String& GetDestinationLocationArn() const{ return m_destinationLocationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline void SetDestinationLocationArn(const Aws::String& value) { m_destinationLocationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline void SetDestinationLocationArn(Aws::String&& value) { m_destinationLocationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline void SetDestinationLocationArn(const char* value) { m_destinationLocationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline DescribeTaskResult& WithDestinationLocationArn(const Aws::String& value) { SetDestinationLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline DescribeTaskResult& WithDestinationLocationArn(Aws::String&& value) { SetDestinationLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the AWS storage resource's location.</p>
*/
inline DescribeTaskResult& WithDestinationLocationArn(const char* value) { SetDestinationLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline DescribeTaskResult& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline DescribeTaskResult& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was
* used to monitor and log events in the task.</p> <p>For more information on these
* groups, see Working with Log Groups and Log Streams in the <i>Amazon CloudWatch
* User Guide</i>.</p>
*/
inline DescribeTaskResult& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline const Aws::Vector<Aws::String>& GetSourceNetworkInterfaceArns() const{ return m_sourceNetworkInterfaceArns; }
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline void SetSourceNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { m_sourceNetworkInterfaceArns = value; }
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline void SetSourceNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { m_sourceNetworkInterfaceArns = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline DescribeTaskResult& WithSourceNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { SetSourceNetworkInterfaceArns(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline DescribeTaskResult& WithSourceNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { SetSourceNetworkInterfaceArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddSourceNetworkInterfaceArns(const Aws::String& value) { m_sourceNetworkInterfaceArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddSourceNetworkInterfaceArns(Aws::String&& value) { m_sourceNetworkInterfaceArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the source ENIs (Elastic Network Interface)
* that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddSourceNetworkInterfaceArns(const char* value) { m_sourceNetworkInterfaceArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline const Aws::Vector<Aws::String>& GetDestinationNetworkInterfaceArns() const{ return m_destinationNetworkInterfaceArns; }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline void SetDestinationNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { m_destinationNetworkInterfaceArns = value; }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline void SetDestinationNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { m_destinationNetworkInterfaceArns = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline DescribeTaskResult& WithDestinationNetworkInterfaceArns(const Aws::Vector<Aws::String>& value) { SetDestinationNetworkInterfaceArns(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline DescribeTaskResult& WithDestinationNetworkInterfaceArns(Aws::Vector<Aws::String>&& value) { SetDestinationNetworkInterfaceArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(const Aws::String& value) { m_destinationNetworkInterfaceArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(Aws::String&& value) { m_destinationNetworkInterfaceArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the destination ENIs (Elastic Network
* Interface) that was created for your subnet.</p>
*/
inline DescribeTaskResult& AddDestinationNetworkInterfaceArns(const char* value) { m_destinationNetworkInterfaceArns.push_back(value); return *this; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the overriding <code>OverrideOptions</code> value to operation. </p>
*/
inline const Options& GetOptions() const{ return m_options; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the overriding <code>OverrideOptions</code> value to operation. </p>
*/
inline void SetOptions(const Options& value) { m_options = value; }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the overriding <code>OverrideOptions</code> value to operation. </p>
*/
inline void SetOptions(Options&& value) { m_options = std::move(value); }
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the overriding <code>OverrideOptions</code> value to operation. </p>
*/
inline DescribeTaskResult& WithOptions(const Options& value) { SetOptions(value); return *this;}
/**
* <p>The set of configuration options that control the behavior of a single
* execution of the task that occurs when you call <code>StartTaskExecution</code>.
* You can configure these options to preserve metadata such as user ID (UID) and
* group (GID), file permissions, data integrity verification, and so on.</p>
* <p>For each individual task execution, you can override these options by
* specifying the overriding <code>OverrideOptions</code> value to operation. </p>
*/
inline DescribeTaskResult& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludes = value; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludes = std::move(value); }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskResult& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskResult& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskResult& AddExcludes(const FilterRule& value) { m_excludes.push_back(value); return *this; }
/**
* <p>A list of filter rules that determines which files to exclude from a task.
* The list should contain a single filter string that consists of the patterns to
* exclude. The patterns are delimited by "|" (that is, a pipe), for example:
* <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline DescribeTaskResult& AddExcludes(FilterRule&& value) { m_excludes.push_back(std::move(value)); return *this; }
/**
* <p>The schedule used to periodically transfer files from a source to a
* destination location.</p>
*/
inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
/**
* <p>The schedule used to periodically transfer files from a source to a
* destination location.</p>
*/
inline void SetSchedule(const TaskSchedule& value) { m_schedule = value; }
/**
* <p>The schedule used to periodically transfer files from a source to a
* destination location.</p>
*/
inline void SetSchedule(TaskSchedule&& value) { m_schedule = std::move(value); }
/**
* <p>The schedule used to periodically transfer files from a source to a
* destination location.</p>
*/
inline DescribeTaskResult& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
/**
* <p>The schedule used to periodically transfer files from a source to a
* destination location.</p>
*/
inline DescribeTaskResult& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCode = value; }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCode = std::move(value); }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCode.assign(value); }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline DescribeTaskResult& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline DescribeTaskResult& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline DescribeTaskResult& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(const Aws::String& value) { m_errorDetail = value; }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(Aws::String&& value) { m_errorDetail = std::move(value); }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(const char* value) { m_errorDetail.assign(value); }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline DescribeTaskResult& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline DescribeTaskResult& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline DescribeTaskResult& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
/**
* <p>The time that the task was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time that the task was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; }
/**
* <p>The time that the task was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); }
/**
* <p>The time that the task was created.</p>
*/
inline DescribeTaskResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time that the task was created.</p>
*/
inline DescribeTaskResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_taskArn;
TaskStatus m_status;
Aws::String m_name;
Aws::String m_currentTaskExecutionArn;
Aws::String m_sourceLocationArn;
Aws::String m_destinationLocationArn;
Aws::String m_cloudWatchLogGroupArn;
Aws::Vector<Aws::String> m_sourceNetworkInterfaceArns;
Aws::Vector<Aws::String> m_destinationNetworkInterfaceArns;
Options m_options;
Aws::Vector<FilterRule> m_excludes;
TaskSchedule m_schedule;
Aws::String m_errorCode;
Aws::String m_errorDetail;
Aws::Utils::DateTime m_creationTime;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>The subnet and the security group that DataSync uses to access target EFS
* file system. The subnet must have at least one mount target for that file
* system. The security group that you provide needs to be able to communicate with
* the security group on the mount target in the subnet specified. </p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/Ec2Config">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API Ec2Config
{
public:
Ec2Config();
Ec2Config(Aws::Utils::Json::JsonView jsonValue);
Ec2Config& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline const Aws::String& GetSubnetArn() const{ return m_subnetArn; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline bool SubnetArnHasBeenSet() const { return m_subnetArnHasBeenSet; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(const Aws::String& value) { m_subnetArnHasBeenSet = true; m_subnetArn = value; }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(Aws::String&& value) { m_subnetArnHasBeenSet = true; m_subnetArn = std::move(value); }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline void SetSubnetArn(const char* value) { m_subnetArnHasBeenSet = true; m_subnetArn.assign(value); }
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(const Aws::String& value) { SetSubnetArn(value); return *this;}
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(Aws::String&& value) { SetSubnetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the subnet and the security group that DataSync uses to access the
* target EFS file system.</p>
*/
inline Ec2Config& WithSubnetArn(const char* value) { SetSubnetArn(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the Amazon EC2 resource.</p>
*/
inline Ec2Config& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
private:
Aws::String m_subnetArn;
bool m_subnetArnHasBeenSet;
Aws::Vector<Aws::String> m_securityGroupArns;
bool m_securityGroupArnsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class EndpointType
{
NOT_SET,
PUBLIC_,
PRIVATE_LINK,
FIPS
};
namespace EndpointTypeMapper
{
AWS_DATASYNC_API EndpointType GetEndpointTypeForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForEndpointType(EndpointType value);
} // namespace EndpointTypeMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,146 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/FilterType.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 DataSync
{
namespace Model
{
/**
* <p>Specifies which files, folders and objects to include or exclude when
* transferring files from source to destination.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/FilterRule">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API FilterRule
{
public:
FilterRule();
FilterRule(Aws::Utils::Json::JsonView jsonValue);
FilterRule& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline const FilterType& GetFilterType() const{ return m_filterType; }
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline bool FilterTypeHasBeenSet() const { return m_filterTypeHasBeenSet; }
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline void SetFilterType(const FilterType& value) { m_filterTypeHasBeenSet = true; m_filterType = value; }
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline void SetFilterType(FilterType&& value) { m_filterTypeHasBeenSet = true; m_filterType = std::move(value); }
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline FilterRule& WithFilterType(const FilterType& value) { SetFilterType(value); return *this;}
/**
* <p>The type of filter rule to apply. AWS DataSync only supports the
* SIMPLE_PATTERN rule type.</p>
*/
inline FilterRule& WithFilterType(FilterType&& value) { SetFilterType(std::move(value)); return *this;}
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline FilterRule& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline FilterRule& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>A single filter string that consists of the patterns to include or exclude.
* The patterns are delimited by "|" (that is, a pipe), for example:
* <code>/folder1|/folder2</code> </p> <p> </p>
*/
inline FilterRule& WithValue(const char* value) { SetValue(value); return *this;}
private:
FilterType m_filterType;
bool m_filterTypeHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class FilterType
{
NOT_SET,
SIMPLE_PATTERN
};
namespace FilterTypeMapper
{
AWS_DATASYNC_API FilterType GetFilterTypeForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForFilterType(FilterType value);
} // namespace FilterTypeMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class Gid
{
NOT_SET,
NONE,
INT_VALUE,
NAME,
BOTH
};
namespace GidMapper
{
AWS_DATASYNC_API Gid GetGidForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForGid(Gid value);
} // namespace GidMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>This exception is thrown when an error occurs in the AWS DataSync
* service.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/InternalException">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API InternalException
{
public:
InternalException();
InternalException(Aws::Utils::Json::JsonView jsonValue);
InternalException& 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 InternalException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InternalException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InternalException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
inline InternalException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
inline InternalException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
inline InternalException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>This exception is thrown when the client submits a malformed
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/InvalidRequestException">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API InvalidRequestException
{
public:
InvalidRequestException();
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue);
InvalidRequestException& 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 InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
inline InvalidRequestException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
inline InvalidRequestException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
inline InvalidRequestException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>ListAgentsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListAgentsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListAgentsRequest : public DataSyncRequest
{
public:
ListAgentsRequest();
// 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 "ListAgents"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The maximum number of agents to list.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of agents to list.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of agents to list.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of agents to list.</p>
*/
inline ListAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline ListAgentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline ListAgentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of agents.</p>
*/
inline ListAgentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/AgentListEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>ListAgentsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListAgentsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListAgentsResult
{
public:
ListAgentsResult();
ListAgentsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListAgentsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of agents in your account.</p>
*/
inline const Aws::Vector<AgentListEntry>& GetAgents() const{ return m_agents; }
/**
* <p>A list of agents in your account.</p>
*/
inline void SetAgents(const Aws::Vector<AgentListEntry>& value) { m_agents = value; }
/**
* <p>A list of agents in your account.</p>
*/
inline void SetAgents(Aws::Vector<AgentListEntry>&& value) { m_agents = std::move(value); }
/**
* <p>A list of agents in your account.</p>
*/
inline ListAgentsResult& WithAgents(const Aws::Vector<AgentListEntry>& value) { SetAgents(value); return *this;}
/**
* <p>A list of agents in your account.</p>
*/
inline ListAgentsResult& WithAgents(Aws::Vector<AgentListEntry>&& value) { SetAgents(std::move(value)); return *this;}
/**
* <p>A list of agents in your account.</p>
*/
inline ListAgentsResult& AddAgents(const AgentListEntry& value) { m_agents.push_back(value); return *this; }
/**
* <p>A list of agents in your account.</p>
*/
inline ListAgentsResult& AddAgents(AgentListEntry&& value) { m_agents.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline ListAgentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline ListAgentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of agents.</p>
*/
inline ListAgentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AgentListEntry> m_agents;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,150 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/LocationFilter.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>ListLocationsRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocationsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListLocationsRequest : public DataSyncRequest
{
public:
ListLocationsRequest();
// 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 "ListLocations"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The maximum number of locations to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline ListLocationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListLocationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListLocationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListLocationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline const Aws::Vector<LocationFilter>& GetFilters() const{ return m_filters; }
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
inline void SetFilters(const Aws::Vector<LocationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
inline void SetFilters(Aws::Vector<LocationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
inline ListLocationsRequest& WithFilters(const Aws::Vector<LocationFilter>& value) { SetFilters(value); return *this;}
inline ListLocationsRequest& WithFilters(Aws::Vector<LocationFilter>&& value) { SetFilters(std::move(value)); return *this;}
inline ListLocationsRequest& AddFilters(const LocationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
inline ListLocationsRequest& AddFilters(LocationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::Vector<LocationFilter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/LocationListEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>ListLocationsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocationsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListLocationsResult
{
public:
ListLocationsResult();
ListLocationsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListLocationsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array that contains a list of locations.</p>
*/
inline const Aws::Vector<LocationListEntry>& GetLocations() const{ return m_locations; }
/**
* <p>An array that contains a list of locations.</p>
*/
inline void SetLocations(const Aws::Vector<LocationListEntry>& value) { m_locations = value; }
/**
* <p>An array that contains a list of locations.</p>
*/
inline void SetLocations(Aws::Vector<LocationListEntry>&& value) { m_locations = std::move(value); }
/**
* <p>An array that contains a list of locations.</p>
*/
inline ListLocationsResult& WithLocations(const Aws::Vector<LocationListEntry>& value) { SetLocations(value); return *this;}
/**
* <p>An array that contains a list of locations.</p>
*/
inline ListLocationsResult& WithLocations(Aws::Vector<LocationListEntry>&& value) { SetLocations(std::move(value)); return *this;}
/**
* <p>An array that contains a list of locations.</p>
*/
inline ListLocationsResult& AddLocations(const LocationListEntry& value) { m_locations.push_back(value); return *this; }
/**
* <p>An array that contains a list of locations.</p>
*/
inline ListLocationsResult& AddLocations(LocationListEntry&& value) { m_locations.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline ListLocationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline ListLocationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of locations.</p>
*/
inline ListLocationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<LocationListEntry> m_locations;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,164 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>ListTagsForResourceRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTagsForResourceRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTagsForResourceRequest : public DataSyncRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource whose tags to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The maximum number of locations to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of locations to return.</p>
*/
inline ListTagsForResourceRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of locations.</p>
*/
inline ListTagsForResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>ListTagsForResourceResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTagsForResourceResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Array of resource tags.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>Array of resource tags.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tags = value; }
/**
* <p>Array of resource tags.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tags = std::move(value); }
/**
* <p>Array of resource tags.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>Array of resource tags.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Array of resource tags.</p>
*/
inline ListTagsForResourceResult& AddTags(const TagListEntry& value) { m_tags.push_back(value); return *this; }
/**
* <p>Array of resource tags.</p>
*/
inline ListTagsForResourceResult& AddTags(TagListEntry&& value) { m_tags.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline ListTagsForResourceResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline ListTagsForResourceResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of resource tags.</p>
*/
inline ListTagsForResourceResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TagListEntry> m_tags;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,164 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>ListTaskExecutions</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutionsRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTaskExecutionsRequest : public DataSyncRequest
{
public:
ListTaskExecutionsRequest();
// 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 "ListTaskExecutions"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline ListTaskExecutionsRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline ListTaskExecutionsRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task whose tasks you want to list.</p>
*/
inline ListTaskExecutionsRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
/**
* <p>The maximum number of executed tasks to list.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of executed tasks to list.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of executed tasks to list.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of executed tasks to list.</p>
*/
inline ListTaskExecutionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline ListTaskExecutionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline ListTaskExecutionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of the executed tasks.</p>
*/
inline ListTaskExecutionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_taskArn;
bool m_taskArnHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskExecutionListEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>ListTaskExecutionsResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutionsResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTaskExecutionsResult
{
public:
ListTaskExecutionsResult();
ListTaskExecutionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTaskExecutionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of executed tasks.</p>
*/
inline const Aws::Vector<TaskExecutionListEntry>& GetTaskExecutions() const{ return m_taskExecutions; }
/**
* <p>A list of executed tasks.</p>
*/
inline void SetTaskExecutions(const Aws::Vector<TaskExecutionListEntry>& value) { m_taskExecutions = value; }
/**
* <p>A list of executed tasks.</p>
*/
inline void SetTaskExecutions(Aws::Vector<TaskExecutionListEntry>&& value) { m_taskExecutions = std::move(value); }
/**
* <p>A list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& WithTaskExecutions(const Aws::Vector<TaskExecutionListEntry>& value) { SetTaskExecutions(value); return *this;}
/**
* <p>A list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& WithTaskExecutions(Aws::Vector<TaskExecutionListEntry>&& value) { SetTaskExecutions(std::move(value)); return *this;}
/**
* <p>A list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& AddTaskExecutions(const TaskExecutionListEntry& value) { m_taskExecutions.push_back(value); return *this; }
/**
* <p>A list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& AddTaskExecutions(TaskExecutionListEntry&& value) { m_taskExecutions.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of executed tasks.</p>
*/
inline ListTaskExecutionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TaskExecutionListEntry> m_taskExecutions;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,150 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TaskFilter.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>ListTasksRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTasksRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTasksRequest : public DataSyncRequest
{
public:
ListTasksRequest();
// 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 "ListTasks"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The maximum number of tasks to return.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of tasks to return.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of tasks to return.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of tasks to return.</p>
*/
inline ListTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline ListTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline ListTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin the next list
* of tasks.</p>
*/
inline ListTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
inline const Aws::Vector<TaskFilter>& GetFilters() const{ return m_filters; }
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
inline void SetFilters(const Aws::Vector<TaskFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
inline void SetFilters(Aws::Vector<TaskFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
inline ListTasksRequest& WithFilters(const Aws::Vector<TaskFilter>& value) { SetFilters(value); return *this;}
inline ListTasksRequest& WithFilters(Aws::Vector<TaskFilter>&& value) { SetFilters(std::move(value)); return *this;}
inline ListTasksRequest& AddFilters(const TaskFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
inline ListTasksRequest& AddFilters(TaskFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::Vector<TaskFilter> m_filters;
bool m_filtersHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskListEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>ListTasksResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTasksResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API ListTasksResult
{
public:
ListTasksResult();
ListTasksResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTasksResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline const Aws::Vector<TaskListEntry>& GetTasks() const{ return m_tasks; }
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline void SetTasks(const Aws::Vector<TaskListEntry>& value) { m_tasks = value; }
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline void SetTasks(Aws::Vector<TaskListEntry>&& value) { m_tasks = std::move(value); }
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline ListTasksResult& WithTasks(const Aws::Vector<TaskListEntry>& value) { SetTasks(value); return *this;}
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline ListTasksResult& WithTasks(Aws::Vector<TaskListEntry>&& value) { SetTasks(std::move(value)); return *this;}
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline ListTasksResult& AddTasks(const TaskListEntry& value) { m_tasks.push_back(value); return *this; }
/**
* <p>A list of all the tasks that are returned.</p>
*/
inline ListTasksResult& AddTasks(TaskListEntry&& value) { m_tasks.push_back(std::move(value)); return *this; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline ListTasksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline ListTasksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>An opaque string that indicates the position at which to begin returning the
* next list of tasks.</p>
*/
inline ListTasksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TaskListEntry> m_tasks;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/LocationFilterName.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/Operator.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 DataSync
{
namespace Model
{
class AWS_DATASYNC_API LocationFilter
{
public:
LocationFilter();
LocationFilter(Aws::Utils::Json::JsonView jsonValue);
LocationFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const LocationFilterName& GetName() const{ return m_name; }
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
inline void SetName(const LocationFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
inline void SetName(LocationFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
inline LocationFilter& WithName(const LocationFilterName& value) { SetName(value); return *this;}
inline LocationFilter& WithName(LocationFilterName&& value) { SetName(std::move(value)); return *this;}
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
inline LocationFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
inline LocationFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
inline LocationFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
inline LocationFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
inline LocationFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
inline const Operator& GetOperator() const{ return m_operator; }
inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
inline void SetOperator(const Operator& value) { m_operatorHasBeenSet = true; m_operator = value; }
inline void SetOperator(Operator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
inline LocationFilter& WithOperator(const Operator& value) { SetOperator(value); return *this;}
inline LocationFilter& WithOperator(Operator&& value) { SetOperator(std::move(value)); return *this;}
private:
LocationFilterName m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
Operator m_operator;
bool m_operatorHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class LocationFilterName
{
NOT_SET,
LocationUri,
LocationType,
CreationTime
};
namespace LocationFilterNameMapper
{
AWS_DATASYNC_API LocationFilterName GetLocationFilterNameForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForLocationFilterName(LocationFilterName value);
} // namespace LocationFilterNameMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,239 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>Represents a single entry in a list of locations.
* <code>LocationListEntry</code> returns an array that contains a list of
* locations when the <a>ListLocations</a> operation is called.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/LocationListEntry">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API LocationListEntry
{
public:
LocationListEntry();
LocationListEntry(Aws::Utils::Json::JsonView jsonValue);
LocationListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline const Aws::String& GetLocationArn() const{ return m_locationArn; }
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline void SetLocationArn(const Aws::String& value) { m_locationArnHasBeenSet = true; m_locationArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline void SetLocationArn(Aws::String&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline void SetLocationArn(const char* value) { m_locationArnHasBeenSet = true; m_locationArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline LocationListEntry& WithLocationArn(const Aws::String& value) { SetLocationArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline LocationListEntry& WithLocationArn(Aws::String&& value) { SetLocationArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the location. For Network File System (NFS)
* or Amazon EFS, the location is the export path. For Amazon S3, the location is
* the prefix path that you want to mount and use as the root of the location.</p>
*/
inline LocationListEntry& WithLocationArn(const char* value) { SetLocationArn(value); return *this;}
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline const Aws::String& GetLocationUri() const{ return m_locationUri; }
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline void SetLocationUri(const Aws::String& value) { m_locationUriHasBeenSet = true; m_locationUri = value; }
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline void SetLocationUri(Aws::String&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::move(value); }
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline void SetLocationUri(const char* value) { m_locationUriHasBeenSet = true; m_locationUri.assign(value); }
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline LocationListEntry& WithLocationUri(const Aws::String& value) { SetLocationUri(value); return *this;}
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline LocationListEntry& WithLocationUri(Aws::String&& value) { SetLocationUri(std::move(value)); return *this;}
/**
* <p>Represents a list of URLs of a location. <code>LocationUri</code> returns an
* array that contains a list of locations when the <a>ListLocations</a> operation
* is called.</p> <p>Format: <code>TYPE://GLOBAL_ID/SUBDIR</code>.</p> <p>TYPE
* designates the type of location. Valid values: NFS | EFS | S3.</p> <p>GLOBAL_ID
* is the globally unique identifier of the resource that backs the location. An
* example for EFS is <code>us-east-2.fs-abcd1234</code>. An example for Amazon S3
* is the bucket name, such as <code>myBucket</code>. An example for NFS is a valid
* IPv4 address or a host name compliant with Domain Name Service (DNS).</p>
* <p>SUBDIR is a valid file system path, delimited by forward slashes as is the
* *nix convention. For NFS and Amazon EFS, it's the export path to mount the
* location. For Amazon S3, it's the prefix path that you mount to and treat as the
* root of the location.</p> <p/>
*/
inline LocationListEntry& WithLocationUri(const char* value) { SetLocationUri(value); return *this;}
private:
Aws::String m_locationArn;
bool m_locationArnHasBeenSet;
Aws::String m_locationUri;
bool m_locationUriHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class LogLevel
{
NOT_SET,
OFF,
BASIC,
TRANSFER
};
namespace LogLevelMapper
{
AWS_DATASYNC_API LogLevel GetLogLevelForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForLogLevel(LogLevel value);
} // namespace LogLevelMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class Mtime
{
NOT_SET,
NONE,
PRESERVE
};
namespace MtimeMapper
{
AWS_DATASYNC_API Mtime GetMtimeForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForMtime(Mtime value);
} // namespace MtimeMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/NfsVersion.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents the mount options that are available for DataSync to access an NFS
* location.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/NfsMountOptions">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API NfsMountOptions
{
public:
NfsMountOptions();
NfsMountOptions(Aws::Utils::Json::JsonView jsonValue);
NfsMountOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline const NfsVersion& GetVersion() const{ return m_version; }
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline void SetVersion(const NfsVersion& value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline void SetVersion(NfsVersion&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline NfsMountOptions& WithVersion(const NfsVersion& value) { SetVersion(value); return *this;}
/**
* <p>The specific NFS version that you want DataSync to use to mount your NFS
* share. If the server refuses to use the version specified, the sync will fail.
* If you don't specify a version, DataSync defaults to <code>AUTOMATIC</code>.
* That is, DataSync automatically selects a version based on negotiation with the
* NFS server.</p> <p>You can specify the following NFS versions:</p> <ul> <li> <p>
* <b> <a href="https://tools.ietf.org/html/rfc1813">NFSv3</a> </b> - stateless
* protocol version that allows for asynchronous writes on the server.</p> </li>
* <li> <p> <b> <a href="https://tools.ietf.org/html/rfc3530">NFSv4.0</a> </b> -
* stateful, firewall-friendly protocol version that supports delegations and
* pseudo filesystems.</p> </li> <li> <p> <b> <a
* href="https://tools.ietf.org/html/rfc5661">NFSv4.1</a> </b> - stateful protocol
* version that supports sessions, directory delegations, and parallel data
* processing. Version 4.1 also includes all features available in version 4.0.</p>
* </li> </ul>
*/
inline NfsMountOptions& WithVersion(NfsVersion&& value) { SetVersion(std::move(value)); return *this;}
private:
NfsVersion m_version;
bool m_versionHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class NfsVersion
{
NOT_SET,
AUTOMATIC,
NFS3,
NFS4_0,
NFS4_1
};
namespace NfsVersionMapper
{
AWS_DATASYNC_API NfsVersion GetNfsVersionForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForNfsVersion(NfsVersion value);
} // namespace NfsVersionMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class ObjectStorageServerProtocol
{
NOT_SET,
HTTPS,
HTTP
};
namespace ObjectStorageServerProtocolMapper
{
AWS_DATASYNC_API ObjectStorageServerProtocol GetObjectStorageServerProtocolForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForObjectStorageServerProtocol(ObjectStorageServerProtocol value);
} // namespace ObjectStorageServerProtocolMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.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 DataSync
{
namespace Model
{
/**
* <p>A list of Amazon Resource Names (ARNs) of agents to use for a Network File
* System (NFS) location.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/OnPremConfig">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API OnPremConfig
{
public:
OnPremConfig();
OnPremConfig(Aws::Utils::Json::JsonView jsonValue);
OnPremConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline const Aws::Vector<Aws::String>& GetAgentArns() const{ return m_agentArns; }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline void SetAgentArns(const Aws::Vector<Aws::String>& value) { m_agentArnsHasBeenSet = true; m_agentArns = value; }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline void SetAgentArns(Aws::Vector<Aws::String>&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::move(value); }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline OnPremConfig& WithAgentArns(const Aws::Vector<Aws::String>& value) { SetAgentArns(value); return *this;}
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline OnPremConfig& WithAgentArns(Aws::Vector<Aws::String>&& value) { SetAgentArns(std::move(value)); return *this;}
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline OnPremConfig& AddAgentArns(const Aws::String& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline OnPremConfig& AddAgentArns(Aws::String&& value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(std::move(value)); return *this; }
/**
* <p>ARNs)of the agents to use for an NFS location.</p>
*/
inline OnPremConfig& AddAgentArns(const char* value) { m_agentArnsHasBeenSet = true; m_agentArns.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_agentArns;
bool m_agentArnsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,39 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class Operator
{
NOT_SET,
Equals,
NotEquals,
In,
LessThanOrEqual,
LessThan,
GreaterThanOrEqual,
GreaterThan,
Contains,
NotContains,
BeginsWith
};
namespace OperatorMapper
{
AWS_DATASYNC_API Operator GetOperatorForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForOperator(Operator value);
} // namespace OperatorMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,929 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/VerifyMode.h>
#include <aws/datasync/model/OverwriteMode.h>
#include <aws/datasync/model/Atime.h>
#include <aws/datasync/model/Mtime.h>
#include <aws/datasync/model/Uid.h>
#include <aws/datasync/model/Gid.h>
#include <aws/datasync/model/PreserveDeletedFiles.h>
#include <aws/datasync/model/PreserveDevices.h>
#include <aws/datasync/model/PosixPermissions.h>
#include <aws/datasync/model/TaskQueueing.h>
#include <aws/datasync/model/LogLevel.h>
#include <aws/datasync/model/TransferMode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents the options that are available to control the behavior of a
* <a>StartTaskExecution</a> operation. Behavior includes preserving metadata such
* as user ID (UID), group ID (GID), and file permissions, and also overwriting
* files in the destination, data integrity verification, and so on.</p> <p>A task
* has a set of default options associated with it. If you don't specify an option
* in <a>StartTaskExecution</a>, the default value is used. You can override the
* defaults options on each task execution by specifying an overriding
* <code>Options</code> value to <a>StartTaskExecution</a>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/Options">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API Options
{
public:
Options();
Options(Aws::Utils::Json::JsonView jsonValue);
Options& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline const VerifyMode& GetVerifyMode() const{ return m_verifyMode; }
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline bool VerifyModeHasBeenSet() const { return m_verifyModeHasBeenSet; }
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline void SetVerifyMode(const VerifyMode& value) { m_verifyModeHasBeenSet = true; m_verifyMode = value; }
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline void SetVerifyMode(VerifyMode&& value) { m_verifyModeHasBeenSet = true; m_verifyMode = std::move(value); }
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline Options& WithVerifyMode(const VerifyMode& value) { SetVerifyMode(value); return *this;}
/**
* <p>A value that determines whether a data integrity verification should be
* performed at the end of a task execution after all data and metadata have been
* transferred. For more information, see <a>create-task</a> </p> <p>Default value:
* POINT_IN_TIME_CONSISTENT.</p> <p>ONLY_FILES_TRANSFERRED (recommended): Perform
* verification only on files that were transferred. </p>
* <p>POINT_IN_TIME_CONSISTENT: Scan the entire source and entire destination at
* the end of the transfer to verify that source and destination are fully
* synchronized. This option isn't supported when transferring to S3 Glacier or S3
* Glacier Deep Archive storage classes.</p> <p>NONE: No additional verification is
* done at the end of the transfer, but all data transmissions are
* integrity-checked with checksum verification during the transfer.</p>
*/
inline Options& WithVerifyMode(VerifyMode&& value) { SetVerifyMode(std::move(value)); return *this;}
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline const OverwriteMode& GetOverwriteMode() const{ return m_overwriteMode; }
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline bool OverwriteModeHasBeenSet() const { return m_overwriteModeHasBeenSet; }
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline void SetOverwriteMode(const OverwriteMode& value) { m_overwriteModeHasBeenSet = true; m_overwriteMode = value; }
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline void SetOverwriteMode(OverwriteMode&& value) { m_overwriteModeHasBeenSet = true; m_overwriteMode = std::move(value); }
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline Options& WithOverwriteMode(const OverwriteMode& value) { SetOverwriteMode(value); return *this;}
/**
* <p>A value that determines whether files at the destination should be
* overwritten or preserved when copying files. If set to <code>NEVER</code> a
* destination file will not be replaced by a source file, even if the destination
* file differs from the source file. If you modify files in the destination and
* you sync the files, you can use this value to protect against overwriting those
* changes. </p> <p>Some storage classes have specific behaviors that can affect
* your S3 storage cost. For detailed information, see <a>using-storage-classes</a>
* in the <i>AWS DataSync User Guide</i>.</p>
*/
inline Options& WithOverwriteMode(OverwriteMode&& value) { SetOverwriteMode(std::move(value)); return *this;}
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline const Atime& GetAtime() const{ return m_atime; }
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline bool AtimeHasBeenSet() const { return m_atimeHasBeenSet; }
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline void SetAtime(const Atime& value) { m_atimeHasBeenSet = true; m_atime = value; }
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline void SetAtime(Atime&& value) { m_atimeHasBeenSet = true; m_atime = std::move(value); }
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline Options& WithAtime(const Atime& value) { SetAtime(value); return *this;}
/**
* <p>A file metadata value that shows the last time a file was accessed (that is,
* when the file was read or written to). If you set <code>Atime</code> to
* BEST_EFFORT, DataSync attempts to preserve the original <code>Atime</code>
* attribute on all source files (that is, the version before the PREPARING phase).
* However, <code>Atime</code>'s behavior is not fully standard across platforms,
* so AWS DataSync can only do this on a best-effort basis. </p> <p>Default value:
* BEST_EFFORT.</p> <p>BEST_EFFORT: Attempt to preserve the per-file
* <code>Atime</code> value (recommended).</p> <p>NONE: Ignore
* <code>Atime</code>.</p> <p>If <code>Atime</code> is set to BEST_EFFORT,
* <code>Mtime</code> must be set to PRESERVE. </p> <p>If <code>Atime</code> is set
* to NONE, <code>Mtime</code> must also be NONE. </p>
*/
inline Options& WithAtime(Atime&& value) { SetAtime(std::move(value)); return *this;}
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline const Mtime& GetMtime() const{ return m_mtime; }
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline bool MtimeHasBeenSet() const { return m_mtimeHasBeenSet; }
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline void SetMtime(const Mtime& value) { m_mtimeHasBeenSet = true; m_mtime = value; }
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline void SetMtime(Mtime&& value) { m_mtimeHasBeenSet = true; m_mtime = std::move(value); }
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline Options& WithMtime(const Mtime& value) { SetMtime(value); return *this;}
/**
* <p>A value that indicates the last time that a file was modified (that is, a
* file was written to) before the PREPARING phase. </p> <p>Default value:
* PRESERVE. </p> <p>PRESERVE: Preserve original <code>Mtime</code>
* (recommended)</p> <p> NONE: Ignore <code>Mtime</code>. </p> <p>If
* <code>Mtime</code> is set to PRESERVE, <code>Atime</code> must be set to
* BEST_EFFORT.</p> <p>If <code>Mtime</code> is set to NONE, <code>Atime</code>
* must also be set to NONE. </p>
*/
inline Options& WithMtime(Mtime&& value) { SetMtime(std::move(value)); return *this;}
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline const Uid& GetUid() const{ return m_uid; }
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline void SetUid(const Uid& value) { m_uidHasBeenSet = true; m_uid = value; }
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline void SetUid(Uid&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline Options& WithUid(const Uid& value) { SetUid(value); return *this;}
/**
* <p>The user ID (UID) of the file's owner. </p> <p>Default value: INT_VALUE. This
* preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the integer
* value of UID and group ID (GID) (recommended).</p> <p>NONE: Ignore UID and GID.
* </p>
*/
inline Options& WithUid(Uid&& value) { SetUid(std::move(value)); return *this;}
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline const Gid& GetGid() const{ return m_gid; }
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline bool GidHasBeenSet() const { return m_gidHasBeenSet; }
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline void SetGid(const Gid& value) { m_gidHasBeenSet = true; m_gid = value; }
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline void SetGid(Gid&& value) { m_gidHasBeenSet = true; m_gid = std::move(value); }
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline Options& WithGid(const Gid& value) { SetGid(value); return *this;}
/**
* <p>The group ID (GID) of the file's owners. </p> <p>Default value: INT_VALUE.
* This preserves the integer value of the ID.</p> <p>INT_VALUE: Preserve the
* integer value of user ID (UID) and GID (recommended).</p> <p>NONE: Ignore UID
* and GID. </p>
*/
inline Options& WithGid(Gid&& value) { SetGid(std::move(value)); return *this;}
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline const PreserveDeletedFiles& GetPreserveDeletedFiles() const{ return m_preserveDeletedFiles; }
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline bool PreserveDeletedFilesHasBeenSet() const { return m_preserveDeletedFilesHasBeenSet; }
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline void SetPreserveDeletedFiles(const PreserveDeletedFiles& value) { m_preserveDeletedFilesHasBeenSet = true; m_preserveDeletedFiles = value; }
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline void SetPreserveDeletedFiles(PreserveDeletedFiles&& value) { m_preserveDeletedFilesHasBeenSet = true; m_preserveDeletedFiles = std::move(value); }
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline Options& WithPreserveDeletedFiles(const PreserveDeletedFiles& value) { SetPreserveDeletedFiles(value); return *this;}
/**
* <p>A value that specifies whether files in the destination that don't exist in
* the source file system should be preserved. This option can affect your storage
* cost. If your task deletes objects, you might incur minimum storage duration
* charges for certain storage classes. For detailed information, see
* <a>using-storage-classes</a> in the <i>AWS DataSync User Guide</i>.</p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Ignore such destination files
* (recommended). </p> <p>REMOVE: Delete destination files that arent present in
* the source.</p>
*/
inline Options& WithPreserveDeletedFiles(PreserveDeletedFiles&& value) { SetPreserveDeletedFiles(std::move(value)); return *this;}
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline const PreserveDevices& GetPreserveDevices() const{ return m_preserveDevices; }
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline bool PreserveDevicesHasBeenSet() const { return m_preserveDevicesHasBeenSet; }
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline void SetPreserveDevices(const PreserveDevices& value) { m_preserveDevicesHasBeenSet = true; m_preserveDevices = value; }
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline void SetPreserveDevices(PreserveDevices&& value) { m_preserveDevicesHasBeenSet = true; m_preserveDevices = std::move(value); }
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline Options& WithPreserveDevices(const PreserveDevices& value) { SetPreserveDevices(value); return *this;}
/**
* <p>A value that determines whether AWS DataSync should preserve the metadata of
* block and character devices in the source file system, and recreate the files
* with that device name and metadata on the destination.</p> <p>AWS
* DataSync can't sync the actual contents of such devices, because they are
* nonterminal and don't return an end-of-file (EOF) marker.</p> <p>Default
* value: NONE.</p> <p>NONE: Ignore special devices (recommended). </p>
* <p>PRESERVE: Preserve character and block device metadata. This option isn't
* currently supported for Amazon EFS. </p>
*/
inline Options& WithPreserveDevices(PreserveDevices&& value) { SetPreserveDevices(std::move(value)); return *this;}
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline const PosixPermissions& GetPosixPermissions() const{ return m_posixPermissions; }
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline bool PosixPermissionsHasBeenSet() const { return m_posixPermissionsHasBeenSet; }
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline void SetPosixPermissions(const PosixPermissions& value) { m_posixPermissionsHasBeenSet = true; m_posixPermissions = value; }
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline void SetPosixPermissions(PosixPermissions&& value) { m_posixPermissionsHasBeenSet = true; m_posixPermissions = std::move(value); }
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline Options& WithPosixPermissions(const PosixPermissions& value) { SetPosixPermissions(value); return *this;}
/**
* <p>A value that determines which users or groups can access a file for a
* specific purpose such as reading, writing, or execution of the file. </p>
* <p>Default value: PRESERVE.</p> <p>PRESERVE: Preserve POSIX-style permissions
* (recommended).</p> <p>NONE: Ignore permissions. </p> <p>AWS DataSync can
* preserve extant permissions of a source location.</p>
*/
inline Options& WithPosixPermissions(PosixPermissions&& value) { SetPosixPermissions(std::move(value)); return *this;}
/**
* <p>A value that limits the bandwidth used by AWS DataSync. For example, if you
* want AWS DataSync to use a maximum of 1 MB, set this value to
* <code>1048576</code> (<code>=1024*1024</code>).</p>
*/
inline long long GetBytesPerSecond() const{ return m_bytesPerSecond; }
/**
* <p>A value that limits the bandwidth used by AWS DataSync. For example, if you
* want AWS DataSync to use a maximum of 1 MB, set this value to
* <code>1048576</code> (<code>=1024*1024</code>).</p>
*/
inline bool BytesPerSecondHasBeenSet() const { return m_bytesPerSecondHasBeenSet; }
/**
* <p>A value that limits the bandwidth used by AWS DataSync. For example, if you
* want AWS DataSync to use a maximum of 1 MB, set this value to
* <code>1048576</code> (<code>=1024*1024</code>).</p>
*/
inline void SetBytesPerSecond(long long value) { m_bytesPerSecondHasBeenSet = true; m_bytesPerSecond = value; }
/**
* <p>A value that limits the bandwidth used by AWS DataSync. For example, if you
* want AWS DataSync to use a maximum of 1 MB, set this value to
* <code>1048576</code> (<code>=1024*1024</code>).</p>
*/
inline Options& WithBytesPerSecond(long long value) { SetBytesPerSecond(value); return *this;}
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline const TaskQueueing& GetTaskQueueing() const{ return m_taskQueueing; }
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline bool TaskQueueingHasBeenSet() const { return m_taskQueueingHasBeenSet; }
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline void SetTaskQueueing(const TaskQueueing& value) { m_taskQueueingHasBeenSet = true; m_taskQueueing = value; }
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline void SetTaskQueueing(TaskQueueing&& value) { m_taskQueueingHasBeenSet = true; m_taskQueueing = std::move(value); }
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline Options& WithTaskQueueing(const TaskQueueing& value) { SetTaskQueueing(value); return *this;}
/**
* <p>A value that determines whether tasks should be queued before executing the
* tasks. If set to <code>ENABLED</code>, the tasks will be queued. The default is
* <code>ENABLED</code>.</p> <p>If you use the same agent to run multiple tasks,
* you can enable the tasks to run in series. For more information, see
* <a>queue-task-execution</a>.</p>
*/
inline Options& WithTaskQueueing(TaskQueueing&& value) { SetTaskQueueing(std::move(value)); return *this;}
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline const LogLevel& GetLogLevel() const{ return m_logLevel; }
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; }
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); }
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline Options& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
/**
* <p>A value that determines the type of logs that DataSync publishes to a log
* stream in the Amazon CloudWatch log group that you provide. For more information
* about providing a log group for DataSync, see <a
* href="https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateTask.html#DataSync-CreateTask-request-CloudWatchLogGroupArn">CloudWatchLogGroupArn</a>.
* If set to <code>OFF</code>, no logs are published. <code>BASIC</code> publishes
* logs on errors for individual files transferred, and <code>TRANSFER</code>
* publishes logs for every file or object that is transferred and integrity
* checked.</p>
*/
inline Options& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;}
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline const TransferMode& GetTransferMode() const{ return m_transferMode; }
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline bool TransferModeHasBeenSet() const { return m_transferModeHasBeenSet; }
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline void SetTransferMode(const TransferMode& value) { m_transferModeHasBeenSet = true; m_transferMode = value; }
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline void SetTransferMode(TransferMode&& value) { m_transferModeHasBeenSet = true; m_transferMode = std::move(value); }
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline Options& WithTransferMode(const TransferMode& value) { SetTransferMode(value); return *this;}
/**
* <p>TransferMode has two values: CHANGED and ALL. CHANGED performs an
* "incremental" or "delta sync", it compares file modification time between source
* and destination to determine which files need to be transferred. ALL skips
* destination inventory and transfers all files discovered on the source.</p>
*/
inline Options& WithTransferMode(TransferMode&& value) { SetTransferMode(std::move(value)); return *this;}
private:
VerifyMode m_verifyMode;
bool m_verifyModeHasBeenSet;
OverwriteMode m_overwriteMode;
bool m_overwriteModeHasBeenSet;
Atime m_atime;
bool m_atimeHasBeenSet;
Mtime m_mtime;
bool m_mtimeHasBeenSet;
Uid m_uid;
bool m_uidHasBeenSet;
Gid m_gid;
bool m_gidHasBeenSet;
PreserveDeletedFiles m_preserveDeletedFiles;
bool m_preserveDeletedFilesHasBeenSet;
PreserveDevices m_preserveDevices;
bool m_preserveDevicesHasBeenSet;
PosixPermissions m_posixPermissions;
bool m_posixPermissionsHasBeenSet;
long long m_bytesPerSecond;
bool m_bytesPerSecondHasBeenSet;
TaskQueueing m_taskQueueing;
bool m_taskQueueingHasBeenSet;
LogLevel m_logLevel;
bool m_logLevelHasBeenSet;
TransferMode m_transferMode;
bool m_transferModeHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class OverwriteMode
{
NOT_SET,
ALWAYS,
NEVER
};
namespace OverwriteModeMapper
{
AWS_DATASYNC_API OverwriteMode GetOverwriteModeForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForOverwriteMode(OverwriteMode value);
} // namespace OverwriteModeMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class PhaseStatus
{
NOT_SET,
PENDING,
SUCCESS,
ERROR_
};
namespace PhaseStatusMapper
{
AWS_DATASYNC_API PhaseStatus GetPhaseStatusForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForPhaseStatus(PhaseStatus value);
} // namespace PhaseStatusMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class PosixPermissions
{
NOT_SET,
NONE,
PRESERVE
};
namespace PosixPermissionsMapper
{
AWS_DATASYNC_API PosixPermissions GetPosixPermissionsForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForPosixPermissions(PosixPermissions value);
} // namespace PosixPermissionsMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class PreserveDeletedFiles
{
NOT_SET,
PRESERVE,
REMOVE
};
namespace PreserveDeletedFilesMapper
{
AWS_DATASYNC_API PreserveDeletedFiles GetPreserveDeletedFilesForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForPreserveDeletedFiles(PreserveDeletedFiles value);
} // namespace PreserveDeletedFilesMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class PreserveDevices
{
NOT_SET,
NONE,
PRESERVE
};
namespace PreserveDevicesMapper
{
AWS_DATASYNC_API PreserveDevices GetPreserveDevicesForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForPreserveDevices(PreserveDevices value);
} // namespace PreserveDevicesMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,307 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>The VPC endpoint, subnet, and security group that an agent uses to access IP
* addresses in a VPC (Virtual Private Cloud).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/PrivateLinkConfig">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API PrivateLinkConfig
{
public:
PrivateLinkConfig();
PrivateLinkConfig(Aws::Utils::Json::JsonView jsonValue);
PrivateLinkConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; }
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; }
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; }
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); }
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); }
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline PrivateLinkConfig& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;}
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline PrivateLinkConfig& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;}
/**
* <p>The ID of the VPC endpoint that is configured for an agent. An agent that is
* configured with a VPC endpoint will not be accessible over the public
* internet.</p>
*/
inline PrivateLinkConfig& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;}
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline const Aws::String& GetPrivateLinkEndpoint() const{ return m_privateLinkEndpoint; }
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline bool PrivateLinkEndpointHasBeenSet() const { return m_privateLinkEndpointHasBeenSet; }
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline void SetPrivateLinkEndpoint(const Aws::String& value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint = value; }
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline void SetPrivateLinkEndpoint(Aws::String&& value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint = std::move(value); }
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline void SetPrivateLinkEndpoint(const char* value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint.assign(value); }
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline PrivateLinkConfig& WithPrivateLinkEndpoint(const Aws::String& value) { SetPrivateLinkEndpoint(value); return *this;}
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline PrivateLinkConfig& WithPrivateLinkEndpoint(Aws::String&& value) { SetPrivateLinkEndpoint(std::move(value)); return *this;}
/**
* <p>The private endpoint that is configured for an agent that has access to IP
* addresses in a <a
* href="https://docs.aws.amazon.com/vpc/latest/userguide/endpoint-service.html">PrivateLink</a>.
* An agent that is configured with this endpoint will not be accessible over the
* public internet.</p>
*/
inline PrivateLinkConfig& WithPrivateLinkEndpoint(const char* value) { SetPrivateLinkEndpoint(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline const Aws::Vector<Aws::String>& GetSubnetArns() const{ return m_subnetArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline void SetSubnetArns(const Aws::Vector<Aws::String>& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline void SetSubnetArns(Aws::Vector<Aws::String>&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& WithSubnetArns(const Aws::Vector<Aws::String>& value) { SetSubnetArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& WithSubnetArns(Aws::Vector<Aws::String>&& value) { SetSubnetArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the subnets that are configured for an
* agent activated in a VPC or an agent that has access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupArns() const{ return m_securityGroupArns; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline void SetSecurityGroupArns(const Aws::Vector<Aws::String>& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline void SetSecurityGroupArns(Aws::Vector<Aws::String>&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& WithSecurityGroupArns(const Aws::Vector<Aws::String>& value) { SetSecurityGroupArns(value); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& WithSecurityGroupArns(Aws::Vector<Aws::String>&& value) { SetSecurityGroupArns(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Names (ARNs) of the security groups that are configured
* for the EC2 resource that hosts an agent activated in a VPC or an agent that has
* access to a VPC endpoint.</p>
*/
inline PrivateLinkConfig& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; }
private:
Aws::String m_vpcEndpointId;
bool m_vpcEndpointIdHasBeenSet;
Aws::String m_privateLinkEndpoint;
bool m_privateLinkEndpointHasBeenSet;
Aws::Vector<Aws::String> m_subnetArns;
bool m_subnetArnsHasBeenSet;
Aws::Vector<Aws::String> m_securityGroupArns;
bool m_securityGroupArnsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,99 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>The Amazon Resource Name (ARN) of the AWS Identity and Access Management
* (IAM) role that is used to access an Amazon S3 bucket.</p> <p>For detailed
* information about using such a role, see Creating a Location for Amazon S3 in
* the <i>AWS DataSync User Guide</i>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/S3Config">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API S3Config
{
public:
S3Config();
S3Config(Aws::Utils::Json::JsonView jsonValue);
S3Config& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline const Aws::String& GetBucketAccessRoleArn() const{ return m_bucketAccessRoleArn; }
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline bool BucketAccessRoleArnHasBeenSet() const { return m_bucketAccessRoleArnHasBeenSet; }
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline void SetBucketAccessRoleArn(const Aws::String& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = value; }
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline void SetBucketAccessRoleArn(Aws::String&& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = std::move(value); }
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline void SetBucketAccessRoleArn(const char* value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn.assign(value); }
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline S3Config& WithBucketAccessRoleArn(const Aws::String& value) { SetBucketAccessRoleArn(value); return *this;}
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline S3Config& WithBucketAccessRoleArn(Aws::String&& value) { SetBucketAccessRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon S3 bucket to access. This bucket is used as a parameter in the
* <a>CreateLocationS3</a> operation. </p>
*/
inline S3Config& WithBucketAccessRoleArn(const char* value) { SetBucketAccessRoleArn(value); return *this;}
private:
Aws::String m_bucketAccessRoleArn;
bool m_bucketAccessRoleArnHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class S3StorageClass
{
NOT_SET,
STANDARD,
STANDARD_IA,
ONEZONE_IA,
INTELLIGENT_TIERING,
GLACIER,
DEEP_ARCHIVE
};
namespace S3StorageClassMapper
{
AWS_DATASYNC_API S3StorageClass GetS3StorageClassForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForS3StorageClass(S3StorageClass value);
} // namespace S3StorageClassMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/SmbVersion.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents the mount options that are available for DataSync to access an SMB
* location.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/SmbMountOptions">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API SmbMountOptions
{
public:
SmbMountOptions();
SmbMountOptions(Aws::Utils::Json::JsonView jsonValue);
SmbMountOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline const SmbVersion& GetVersion() const{ return m_version; }
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline void SetVersion(const SmbVersion& value) { m_versionHasBeenSet = true; m_version = value; }
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline void SetVersion(SmbVersion&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline SmbMountOptions& WithVersion(const SmbVersion& value) { SetVersion(value); return *this;}
/**
* <p>The specific SMB version that you want DataSync to use to mount your SMB
* share. If you don't specify a version, DataSync defaults to
* <code>AUTOMATIC</code>. That is, DataSync automatically selects a version based
* on negotiation with the SMB server.</p>
*/
inline SmbMountOptions& WithVersion(SmbVersion&& value) { SetVersion(std::move(value)); return *this;}
private:
SmbVersion m_version;
bool m_versionHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class SmbVersion
{
NOT_SET,
AUTOMATIC,
SMB2,
SMB3
};
namespace SmbVersionMapper
{
AWS_DATASYNC_API SmbVersion GetSmbVersionForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForSmbVersion(SmbVersion value);
} // namespace SmbVersionMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/Options.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/FilterRule.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>StartTaskExecutionRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/StartTaskExecutionRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API StartTaskExecutionRequest : public DataSyncRequest
{
public:
StartTaskExecutionRequest();
// 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 "StartTaskExecution"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline StartTaskExecutionRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline StartTaskExecutionRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task to start.</p>
*/
inline StartTaskExecutionRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
inline const Options& GetOverrideOptions() const{ return m_overrideOptions; }
inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; }
inline void SetOverrideOptions(const Options& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = value; }
inline void SetOverrideOptions(Options&& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = std::move(value); }
inline StartTaskExecutionRequest& WithOverrideOptions(const Options& value) { SetOverrideOptions(value); return *this;}
inline StartTaskExecutionRequest& WithOverrideOptions(Options&& value) { SetOverrideOptions(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline StartTaskExecutionRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline StartTaskExecutionRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline StartTaskExecutionRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
/**
* <p>A list of filter rules that determines which files to include when running a
* task. The pattern should contain a single filter string that consists of the
* patterns to include. The patterns are delimited by "|" (that is, a pipe). For
* example: <code>"/folder1|/folder2"</code> </p> <p> </p>
*/
inline StartTaskExecutionRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
private:
Aws::String m_taskArn;
bool m_taskArnHasBeenSet;
Options m_overrideOptions;
bool m_overrideOptionsHasBeenSet;
Aws::Vector<FilterRule> m_includes;
bool m_includesHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>StartTaskExecutionResponse</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/StartTaskExecutionResponse">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API StartTaskExecutionResult
{
public:
StartTaskExecutionResult();
StartTaskExecutionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartTaskExecutionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline StartTaskExecutionResult& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline StartTaskExecutionResult& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the specific task execution that was
* started.</p>
*/
inline StartTaskExecutionResult& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
private:
Aws::String m_taskExecutionArn;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_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 DataSync
{
namespace Model
{
/**
* <p>Represents a single entry in a list of AWS resource tags.
* <code>TagListEntry</code> returns an array that contains a list of tasks when
* the <a>ListTagsForResource</a> operation is called.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TagListEntry">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API TagListEntry
{
public:
TagListEntry();
TagListEntry(Aws::Utils::Json::JsonView jsonValue);
TagListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The key for an AWS resource tag.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The key for an AWS resource tag.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The key for an AWS resource tag.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The key for an AWS resource tag.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The key for an AWS resource tag.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The key for an AWS resource tag.</p>
*/
inline TagListEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The key for an AWS resource tag.</p>
*/
inline TagListEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The key for an AWS resource tag.</p>
*/
inline TagListEntry& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The value for an AWS resource tag.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The value for an AWS resource tag.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value for an AWS resource tag.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value for an AWS resource tag.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value for an AWS resource tag.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The value for an AWS resource tag.</p>
*/
inline TagListEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The value for an AWS resource tag.</p>
*/
inline TagListEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The value for an AWS resource tag.</p>
*/
inline TagListEntry& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/DataSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/TagListEntry.h>
#include <utility>
namespace Aws
{
namespace DataSync
{
namespace Model
{
/**
* <p>TagResourceRequest</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TagResourceRequest">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API TagResourceRequest : public DataSyncRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource to apply the tag to.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The tags to apply.</p>
*/
inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
/**
* <p>The tags to apply.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to apply.</p>
*/
inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to apply.</p>
*/
inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to apply.</p>
*/
inline TagResourceRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
/**
* <p>The tags to apply.</p>
*/
inline TagResourceRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to apply.</p>
*/
inline TagResourceRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags to apply.</p>
*/
inline TagResourceRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<TagListEntry> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
class AWS_DATASYNC_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,126 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskExecutionStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents a single entry in a list of task executions.
* <code>TaskExecutionListEntry</code> returns an array that contains a list of
* specific invocations of a task when <a>ListTaskExecutions</a> operation is
* called.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TaskExecutionListEntry">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API TaskExecutionListEntry
{
public:
TaskExecutionListEntry();
TaskExecutionListEntry(Aws::Utils::Json::JsonView jsonValue);
TaskExecutionListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline bool TaskExecutionArnHasBeenSet() const { return m_taskExecutionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline TaskExecutionListEntry& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline TaskExecutionListEntry& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task that was executed.</p>
*/
inline TaskExecutionListEntry& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
/**
* <p>The status of a task execution.</p>
*/
inline const TaskExecutionStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of a task execution.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of a task execution.</p>
*/
inline void SetStatus(const TaskExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of a task execution.</p>
*/
inline void SetStatus(TaskExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of a task execution.</p>
*/
inline TaskExecutionListEntry& WithStatus(const TaskExecutionStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of a task execution.</p>
*/
inline TaskExecutionListEntry& WithStatus(TaskExecutionStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_taskExecutionArn;
bool m_taskExecutionArnHasBeenSet;
TaskExecutionStatus m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/PhaseStatus.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 DataSync
{
namespace Model
{
/**
* <p>Describes the detailed result of a <code>TaskExecution</code> operation. This
* result includes the time in milliseconds spent in each phase, the status of the
* task execution, and the errors encountered.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TaskExecutionResultDetail">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API TaskExecutionResultDetail
{
public:
TaskExecutionResultDetail();
TaskExecutionResultDetail(Aws::Utils::Json::JsonView jsonValue);
TaskExecutionResultDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The total time in milliseconds that AWS DataSync spent in the PREPARING
* phase. </p>
*/
inline long long GetPrepareDuration() const{ return m_prepareDuration; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the PREPARING
* phase. </p>
*/
inline bool PrepareDurationHasBeenSet() const { return m_prepareDurationHasBeenSet; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the PREPARING
* phase. </p>
*/
inline void SetPrepareDuration(long long value) { m_prepareDurationHasBeenSet = true; m_prepareDuration = value; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the PREPARING
* phase. </p>
*/
inline TaskExecutionResultDetail& WithPrepareDuration(long long value) { SetPrepareDuration(value); return *this;}
/**
* <p>The status of the PREPARING phase.</p>
*/
inline const PhaseStatus& GetPrepareStatus() const{ return m_prepareStatus; }
/**
* <p>The status of the PREPARING phase.</p>
*/
inline bool PrepareStatusHasBeenSet() const { return m_prepareStatusHasBeenSet; }
/**
* <p>The status of the PREPARING phase.</p>
*/
inline void SetPrepareStatus(const PhaseStatus& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = value; }
/**
* <p>The status of the PREPARING phase.</p>
*/
inline void SetPrepareStatus(PhaseStatus&& value) { m_prepareStatusHasBeenSet = true; m_prepareStatus = std::move(value); }
/**
* <p>The status of the PREPARING phase.</p>
*/
inline TaskExecutionResultDetail& WithPrepareStatus(const PhaseStatus& value) { SetPrepareStatus(value); return *this;}
/**
* <p>The status of the PREPARING phase.</p>
*/
inline TaskExecutionResultDetail& WithPrepareStatus(PhaseStatus&& value) { SetPrepareStatus(std::move(value)); return *this;}
/**
* <p>The total time in milliseconds that AWS DataSync took to transfer the file
* from the source to the destination location.</p>
*/
inline long long GetTotalDuration() const{ return m_totalDuration; }
/**
* <p>The total time in milliseconds that AWS DataSync took to transfer the file
* from the source to the destination location.</p>
*/
inline bool TotalDurationHasBeenSet() const { return m_totalDurationHasBeenSet; }
/**
* <p>The total time in milliseconds that AWS DataSync took to transfer the file
* from the source to the destination location.</p>
*/
inline void SetTotalDuration(long long value) { m_totalDurationHasBeenSet = true; m_totalDuration = value; }
/**
* <p>The total time in milliseconds that AWS DataSync took to transfer the file
* from the source to the destination location.</p>
*/
inline TaskExecutionResultDetail& WithTotalDuration(long long value) { SetTotalDuration(value); return *this;}
/**
* <p>The total time in milliseconds that AWS DataSync spent in the TRANSFERRING
* phase.</p>
*/
inline long long GetTransferDuration() const{ return m_transferDuration; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the TRANSFERRING
* phase.</p>
*/
inline bool TransferDurationHasBeenSet() const { return m_transferDurationHasBeenSet; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the TRANSFERRING
* phase.</p>
*/
inline void SetTransferDuration(long long value) { m_transferDurationHasBeenSet = true; m_transferDuration = value; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the TRANSFERRING
* phase.</p>
*/
inline TaskExecutionResultDetail& WithTransferDuration(long long value) { SetTransferDuration(value); return *this;}
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline const PhaseStatus& GetTransferStatus() const{ return m_transferStatus; }
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline bool TransferStatusHasBeenSet() const { return m_transferStatusHasBeenSet; }
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline void SetTransferStatus(const PhaseStatus& value) { m_transferStatusHasBeenSet = true; m_transferStatus = value; }
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline void SetTransferStatus(PhaseStatus&& value) { m_transferStatusHasBeenSet = true; m_transferStatus = std::move(value); }
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline TaskExecutionResultDetail& WithTransferStatus(const PhaseStatus& value) { SetTransferStatus(value); return *this;}
/**
* <p>The status of the TRANSFERRING Phase.</p>
*/
inline TaskExecutionResultDetail& WithTransferStatus(PhaseStatus&& value) { SetTransferStatus(std::move(value)); return *this;}
/**
* <p>The total time in milliseconds that AWS DataSync spent in the VERIFYING
* phase.</p>
*/
inline long long GetVerifyDuration() const{ return m_verifyDuration; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the VERIFYING
* phase.</p>
*/
inline bool VerifyDurationHasBeenSet() const { return m_verifyDurationHasBeenSet; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the VERIFYING
* phase.</p>
*/
inline void SetVerifyDuration(long long value) { m_verifyDurationHasBeenSet = true; m_verifyDuration = value; }
/**
* <p>The total time in milliseconds that AWS DataSync spent in the VERIFYING
* phase.</p>
*/
inline TaskExecutionResultDetail& WithVerifyDuration(long long value) { SetVerifyDuration(value); return *this;}
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline const PhaseStatus& GetVerifyStatus() const{ return m_verifyStatus; }
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline bool VerifyStatusHasBeenSet() const { return m_verifyStatusHasBeenSet; }
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline void SetVerifyStatus(const PhaseStatus& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = value; }
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline void SetVerifyStatus(PhaseStatus&& value) { m_verifyStatusHasBeenSet = true; m_verifyStatus = std::move(value); }
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline TaskExecutionResultDetail& WithVerifyStatus(const PhaseStatus& value) { SetVerifyStatus(value); return *this;}
/**
* <p>The status of the VERIFYING Phase.</p>
*/
inline TaskExecutionResultDetail& WithVerifyStatus(PhaseStatus&& value) { SetVerifyStatus(std::move(value)); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline TaskExecutionResultDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline TaskExecutionResultDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>Errors that AWS DataSync encountered during execution of the task. You can
* use this error code to help troubleshoot issues.</p>
*/
inline TaskExecutionResultDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline const Aws::String& GetErrorDetail() const{ return m_errorDetail; }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(const Aws::String& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(Aws::String&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline void SetErrorDetail(const char* value) { m_errorDetailHasBeenSet = true; m_errorDetail.assign(value); }
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline TaskExecutionResultDetail& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline TaskExecutionResultDetail& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
/**
* <p>Detailed description of an error that was encountered during the task
* execution. You can use this information to help troubleshoot issues. </p>
*/
inline TaskExecutionResultDetail& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
private:
long long m_prepareDuration;
bool m_prepareDurationHasBeenSet;
PhaseStatus m_prepareStatus;
bool m_prepareStatusHasBeenSet;
long long m_totalDuration;
bool m_totalDurationHasBeenSet;
long long m_transferDuration;
bool m_transferDurationHasBeenSet;
PhaseStatus m_transferStatus;
bool m_transferStatusHasBeenSet;
long long m_verifyDuration;
bool m_verifyDurationHasBeenSet;
PhaseStatus m_verifyStatus;
bool m_verifyStatusHasBeenSet;
Aws::String m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorDetail;
bool m_errorDetailHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class TaskExecutionStatus
{
NOT_SET,
QUEUED,
LAUNCHING,
PREPARING,
TRANSFERRING,
VERIFYING,
SUCCESS,
ERROR_
};
namespace TaskExecutionStatusMapper
{
AWS_DATASYNC_API TaskExecutionStatus GetTaskExecutionStatusForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForTaskExecutionStatus(TaskExecutionStatus value);
} // namespace TaskExecutionStatusMapper
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/datasync/model/TaskFilterName.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datasync/model/Operator.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 DataSync
{
namespace Model
{
class AWS_DATASYNC_API TaskFilter
{
public:
TaskFilter();
TaskFilter(Aws::Utils::Json::JsonView jsonValue);
TaskFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const TaskFilterName& GetName() const{ return m_name; }
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
inline void SetName(const TaskFilterName& value) { m_nameHasBeenSet = true; m_name = value; }
inline void SetName(TaskFilterName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
inline TaskFilter& WithName(const TaskFilterName& value) { SetName(value); return *this;}
inline TaskFilter& WithName(TaskFilterName&& value) { SetName(std::move(value)); return *this;}
inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
inline TaskFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
inline TaskFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
inline TaskFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
inline TaskFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
inline TaskFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
inline const Operator& GetOperator() const{ return m_operator; }
inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
inline void SetOperator(const Operator& value) { m_operatorHasBeenSet = true; m_operator = value; }
inline void SetOperator(Operator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
inline TaskFilter& WithOperator(const Operator& value) { SetOperator(value); return *this;}
inline TaskFilter& WithOperator(Operator&& value) { SetOperator(std::move(value)); return *this;}
private:
TaskFilterName m_name;
bool m_nameHasBeenSet;
Aws::Vector<Aws::String> m_values;
bool m_valuesHasBeenSet;
Operator m_operator;
bool m_operatorHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // 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/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class TaskFilterName
{
NOT_SET,
LocationId,
CreationTime
};
namespace TaskFilterNameMapper
{
AWS_DATASYNC_API TaskFilterName GetTaskFilterNameForName(const Aws::String& name);
AWS_DATASYNC_API Aws::String GetNameForTaskFilterName(TaskFilterName value);
} // namespace TaskFilterNameMapper
} // namespace Model
} // namespace DataSync
} // namespace Aws

View File

@@ -0,0 +1,170 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/datasync/model/TaskStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataSync
{
namespace Model
{
/**
* <p>Represents a single entry in a list of tasks. <code>TaskListEntry</code>
* returns an array that contains a list of tasks when the <a>ListTasks</a>
* operation is called. A task includes the source and destination file systems to
* sync and the options to use for the tasks.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TaskListEntry">AWS
* API Reference</a></p>
*/
class AWS_DATASYNC_API TaskListEntry
{
public:
TaskListEntry();
TaskListEntry(Aws::Utils::Json::JsonView jsonValue);
TaskListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline TaskListEntry& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline TaskListEntry& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the task.</p>
*/
inline TaskListEntry& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
/**
* <p>The status of the task.</p>
*/
inline const TaskStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the task.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the task.</p>
*/
inline void SetStatus(const TaskStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the task.</p>
*/
inline void SetStatus(TaskStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the task.</p>
*/
inline TaskListEntry& WithStatus(const TaskStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the task.</p>
*/
inline TaskListEntry& WithStatus(TaskStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The name of the task.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the task.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the task.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the task.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the task.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the task.</p>
*/
inline TaskListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the task.</p>
*/
inline TaskListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the task.</p>
*/
inline TaskListEntry& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_taskArn;
bool m_taskArnHasBeenSet;
TaskStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace DataSync
} // namespace Aws

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