/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ElasticsearchService { namespace Model { /** *

The S3 location for importing the package specified as * S3BucketName and S3Key

See Also:

AWS * API Reference

*/ class PackageSource { public: AWS_ELASTICSEARCHSERVICE_API PackageSource(); AWS_ELASTICSEARCHSERVICE_API PackageSource(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICSEARCHSERVICE_API PackageSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Name of the bucket containing the package.

*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *

Name of the bucket containing the package.

*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *

Name of the bucket containing the package.

*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *

Name of the bucket containing the package.

*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *

Name of the bucket containing the package.

*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *

Name of the bucket containing the package.

*/ inline PackageSource& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *

Name of the bucket containing the package.

*/ inline PackageSource& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *

Name of the bucket containing the package.

*/ inline PackageSource& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *

Key (file name) of the package.

*/ inline const Aws::String& GetS3Key() const{ return m_s3Key; } /** *

Key (file name) of the package.

*/ inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; } /** *

Key (file name) of the package.

*/ inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; } /** *

Key (file name) of the package.

*/ inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); } /** *

Key (file name) of the package.

*/ inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); } /** *

Key (file name) of the package.

*/ inline PackageSource& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;} /** *

Key (file name) of the package.

*/ inline PackageSource& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;} /** *

Key (file name) of the package.

*/ inline PackageSource& WithS3Key(const char* value) { SetS3Key(value); return *this;} private: Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3Key; bool m_s3KeyHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws