CorsRules Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. CorsRules
- com.
Implements
public final class CorsRules
implements JsonSerializable<CorsRules>
Sets the CORS rules. You can include up to five CorsRule elements in the request.
Constructor Summary
Constructor | Description |
---|---|
CorsRules() |
Creates an instance of Cors |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Cors |
corsRules()
Get the cors |
static
Cors |
fromJson(JsonReader jsonReader)
Reads an instance of Cors |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cors |
withCorsRules(List<CorsRule> corsRules)
Set the cors |
Methods inherited from java.lang.Object
Constructor Details
CorsRules
public CorsRules()
Creates an instance of CorsRules class.
Method Details
corsRules
public List
Get the corsRules property: The List of CORS rules. You can include up to five CorsRule elements in the request.
Returns:
fromJson
public static CorsRules fromJson(JsonReader jsonReader)
Reads an instance of CorsRules from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCorsRules
public CorsRules withCorsRules(List
Set the corsRules property: The List of CORS rules. You can include up to five CorsRule elements in the request.
Parameters:
Returns:
Applies to
Azure SDK for Java