Class PutCorsConfigurationOptions.Builder

java.lang.Object
com.ibm.cloud.cloudant.v1.model.PutCorsConfigurationOptions.Builder
Enclosing class:
PutCorsConfigurationOptions

public static class PutCorsConfigurationOptions.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder(List<String> origins)
      Instantiates a new builder with required properties.
      Parameters:
      origins - the origins
  • Method Details

    • build

      Builds a PutCorsConfigurationOptions.
      Returns:
      the new PutCorsConfigurationOptions instance
    • addOrigins

      public PutCorsConfigurationOptions.Builder addOrigins(String origins)
      Adds a new element to origins.
      Parameters:
      origins - the new element to be added
      Returns:
      the PutCorsConfigurationOptions builder
    • origins

      public PutCorsConfigurationOptions.Builder origins(List<String> origins)
      Set the origins. Existing origins will be replaced.
      Parameters:
      origins - the origins
      Returns:
      the PutCorsConfigurationOptions builder
    • allowCredentials

      public PutCorsConfigurationOptions.Builder allowCredentials(Boolean allowCredentials)
      Set the allowCredentials.
      Parameters:
      allowCredentials - the allowCredentials
      Returns:
      the PutCorsConfigurationOptions builder
    • enableCors

      public PutCorsConfigurationOptions.Builder enableCors(Boolean enableCors)
      Set the enableCors.
      Parameters:
      enableCors - the enableCors
      Returns:
      the PutCorsConfigurationOptions builder