Class SecurityObject.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public SecurityObject build()
      Builds a SecurityObject.
      Returns:
      the new SecurityObject instance
    • addNames

      public SecurityObject.Builder addNames(String names)
      Adds a new element to names.
      Parameters:
      names - the new element to be added
      Returns:
      the SecurityObject builder
    • addRoles

      public SecurityObject.Builder addRoles(String roles)
      Adds a new element to roles.
      Parameters:
      roles - the new element to be added
      Returns:
      the SecurityObject builder
    • names

      public SecurityObject.Builder names(List<String> names)
      Set the names. Existing names will be replaced.
      Parameters:
      names - the names
      Returns:
      the SecurityObject builder
    • roles

      public SecurityObject.Builder roles(List<String> roles)
      Set the roles. Existing roles will be replaced.
      Parameters:
      roles - the roles
      Returns:
      the SecurityObject builder