All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ens20171110.models.DeleteObjectRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;

import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link DeleteObjectRequest} extends {@link RequestModel}
 *
 * 

DeleteObjectRequest

*/ public class DeleteObjectRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("BucketName") @com.aliyun.core.annotation.Validation(required = true) private String bucketName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ObjectKey") @com.aliyun.core.annotation.Validation(required = true) private String objectKey; private DeleteObjectRequest(Builder builder) { super(builder); this.bucketName = builder.bucketName; this.objectKey = builder.objectKey; } public static Builder builder() { return new Builder(); } public static DeleteObjectRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bucketName */ public String getBucketName() { return this.bucketName; } /** * @return objectKey */ public String getObjectKey() { return this.objectKey; } public static final class Builder extends Request.Builder { private String bucketName; private String objectKey; private Builder() { super(); } private Builder(DeleteObjectRequest request) { super(request); this.bucketName = request.bucketName; this.objectKey = request.objectKey; } /** *

The name of the bucket.

*

This parameter is required.

* * example: *

tets

*/ public Builder bucketName(String bucketName) { this.putQueryParameter("BucketName", bucketName); this.bucketName = bucketName; return this; } /** *

The name of the file.

*

This parameter is required.

* * example: *

image5

*/ public Builder objectKey(String objectKey) { this.putQueryParameter("ObjectKey", objectKey); this.objectKey = objectKey; return this; } @Override public DeleteObjectRequest build() { return new DeleteObjectRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy