1616
1717package com .google .cloud .storage .multipartupload .model ;
1818
19- import com .google .api .core .BetaApi ;
2019import com .google .common .base .MoreObjects ;
2120import java .util .Objects ;
2221
2322/**
2423 * Represents a request to complete a multipart upload.
2524 *
26- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
25+ * @since 2.60.0
2726 */
28- @ BetaApi
2927public final class CompleteMultipartUploadRequest {
3028
3129 private final String bucket ;
@@ -46,9 +44,8 @@ private CompleteMultipartUploadRequest(Builder builder) {
4644 * Returns the bucket name.
4745 *
4846 * @return The bucket name.
49- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
47+ * @since 2.60.0
5048 */
51- @ BetaApi
5249 public String bucket () {
5350 return bucket ;
5451 }
@@ -57,9 +54,8 @@ public String bucket() {
5754 * Returns the object name.
5855 *
5956 * @return The object name.
60- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
57+ * @since 2.60.0
6158 */
62- @ BetaApi
6359 public String key () {
6460 return key ;
6561 }
@@ -68,9 +64,8 @@ public String key() {
6864 * Returns the upload ID of the multipart upload.
6965 *
7066 * @return The upload ID.
71- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
67+ * @since 2.60.0
7268 */
73- @ BetaApi
7469 public String uploadId () {
7570 return uploadId ;
7671 }
@@ -79,9 +74,8 @@ public String uploadId() {
7974 * Returns the {@link CompletedMultipartUpload} payload for this request.
8075 *
8176 * @return The {@link CompletedMultipartUpload} payload.
82- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
77+ * @since 2.60.0
8378 */
84- @ BetaApi
8579 public CompletedMultipartUpload multipartUpload () {
8680 return multipartUpload ;
8781 }
@@ -92,9 +86,8 @@ public CompletedMultipartUpload multipartUpload() {
9286 * @return the user-project.
9387 * @see <a
9488 * href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
95- * @since 2.61 This new api is in preview and is subject to breaking changes.
89+ * @since 2.61.0
9690 */
97- @ BetaApi
9891 public String userProject () {
9992 return userProject ;
10093 }
@@ -135,19 +128,17 @@ public String toString() {
135128 * Creates a new builder for {@link CompleteMultipartUploadRequest}.
136129 *
137130 * @return A new builder.
138- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
131+ * @since 2.60.0
139132 */
140- @ BetaApi
141133 public static Builder builder () {
142134 return new Builder ();
143135 }
144136
145137 /**
146138 * Builder for {@link CompleteMultipartUploadRequest}.
147139 *
148- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
140+ * @since 2.60.0
149141 */
150- @ BetaApi
151142 public static class Builder {
152143 private String bucket ;
153144 private String key ;
@@ -162,9 +153,8 @@ private Builder() {}
162153 *
163154 * @param bucket The bucket name.
164155 * @return This builder.
165- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
156+ * @since 2.60.0
166157 */
167- @ BetaApi
168158 public Builder bucket (String bucket ) {
169159 this .bucket = bucket ;
170160 return this ;
@@ -175,9 +165,8 @@ public Builder bucket(String bucket) {
175165 *
176166 * @param key The object name.
177167 * @return This builder.
178- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
168+ * @since 2.60.0
179169 */
180- @ BetaApi
181170 public Builder key (String key ) {
182171 this .key = key ;
183172 return this ;
@@ -188,9 +177,8 @@ public Builder key(String key) {
188177 *
189178 * @param uploadId The upload ID.
190179 * @return This builder.
191- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
180+ * @since 2.60.0
192181 */
193- @ BetaApi
194182 public Builder uploadId (String uploadId ) {
195183 this .uploadId = uploadId ;
196184 return this ;
@@ -201,9 +189,8 @@ public Builder uploadId(String uploadId) {
201189 *
202190 * @param completedMultipartUpload The {@link CompletedMultipartUpload} payload.
203191 * @return This builder.
204- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
192+ * @since 2.60.0
205193 */
206- @ BetaApi
207194 public Builder multipartUpload (CompletedMultipartUpload completedMultipartUpload ) {
208195 this .multipartUpload = completedMultipartUpload ;
209196 return this ;
@@ -216,9 +203,8 @@ public Builder multipartUpload(CompletedMultipartUpload completedMultipartUpload
216203 * @return This builder.
217204 * @see <a
218205 * href="https://docs.cloud.google.com/storage/docs/xml-api/reference-headers#xgooguserproject">x-goog-user-project</a>
219- * @since 2.61 This new api is in preview and is subject to breaking changes.
206+ * @since 2.61.0
220207 */
221- @ BetaApi
222208 public Builder userProject (String userProject ) {
223209 this .userProject = userProject ;
224210 return this ;
@@ -228,9 +214,8 @@ public Builder userProject(String userProject) {
228214 * Builds the {@link CompleteMultipartUploadRequest} object.
229215 *
230216 * @return The new {@link CompleteMultipartUploadRequest} object.
231- * @since 2.60.0 This new api is in preview and is subject to breaking changes.
217+ * @since 2.60.0
232218 */
233- @ BetaApi
234219 public CompleteMultipartUploadRequest build () {
235220 return new CompleteMultipartUploadRequest (this );
236221 }
0 commit comments