Package com.ibm.cloud.cloudant.v1.model
Class PutCorsConfigurationOptions.Builder
java.lang.Object
com.ibm.cloud.cloudant.v1.model.PutCorsConfigurationOptions.Builder
- Enclosing class:
PutCorsConfigurationOptions
Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddOrigins
(String origins) Adds a new element to origins.allowCredentials
(Boolean allowCredentials) Set the allowCredentials.build()
Builds a PutCorsConfigurationOptions.enableCors
(Boolean enableCors) Set the enableCors.Set the origins.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
origins
- the origins
-
-
Method Details
-
build
Builds a PutCorsConfigurationOptions.- Returns:
- the new PutCorsConfigurationOptions instance
-
addOrigins
Adds a new element to origins.- Parameters:
origins
- the new element to be added- Returns:
- the PutCorsConfigurationOptions builder
-
origins
Set the origins. Existing origins will be replaced.- Parameters:
origins
- the origins- Returns:
- the PutCorsConfigurationOptions builder
-
allowCredentials
Set the allowCredentials.- Parameters:
allowCredentials
- the allowCredentials- Returns:
- the PutCorsConfigurationOptions builder
-
enableCors
Set the enableCors.- Parameters:
enableCors
- the enableCors- Returns:
- the PutCorsConfigurationOptions builder
-