@@ -44,53 +44,22 @@ internal static TransferUtilityUploadResponse MapPutObjectResponse(PutObjectResp
4444 var response = new TransferUtilityUploadResponse ( ) ;
4545
4646 // Map all fields as defined in mapping.json "Conversion" -> "PutObjectResponse" -> "UploadResponse"
47- if ( source . IsSetBucketKeyEnabled ( ) )
48- response . BucketKeyEnabled = source . BucketKeyEnabled . GetValueOrDefault ( ) ;
49-
50- if ( source . IsSetChecksumCRC32 ( ) )
51- response . ChecksumCRC32 = source . ChecksumCRC32 ;
52-
53- if ( source . IsSetChecksumCRC32C ( ) )
54- response . ChecksumCRC32C = source . ChecksumCRC32C ;
55-
56- if ( source . IsSetChecksumCRC64NVME ( ) )
57- response . ChecksumCRC64NVME = source . ChecksumCRC64NVME ;
58-
59- if ( source . IsSetChecksumSHA1 ( ) )
60- response . ChecksumSHA1 = source . ChecksumSHA1 ;
61-
62- if ( source . IsSetChecksumSHA256 ( ) )
63- response . ChecksumSHA256 = source . ChecksumSHA256 ;
64-
65- if ( source . IsSetChecksumType ( ) )
66- response . ChecksumType = source . ChecksumType ;
67-
68- if ( source . IsSetETag ( ) )
69- response . ETag = source . ETag ;
70-
71- if ( source . Expiration != null )
72- response . Expiration = source . Expiration ;
73-
74- if ( source . IsSetRequestCharged ( ) )
75- response . RequestCharged = source . RequestCharged ;
76-
77- if ( source . ServerSideEncryptionCustomerMethod != null )
78- response . ServerSideEncryptionCustomerMethod = source . ServerSideEncryptionCustomerMethod ;
79-
80- if ( source . ServerSideEncryptionCustomerProvidedKeyMD5 != null )
81- response . ServerSideEncryptionCustomerProvidedKeyMD5 = source . ServerSideEncryptionCustomerProvidedKeyMD5 ;
82-
83- if ( source . ServerSideEncryptionKeyManagementServiceEncryptionContext != null )
84- response . ServerSideEncryptionKeyManagementServiceEncryptionContext = source . ServerSideEncryptionKeyManagementServiceEncryptionContext ;
85-
86- if ( source . IsSetServerSideEncryptionKeyManagementServiceKeyId ( ) )
87- response . ServerSideEncryptionKeyManagementServiceKeyId = source . ServerSideEncryptionKeyManagementServiceKeyId ;
88-
89- if ( source . ServerSideEncryptionMethod != null )
90- response . ServerSideEncryptionMethod = source . ServerSideEncryptionMethod ;
91-
92- if ( source . IsSetVersionId ( ) )
93- response . VersionId = source . VersionId ;
47+ response . BucketKeyEnabled = source . BucketKeyEnabled . GetValueOrDefault ( ) ;
48+ response . ChecksumCRC32 = source . ChecksumCRC32 ;
49+ response . ChecksumCRC32C = source . ChecksumCRC32C ;
50+ response . ChecksumCRC64NVME = source . ChecksumCRC64NVME ;
51+ response . ChecksumSHA1 = source . ChecksumSHA1 ;
52+ response . ChecksumSHA256 = source . ChecksumSHA256 ;
53+ response . ChecksumType = source . ChecksumType ;
54+ response . ETag = source . ETag ;
55+ response . Expiration = source . Expiration ;
56+ response . RequestCharged = source . RequestCharged ;
57+ response . ServerSideEncryptionCustomerMethod = source . ServerSideEncryptionCustomerMethod ;
58+ response . ServerSideEncryptionCustomerProvidedKeyMD5 = source . ServerSideEncryptionCustomerProvidedKeyMD5 ;
59+ response . ServerSideEncryptionKeyManagementServiceEncryptionContext = source . ServerSideEncryptionKeyManagementServiceEncryptionContext ;
60+ response . ServerSideEncryptionKeyManagementServiceKeyId = source . ServerSideEncryptionKeyManagementServiceKeyId ;
61+ response . ServerSideEncryptionMethod = source . ServerSideEncryptionMethod ;
62+ response . VersionId = source . VersionId ;
9463
9564 // Copy response metadata
9665 response . ResponseMetadata = source . ResponseMetadata ;
@@ -114,44 +83,19 @@ internal static TransferUtilityUploadResponse MapCompleteMultipartUploadResponse
11483 var response = new TransferUtilityUploadResponse ( ) ;
11584
11685 // Map all fields as defined in mapping.json "Conversion" -> "CompleteMultipartResponse" -> "UploadResponse"
117- if ( source . IsSetBucketKeyEnabled ( ) )
118- response . BucketKeyEnabled = source . BucketKeyEnabled . GetValueOrDefault ( ) ;
119-
120- if ( source . IsSetChecksumCRC32 ( ) )
121- response . ChecksumCRC32 = source . ChecksumCRC32 ;
122-
123- if ( source . IsSetChecksumCRC32C ( ) )
124- response . ChecksumCRC32C = source . ChecksumCRC32C ;
125-
126- if ( source . IsSetChecksumCRC64NVME ( ) )
127- response . ChecksumCRC64NVME = source . ChecksumCRC64NVME ;
128-
129- if ( source . IsSetChecksumSHA1 ( ) )
130- response . ChecksumSHA1 = source . ChecksumSHA1 ;
131-
132- if ( source . IsSetChecksumSHA256 ( ) )
133- response . ChecksumSHA256 = source . ChecksumSHA256 ;
134-
135- if ( source . ChecksumType != null )
136- response . ChecksumType = source . ChecksumType ;
137-
138- if ( source . IsSetETag ( ) )
139- response . ETag = source . ETag ;
140-
141- if ( source . Expiration != null )
142- response . Expiration = source . Expiration ;
143-
144- if ( source . IsSetRequestCharged ( ) )
145- response . RequestCharged = source . RequestCharged ;
146-
147- if ( source . ServerSideEncryptionMethod != null )
148- response . ServerSideEncryptionMethod = source . ServerSideEncryptionMethod ;
149-
150- if ( source . IsSetServerSideEncryptionKeyManagementServiceKeyId ( ) )
151- response . ServerSideEncryptionKeyManagementServiceKeyId = source . ServerSideEncryptionKeyManagementServiceKeyId ;
152-
153- if ( source . IsSetVersionId ( ) )
154- response . VersionId = source . VersionId ;
86+ response . BucketKeyEnabled = source . BucketKeyEnabled . GetValueOrDefault ( ) ;
87+ response . ChecksumCRC32 = source . ChecksumCRC32 ;
88+ response . ChecksumCRC32C = source . ChecksumCRC32C ;
89+ response . ChecksumCRC64NVME = source . ChecksumCRC64NVME ;
90+ response . ChecksumSHA1 = source . ChecksumSHA1 ;
91+ response . ChecksumSHA256 = source . ChecksumSHA256 ;
92+ response . ChecksumType = source . ChecksumType ;
93+ response . ETag = source . ETag ;
94+ response . Expiration = source . Expiration ;
95+ response . RequestCharged = source . RequestCharged ;
96+ response . ServerSideEncryptionMethod = source . ServerSideEncryptionMethod ;
97+ response . ServerSideEncryptionKeyManagementServiceKeyId = source . ServerSideEncryptionKeyManagementServiceKeyId ;
98+ response . VersionId = source . VersionId ;
15599
156100 // Copy response metadata
157101 response . ResponseMetadata = source . ResponseMetadata ;
0 commit comments