1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/opensearch/OpenSearchService_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace OpenSearchService 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>The Amazon S3 location for importing the package specified as 28 * <code>S3BucketName</code> and <code>S3Key</code> </p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/opensearch-2021-01-01/PackageSource">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_OPENSEARCHSERVICE_API PackageSource 33 { 34 public: 35 PackageSource(); 36 PackageSource(Aws::Utils::Json::JsonView jsonValue); 37 PackageSource& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the Amazon S3 bucket containing the package.</p> 43 */ GetS3BucketName()44 inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } 45 46 /** 47 * <p>The name of the Amazon S3 bucket containing the package.</p> 48 */ S3BucketNameHasBeenSet()49 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } 50 51 /** 52 * <p>The name of the Amazon S3 bucket containing the package.</p> 53 */ SetS3BucketName(const Aws::String & value)54 inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } 55 56 /** 57 * <p>The name of the Amazon S3 bucket containing the package.</p> 58 */ SetS3BucketName(Aws::String && value)59 inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } 60 61 /** 62 * <p>The name of the Amazon S3 bucket containing the package.</p> 63 */ SetS3BucketName(const char * value)64 inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } 65 66 /** 67 * <p>The name of the Amazon S3 bucket containing the package.</p> 68 */ WithS3BucketName(const Aws::String & value)69 inline PackageSource& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} 70 71 /** 72 * <p>The name of the Amazon S3 bucket containing the package.</p> 73 */ WithS3BucketName(Aws::String && value)74 inline PackageSource& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the Amazon S3 bucket containing the package.</p> 78 */ WithS3BucketName(const char * value)79 inline PackageSource& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} 80 81 82 /** 83 * <p>Key (file name) of the package.</p> 84 */ GetS3Key()85 inline const Aws::String& GetS3Key() const{ return m_s3Key; } 86 87 /** 88 * <p>Key (file name) of the package.</p> 89 */ S3KeyHasBeenSet()90 inline bool S3KeyHasBeenSet() const { return m_s3KeyHasBeenSet; } 91 92 /** 93 * <p>Key (file name) of the package.</p> 94 */ SetS3Key(const Aws::String & value)95 inline void SetS3Key(const Aws::String& value) { m_s3KeyHasBeenSet = true; m_s3Key = value; } 96 97 /** 98 * <p>Key (file name) of the package.</p> 99 */ SetS3Key(Aws::String && value)100 inline void SetS3Key(Aws::String&& value) { m_s3KeyHasBeenSet = true; m_s3Key = std::move(value); } 101 102 /** 103 * <p>Key (file name) of the package.</p> 104 */ SetS3Key(const char * value)105 inline void SetS3Key(const char* value) { m_s3KeyHasBeenSet = true; m_s3Key.assign(value); } 106 107 /** 108 * <p>Key (file name) of the package.</p> 109 */ WithS3Key(const Aws::String & value)110 inline PackageSource& WithS3Key(const Aws::String& value) { SetS3Key(value); return *this;} 111 112 /** 113 * <p>Key (file name) of the package.</p> 114 */ WithS3Key(Aws::String && value)115 inline PackageSource& WithS3Key(Aws::String&& value) { SetS3Key(std::move(value)); return *this;} 116 117 /** 118 * <p>Key (file name) of the package.</p> 119 */ WithS3Key(const char * value)120 inline PackageSource& WithS3Key(const char* value) { SetS3Key(value); return *this;} 121 122 private: 123 124 Aws::String m_s3BucketName; 125 bool m_s3BucketNameHasBeenSet; 126 127 Aws::String m_s3Key; 128 bool m_s3KeyHasBeenSet; 129 }; 130 131 } // namespace Model 132 } // namespace OpenSearchService 133 } // namespace Aws 134