Class B2CorsRule
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2CorsRule
-
public class B2CorsRule extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
B2CorsRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static B2CorsRule.Builder
builder(java.lang.String corsRuleName, java.util.List<java.lang.String> allowedOrigins, java.util.Set<java.lang.String> allowedOperations, int maxAgeSeconds)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAllowedHeaders()
java.util.Set<java.lang.String>
getAllowedOperations()
java.util.List<java.lang.String>
getAllowedOrigins()
java.lang.String
getCorsRuleName()
java.util.List<java.lang.String>
getExposeHeaders()
int
getMaxAgeSeconds()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getCorsRuleName
public java.lang.String getCorsRuleName()
-
getAllowedOrigins
public java.util.List<java.lang.String> getAllowedOrigins()
-
getAllowedOperations
public java.util.Set<java.lang.String> getAllowedOperations()
-
getAllowedHeaders
public java.util.List<java.lang.String> getAllowedHeaders()
-
getExposeHeaders
public java.util.List<java.lang.String> getExposeHeaders()
-
getMaxAgeSeconds
public int getMaxAgeSeconds()
-
builder
public static B2CorsRule.Builder builder(java.lang.String corsRuleName, java.util.List<java.lang.String> allowedOrigins, java.util.Set<java.lang.String> allowedOperations, int maxAgeSeconds)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-