com.qcloud.cos.auth.CredentialsEndpointRetryParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos_api-bundle Show documentation
Show all versions of cos_api-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries
relocated to different namespaces.
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