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/dataexchange/model/ExportAssetToSignedUrlResponseDetails.h> 9 #include <aws/dataexchange/model/ExportAssetsToS3ResponseDetails.h> 10 #include <aws/dataexchange/model/ExportRevisionsToS3ResponseDetails.h> 11 #include <aws/dataexchange/model/ImportAssetFromSignedUrlResponseDetails.h> 12 #include <aws/dataexchange/model/ImportAssetsFromS3ResponseDetails.h> 13 #include <aws/dataexchange/model/ImportAssetsFromRedshiftDataSharesResponseDetails.h> 14 #include <utility> 15 16 namespace Aws 17 { 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 class JsonView; 24 } // namespace Json 25 } // namespace Utils 26 namespace DataExchange 27 { 28 namespace Model 29 { 30 31 /** 32 * <p>Details for the response.</p><p><h3>See Also:</h3> <a 33 * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ResponseDetails">AWS 34 * API Reference</a></p> 35 */ 36 class AWS_DATAEXCHANGE_API ResponseDetails 37 { 38 public: 39 ResponseDetails(); 40 ResponseDetails(Aws::Utils::Json::JsonView jsonValue); 41 ResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue); 42 Aws::Utils::Json::JsonValue Jsonize() const; 43 44 45 /** 46 * <p>Details for the export to signed URL response.</p> 47 */ GetExportAssetToSignedUrl()48 inline const ExportAssetToSignedUrlResponseDetails& GetExportAssetToSignedUrl() const{ return m_exportAssetToSignedUrl; } 49 50 /** 51 * <p>Details for the export to signed URL response.</p> 52 */ ExportAssetToSignedUrlHasBeenSet()53 inline bool ExportAssetToSignedUrlHasBeenSet() const { return m_exportAssetToSignedUrlHasBeenSet; } 54 55 /** 56 * <p>Details for the export to signed URL response.</p> 57 */ SetExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails & value)58 inline void SetExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = value; } 59 60 /** 61 * <p>Details for the export to signed URL response.</p> 62 */ SetExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails && value)63 inline void SetExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails&& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = std::move(value); } 64 65 /** 66 * <p>Details for the export to signed URL response.</p> 67 */ WithExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails & value)68 inline ResponseDetails& WithExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails& value) { SetExportAssetToSignedUrl(value); return *this;} 69 70 /** 71 * <p>Details for the export to signed URL response.</p> 72 */ WithExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails && value)73 inline ResponseDetails& WithExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails&& value) { SetExportAssetToSignedUrl(std::move(value)); return *this;} 74 75 76 /** 77 * <p>Details for the export to Amazon S3 response.</p> 78 */ GetExportAssetsToS3()79 inline const ExportAssetsToS3ResponseDetails& GetExportAssetsToS3() const{ return m_exportAssetsToS3; } 80 81 /** 82 * <p>Details for the export to Amazon S3 response.</p> 83 */ ExportAssetsToS3HasBeenSet()84 inline bool ExportAssetsToS3HasBeenSet() const { return m_exportAssetsToS3HasBeenSet; } 85 86 /** 87 * <p>Details for the export to Amazon S3 response.</p> 88 */ SetExportAssetsToS3(const ExportAssetsToS3ResponseDetails & value)89 inline void SetExportAssetsToS3(const ExportAssetsToS3ResponseDetails& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = value; } 90 91 /** 92 * <p>Details for the export to Amazon S3 response.</p> 93 */ SetExportAssetsToS3(ExportAssetsToS3ResponseDetails && value)94 inline void SetExportAssetsToS3(ExportAssetsToS3ResponseDetails&& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = std::move(value); } 95 96 /** 97 * <p>Details for the export to Amazon S3 response.</p> 98 */ WithExportAssetsToS3(const ExportAssetsToS3ResponseDetails & value)99 inline ResponseDetails& WithExportAssetsToS3(const ExportAssetsToS3ResponseDetails& value) { SetExportAssetsToS3(value); return *this;} 100 101 /** 102 * <p>Details for the export to Amazon S3 response.</p> 103 */ WithExportAssetsToS3(ExportAssetsToS3ResponseDetails && value)104 inline ResponseDetails& WithExportAssetsToS3(ExportAssetsToS3ResponseDetails&& value) { SetExportAssetsToS3(std::move(value)); return *this;} 105 106 107 /** 108 * <p>Details for the export revisions to Amazon S3 response.</p> 109 */ GetExportRevisionsToS3()110 inline const ExportRevisionsToS3ResponseDetails& GetExportRevisionsToS3() const{ return m_exportRevisionsToS3; } 111 112 /** 113 * <p>Details for the export revisions to Amazon S3 response.</p> 114 */ ExportRevisionsToS3HasBeenSet()115 inline bool ExportRevisionsToS3HasBeenSet() const { return m_exportRevisionsToS3HasBeenSet; } 116 117 /** 118 * <p>Details for the export revisions to Amazon S3 response.</p> 119 */ SetExportRevisionsToS3(const ExportRevisionsToS3ResponseDetails & value)120 inline void SetExportRevisionsToS3(const ExportRevisionsToS3ResponseDetails& value) { m_exportRevisionsToS3HasBeenSet = true; m_exportRevisionsToS3 = value; } 121 122 /** 123 * <p>Details for the export revisions to Amazon S3 response.</p> 124 */ SetExportRevisionsToS3(ExportRevisionsToS3ResponseDetails && value)125 inline void SetExportRevisionsToS3(ExportRevisionsToS3ResponseDetails&& value) { m_exportRevisionsToS3HasBeenSet = true; m_exportRevisionsToS3 = std::move(value); } 126 127 /** 128 * <p>Details for the export revisions to Amazon S3 response.</p> 129 */ WithExportRevisionsToS3(const ExportRevisionsToS3ResponseDetails & value)130 inline ResponseDetails& WithExportRevisionsToS3(const ExportRevisionsToS3ResponseDetails& value) { SetExportRevisionsToS3(value); return *this;} 131 132 /** 133 * <p>Details for the export revisions to Amazon S3 response.</p> 134 */ WithExportRevisionsToS3(ExportRevisionsToS3ResponseDetails && value)135 inline ResponseDetails& WithExportRevisionsToS3(ExportRevisionsToS3ResponseDetails&& value) { SetExportRevisionsToS3(std::move(value)); return *this;} 136 137 138 /** 139 * <p>Details for the import from signed URL response.</p> 140 */ GetImportAssetFromSignedUrl()141 inline const ImportAssetFromSignedUrlResponseDetails& GetImportAssetFromSignedUrl() const{ return m_importAssetFromSignedUrl; } 142 143 /** 144 * <p>Details for the import from signed URL response.</p> 145 */ ImportAssetFromSignedUrlHasBeenSet()146 inline bool ImportAssetFromSignedUrlHasBeenSet() const { return m_importAssetFromSignedUrlHasBeenSet; } 147 148 /** 149 * <p>Details for the import from signed URL response.</p> 150 */ SetImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails & value)151 inline void SetImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = value; } 152 153 /** 154 * <p>Details for the import from signed URL response.</p> 155 */ SetImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails && value)156 inline void SetImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails&& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = std::move(value); } 157 158 /** 159 * <p>Details for the import from signed URL response.</p> 160 */ WithImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails & value)161 inline ResponseDetails& WithImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails& value) { SetImportAssetFromSignedUrl(value); return *this;} 162 163 /** 164 * <p>Details for the import from signed URL response.</p> 165 */ WithImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails && value)166 inline ResponseDetails& WithImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails&& value) { SetImportAssetFromSignedUrl(std::move(value)); return *this;} 167 168 169 /** 170 * <p>Details for the import from Amazon S3 response.</p> 171 */ GetImportAssetsFromS3()172 inline const ImportAssetsFromS3ResponseDetails& GetImportAssetsFromS3() const{ return m_importAssetsFromS3; } 173 174 /** 175 * <p>Details for the import from Amazon S3 response.</p> 176 */ ImportAssetsFromS3HasBeenSet()177 inline bool ImportAssetsFromS3HasBeenSet() const { return m_importAssetsFromS3HasBeenSet; } 178 179 /** 180 * <p>Details for the import from Amazon S3 response.</p> 181 */ SetImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails & value)182 inline void SetImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = value; } 183 184 /** 185 * <p>Details for the import from Amazon S3 response.</p> 186 */ SetImportAssetsFromS3(ImportAssetsFromS3ResponseDetails && value)187 inline void SetImportAssetsFromS3(ImportAssetsFromS3ResponseDetails&& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = std::move(value); } 188 189 /** 190 * <p>Details for the import from Amazon S3 response.</p> 191 */ WithImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails & value)192 inline ResponseDetails& WithImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails& value) { SetImportAssetsFromS3(value); return *this;} 193 194 /** 195 * <p>Details for the import from Amazon S3 response.</p> 196 */ WithImportAssetsFromS3(ImportAssetsFromS3ResponseDetails && value)197 inline ResponseDetails& WithImportAssetsFromS3(ImportAssetsFromS3ResponseDetails&& value) { SetImportAssetsFromS3(std::move(value)); return *this;} 198 199 200 /** 201 * <p>Details from an import from Amazon Redshift datashare response.</p> 202 */ GetImportAssetsFromRedshiftDataShares()203 inline const ImportAssetsFromRedshiftDataSharesResponseDetails& GetImportAssetsFromRedshiftDataShares() const{ return m_importAssetsFromRedshiftDataShares; } 204 205 /** 206 * <p>Details from an import from Amazon Redshift datashare response.</p> 207 */ ImportAssetsFromRedshiftDataSharesHasBeenSet()208 inline bool ImportAssetsFromRedshiftDataSharesHasBeenSet() const { return m_importAssetsFromRedshiftDataSharesHasBeenSet; } 209 210 /** 211 * <p>Details from an import from Amazon Redshift datashare response.</p> 212 */ SetImportAssetsFromRedshiftDataShares(const ImportAssetsFromRedshiftDataSharesResponseDetails & value)213 inline void SetImportAssetsFromRedshiftDataShares(const ImportAssetsFromRedshiftDataSharesResponseDetails& value) { m_importAssetsFromRedshiftDataSharesHasBeenSet = true; m_importAssetsFromRedshiftDataShares = value; } 214 215 /** 216 * <p>Details from an import from Amazon Redshift datashare response.</p> 217 */ SetImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails && value)218 inline void SetImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails&& value) { m_importAssetsFromRedshiftDataSharesHasBeenSet = true; m_importAssetsFromRedshiftDataShares = std::move(value); } 219 220 /** 221 * <p>Details from an import from Amazon Redshift datashare response.</p> 222 */ WithImportAssetsFromRedshiftDataShares(const ImportAssetsFromRedshiftDataSharesResponseDetails & value)223 inline ResponseDetails& WithImportAssetsFromRedshiftDataShares(const ImportAssetsFromRedshiftDataSharesResponseDetails& value) { SetImportAssetsFromRedshiftDataShares(value); return *this;} 224 225 /** 226 * <p>Details from an import from Amazon Redshift datashare response.</p> 227 */ WithImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails && value)228 inline ResponseDetails& WithImportAssetsFromRedshiftDataShares(ImportAssetsFromRedshiftDataSharesResponseDetails&& value) { SetImportAssetsFromRedshiftDataShares(std::move(value)); return *this;} 229 230 private: 231 232 ExportAssetToSignedUrlResponseDetails m_exportAssetToSignedUrl; 233 bool m_exportAssetToSignedUrlHasBeenSet; 234 235 ExportAssetsToS3ResponseDetails m_exportAssetsToS3; 236 bool m_exportAssetsToS3HasBeenSet; 237 238 ExportRevisionsToS3ResponseDetails m_exportRevisionsToS3; 239 bool m_exportRevisionsToS3HasBeenSet; 240 241 ImportAssetFromSignedUrlResponseDetails m_importAssetFromSignedUrl; 242 bool m_importAssetFromSignedUrlHasBeenSet; 243 244 ImportAssetsFromS3ResponseDetails m_importAssetsFromS3; 245 bool m_importAssetsFromS3HasBeenSet; 246 247 ImportAssetsFromRedshiftDataSharesResponseDetails m_importAssetsFromRedshiftDataShares; 248 bool m_importAssetsFromRedshiftDataSharesHasBeenSet; 249 }; 250 251 } // namespace Model 252 } // namespace DataExchange 253 } // namespace Aws 254