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/dataexchange/DataExchange_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/dataexchange/model/AssetSourceEntry.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Utils 16 { 17 namespace Json 18 { 19 class JsonValue; 20 class JsonView; 21 } // namespace Json 22 } // namespace Utils 23 namespace DataExchange 24 { 25 namespace Model 26 { 27 28 /** 29 * <p>Details from an import from Amazon S3 response.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetsFromS3ResponseDetails">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_DATAEXCHANGE_API ImportAssetsFromS3ResponseDetails 34 { 35 public: 36 ImportAssetsFromS3ResponseDetails(); 37 ImportAssetsFromS3ResponseDetails(Aws::Utils::Json::JsonView jsonValue); 38 ImportAssetsFromS3ResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 44 */ GetAssetSources()45 inline const Aws::Vector<AssetSourceEntry>& GetAssetSources() const{ return m_assetSources; } 46 47 /** 48 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 49 */ AssetSourcesHasBeenSet()50 inline bool AssetSourcesHasBeenSet() const { return m_assetSourcesHasBeenSet; } 51 52 /** 53 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 54 */ SetAssetSources(const Aws::Vector<AssetSourceEntry> & value)55 inline void SetAssetSources(const Aws::Vector<AssetSourceEntry>& value) { m_assetSourcesHasBeenSet = true; m_assetSources = value; } 56 57 /** 58 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 59 */ SetAssetSources(Aws::Vector<AssetSourceEntry> && value)60 inline void SetAssetSources(Aws::Vector<AssetSourceEntry>&& value) { m_assetSourcesHasBeenSet = true; m_assetSources = std::move(value); } 61 62 /** 63 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 64 */ WithAssetSources(const Aws::Vector<AssetSourceEntry> & value)65 inline ImportAssetsFromS3ResponseDetails& WithAssetSources(const Aws::Vector<AssetSourceEntry>& value) { SetAssetSources(value); return *this;} 66 67 /** 68 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 69 */ WithAssetSources(Aws::Vector<AssetSourceEntry> && value)70 inline ImportAssetsFromS3ResponseDetails& WithAssetSources(Aws::Vector<AssetSourceEntry>&& value) { SetAssetSources(std::move(value)); return *this;} 71 72 /** 73 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 74 */ AddAssetSources(const AssetSourceEntry & value)75 inline ImportAssetsFromS3ResponseDetails& AddAssetSources(const AssetSourceEntry& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(value); return *this; } 76 77 /** 78 * <p>Is a list of Amazon S3 bucket and object key pairs.</p> 79 */ AddAssetSources(AssetSourceEntry && value)80 inline ImportAssetsFromS3ResponseDetails& AddAssetSources(AssetSourceEntry&& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(std::move(value)); return *this; } 81 82 83 /** 84 * <p>The unique identifier for the data set associated with this import job.</p> 85 */ GetDataSetId()86 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } 87 88 /** 89 * <p>The unique identifier for the data set associated with this import job.</p> 90 */ DataSetIdHasBeenSet()91 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } 92 93 /** 94 * <p>The unique identifier for the data set associated with this import job.</p> 95 */ SetDataSetId(const Aws::String & value)96 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } 97 98 /** 99 * <p>The unique identifier for the data set associated with this import job.</p> 100 */ SetDataSetId(Aws::String && value)101 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } 102 103 /** 104 * <p>The unique identifier for the data set associated with this import job.</p> 105 */ SetDataSetId(const char * value)106 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } 107 108 /** 109 * <p>The unique identifier for the data set associated with this import job.</p> 110 */ WithDataSetId(const Aws::String & value)111 inline ImportAssetsFromS3ResponseDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} 112 113 /** 114 * <p>The unique identifier for the data set associated with this import job.</p> 115 */ WithDataSetId(Aws::String && value)116 inline ImportAssetsFromS3ResponseDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} 117 118 /** 119 * <p>The unique identifier for the data set associated with this import job.</p> 120 */ WithDataSetId(const char * value)121 inline ImportAssetsFromS3ResponseDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} 122 123 124 /** 125 * <p>The unique identifier for the revision associated with this import 126 * response.</p> 127 */ GetRevisionId()128 inline const Aws::String& GetRevisionId() const{ return m_revisionId; } 129 130 /** 131 * <p>The unique identifier for the revision associated with this import 132 * response.</p> 133 */ RevisionIdHasBeenSet()134 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } 135 136 /** 137 * <p>The unique identifier for the revision associated with this import 138 * response.</p> 139 */ SetRevisionId(const Aws::String & value)140 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } 141 142 /** 143 * <p>The unique identifier for the revision associated with this import 144 * response.</p> 145 */ SetRevisionId(Aws::String && value)146 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } 147 148 /** 149 * <p>The unique identifier for the revision associated with this import 150 * response.</p> 151 */ SetRevisionId(const char * value)152 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } 153 154 /** 155 * <p>The unique identifier for the revision associated with this import 156 * response.</p> 157 */ WithRevisionId(const Aws::String & value)158 inline ImportAssetsFromS3ResponseDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} 159 160 /** 161 * <p>The unique identifier for the revision associated with this import 162 * response.</p> 163 */ WithRevisionId(Aws::String && value)164 inline ImportAssetsFromS3ResponseDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} 165 166 /** 167 * <p>The unique identifier for the revision associated with this import 168 * response.</p> 169 */ WithRevisionId(const char * value)170 inline ImportAssetsFromS3ResponseDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} 171 172 private: 173 174 Aws::Vector<AssetSourceEntry> m_assetSources; 175 bool m_assetSourcesHasBeenSet; 176 177 Aws::String m_dataSetId; 178 bool m_dataSetIdHasBeenSet; 179 180 Aws::String m_revisionId; 181 bool m_revisionIdHasBeenSet; 182 }; 183 184 } // namespace Model 185 } // namespace DataExchange 186 } // namespace Aws 187