Tabnine Logo
CreateUserRequest$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
CreateUserRequest$Builder
in
com.oracle.bmc.identity.requests

Best Java code snippets using com.oracle.bmc.identity.requests.CreateUserRequest$Builder (Showing top 5 results out of 315)

origin: oracle/oci-java-sdk

CreateUserRequest createUserRequest =
    CreateUserRequest.builder()
        .createUserDetails(
            CreateUserDetails.builder()
                .compartmentId(compartmentId)
                .description("Creating test user for ResteasyExample!")
                .build())
        .build();
origin: oracle/oci-java-sdk

CreateUserRequest createUserRequest =
    CreateUserRequest.builder()
        .createUserDetails(
            CreateUserDetails.builder()
                .compartmentId(compartmentId)
                .description("Creating test user for ResteasyExample!")
                .build())
        .build();
origin: oracle/oci-java-sdk

public static User createUser(
    Identity client, String compartmentId, String name, String description) {
  CreateUserDetails createUserDetails =
      CreateUserDetails.builder()
          .compartmentId(compartmentId)
          .name(name)
          .description(description)
          .build();
  User user =
      client.createUser(
              CreateUserRequest.builder()
                  .createUserDetails(createUserDetails)
                  .build())
          .getUser();
  if (user == null) {
    throw new RuntimeException("User creation fails with " + createUserDetails.toString());
  }
  System.out.println("User " + user.getName() + " created successfully");
  return user;
}
origin: oracle/oci-java-sdk

  /**
   * Build the instance of CreateUserRequest as configured by this builder
   *
   * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account,
   * while the method {@link Builder#buildWithoutInvocationCallback} does not.
   *
   * This is the preferred method to build an instance.
   *
   * @return instance of CreateUserRequest
   */
  public CreateUserRequest build() {
    CreateUserRequest request = buildWithoutInvocationCallback();
    request.setInvocationCallback(invocationCallback);
    return request;
  }
}
origin: oracle/oci-java-sdk

/**
 * Copy method to populate the builder with values from the given instance.
 * @return this builder instance
 */
public Builder copy(CreateUserRequest o) {
  createUserDetails(o.getCreateUserDetails());
  opcRetryToken(o.getOpcRetryToken());
  invocationCallback(o.getInvocationCallback());
  return this;
}
com.oracle.bmc.identity.requestsCreateUserRequest$Builder

Most used methods

  • createUserDetails
  • build
    Build the instance of CreateUserRequest as configured by this builder Note that this method takes ca
  • buildWithoutInvocationCallback
  • invocationCallback
    Set the invocation callback for the request to be built.
  • opcRetryToken

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now