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

com.aliyun.sdk.service.ens20171110.models.PrepareUploadRequest 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 PrepareUploadRequest} extends {@link RequestModel}
 *
 * 

PrepareUploadRequest

*/ public class PrepareUploadRequest 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("ClientIp") private String clientIp; private PrepareUploadRequest(Builder builder) { super(builder); this.bucketName = builder.bucketName; this.clientIp = builder.clientIp; } public static Builder builder() { return new Builder(); } public static PrepareUploadRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bucketName */ public String getBucketName() { return this.bucketName; } /** * @return clientIp */ public String getClientIp() { return this.clientIp; } public static final class Builder extends Request.Builder { private String bucketName; private String clientIp; private Builder() { super(); } private Builder(PrepareUploadRequest request) { super(request); this.bucketName = request.bucketName; this.clientIp = request.clientIp; } /** *

The name of the bucket.

*

This parameter is required.

* * example: *

test

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

The specified IP address. This parameter is applicable to scenarios where the user IP address is inconsistent with the operation calling IP address, such as the scenario where the server obtains authorization and sends the authorization to the client.

* * example: *

180.166.XX.XXX

*/ public Builder clientIp(String clientIp) { this.putQueryParameter("ClientIp", clientIp); this.clientIp = clientIp; return this; } @Override public PrepareUploadRequest build() { return new PrepareUploadRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy