Class B2AccountAuthorization
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2AccountAuthorization
-
public class B2AccountAuthorization extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description B2AccountAuthorization(java.lang.String accountId, java.lang.String authorizationToken, java.lang.String apiUrl, java.lang.String downloadUrl, long recommendedPartSize, long absoluteMinimumPartSize, B2Allowed allowed, java.lang.String s3ApiUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getAbsoluteMinimumPartSize()
java.lang.String
getAccountId()
B2Allowed
getAllowed()
java.lang.String
getApiUrl()
java.lang.String
getAuthorizationToken()
java.lang.String
getDownloadUrl()
long
getRecommendedPartSize()
java.lang.String
getS3ApiUrl()
int
hashCode()
java.lang.String
toString()
B2AccountAuthorization
withAuthToken(java.lang.String authToken)
-
-
-
Constructor Detail
-
B2AccountAuthorization
public B2AccountAuthorization(java.lang.String accountId, java.lang.String authorizationToken, java.lang.String apiUrl, java.lang.String downloadUrl, long recommendedPartSize, long absoluteMinimumPartSize, B2Allowed allowed, java.lang.String s3ApiUrl)
-
-
Method Detail
-
getAccountId
public java.lang.String getAccountId()
-
getAuthorizationToken
public java.lang.String getAuthorizationToken()
-
getApiUrl
public java.lang.String getApiUrl()
-
getDownloadUrl
public java.lang.String getDownloadUrl()
-
getRecommendedPartSize
public long getRecommendedPartSize()
-
getAbsoluteMinimumPartSize
public long getAbsoluteMinimumPartSize()
-
getAllowed
public B2Allowed getAllowed()
-
getS3ApiUrl
public java.lang.String getS3ApiUrl()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
withAuthToken
public B2AccountAuthorization withAuthToken(java.lang.String authToken)
- Parameters:
authToken
- the desired authToken.- Returns:
- a new B2AccountAuthorization, just like this one but with the given authToken. useful for tests, etc.
-
-