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

com.qcloud.cos.auth.CredentialsEndpointRetryParameters Maven / Gradle / Ivy

Go to download

A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.

There is a newer version: 5.6.228
Show newest version
package com.qcloud.cos.auth;

public class CredentialsEndpointRetryParameters {
    private final Integer statusCode;
    private final Exception exception;

    public static class Builder {
        private Integer statusCode;
        private Exception exception;

        private Builder() {
            this(null, null);
        }

        public Builder(Integer statusCode, Exception exception) {
            this.statusCode = statusCode;
            this.exception = exception;
        }

        public Builder withStatusCode(Integer statusCode) {
            this.statusCode = statusCode;
            return this;
        }

        public Builder withException(Exception exception) {
            this.exception = exception;
            return this;
        }

        public CredentialsEndpointRetryParameters build() {
            return new CredentialsEndpointRetryParameters(this);
        }
    }

    public CredentialsEndpointRetryParameters(Builder builder) {
        this.statusCode = builder.statusCode;
        this.exception = builder.exception;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public Exception getException() {
        return exception;
    }

    public static Builder builder() {
        return new Builder();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy