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 booleanequals(java.lang.Object o)longgetAbsoluteMinimumPartSize()java.lang.StringgetAccountId()B2AllowedgetAllowed()java.lang.StringgetApiUrl()java.lang.StringgetAuthorizationToken()java.lang.StringgetDownloadUrl()longgetRecommendedPartSize()java.lang.StringgetS3ApiUrl()inthashCode()java.lang.StringtoString()B2AccountAuthorizationwithAuthToken(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:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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.
-
-