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

com.jdcloud.sdk.service.ossopenapi.model.SignatureInfo Maven / Gradle / Ivy

/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OSS Signature Service
 * OSS Signature Service
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package com.jdcloud.sdk.service.ossopenapi.model;

import com.jdcloud.sdk.annotation.Required;
import java.util.Map;

/**
 * signatureInfo
 */
public class SignatureInfo  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 签名的endpoint, 例如 http://s3.cn-east-1.jcloudcs.com
     * Required:true
     */
    @Required
    private String endpoint;

    /**
     * http method
     * Required:true
     */
    @Required
    private String httpMethod;

    /**
     * 资源路径,不包含query string
     * Required:true
     */
    @Required
    private String resourcePath;

    /**
     * 上传文件的sha256
     * Required:true
     */
    @Required
    private String xAmzContentSha256;

    /**
     * 附加的签名header
     */
    private Map additionalSignatureHeaders;

    /**
     * 签名的参数,query string
     */
    private Map signatureParameters;



    /**
     * get 签名的endpoint, 例如 http://s3.cn-east-1.jcloudcs.com
     *
     * @return
     */
    public String getEndpoint() {
        return endpoint;
    }

    /**
     * set 签名的endpoint, 例如 http://s3.cn-east-1.jcloudcs.com
     *
     * @param endpoint
     */
    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }


    /**
     * get http method
     *
     * @return
     */
    public String getHttpMethod() {
        return httpMethod;
    }

    /**
     * set http method
     *
     * @param httpMethod
     */
    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }


    /**
     * get 资源路径,不包含query string
     *
     * @return
     */
    public String getResourcePath() {
        return resourcePath;
    }

    /**
     * set 资源路径,不包含query string
     *
     * @param resourcePath
     */
    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }


    /**
     * get 上传文件的sha256
     *
     * @return
     */
    public String getXAmzContentSha256() {
        return xAmzContentSha256;
    }

    /**
     * set 上传文件的sha256
     *
     * @param xAmzContentSha256
     */
    public void setXAmzContentSha256(String xAmzContentSha256) {
        this.xAmzContentSha256 = xAmzContentSha256;
    }


    /**
     * get 附加的签名header
     *
     * @return
     */
    public Map getAdditionalSignatureHeaders() {
        return additionalSignatureHeaders;
    }

    /**
     * set 附加的签名header
     *
     * @param additionalSignatureHeaders
     */
    public void setAdditionalSignatureHeaders(Map additionalSignatureHeaders) {
        this.additionalSignatureHeaders = additionalSignatureHeaders;
    }


    /**
     * get 签名的参数,query string
     *
     * @return
     */
    public Map getSignatureParameters() {
        return signatureParameters;
    }

    /**
     * set 签名的参数,query string
     *
     * @param signatureParameters
     */
    public void setSignatureParameters(Map signatureParameters) {
        this.signatureParameters = signatureParameters;
    }



    /**
     * set 签名的endpoint, 例如 http://s3.cn-east-1.jcloudcs.com
     *
     * @param endpoint
     */
    public SignatureInfo endpoint(String endpoint) {
        this.endpoint = endpoint;
        return this;
    }


    /**
     * set http method
     *
     * @param httpMethod
     */
    public SignatureInfo httpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
        return this;
    }


    /**
     * set 资源路径,不包含query string
     *
     * @param resourcePath
     */
    public SignatureInfo resourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
        return this;
    }


    /**
     * set 上传文件的sha256
     *
     * @param xAmzContentSha256
     */
    public SignatureInfo xAmzContentSha256(String xAmzContentSha256) {
        this.xAmzContentSha256 = xAmzContentSha256;
        return this;
    }


    /**
     * set 附加的签名header
     *
     * @param additionalSignatureHeaders
     */
    public SignatureInfo additionalSignatureHeaders(Map additionalSignatureHeaders) {
        this.additionalSignatureHeaders = additionalSignatureHeaders;
        return this;
    }


    /**
     * set 签名的参数,query string
     *
     * @param signatureParameters
     */
    public SignatureInfo signatureParameters(Map signatureParameters) {
        this.signatureParameters = signatureParameters;
        return this;
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy