This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-datasync/include/aws/datasync/model/CreateLocationS3Request.h

299 lines
12 KiB
C++

/**
* 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