Tabnine Logo
ListSmtpCredentialsRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
ListSmtpCredentialsRequest
in
com.oracle.bmc.identity.requests

Best Java code snippets using com.oracle.bmc.identity.requests.ListSmtpCredentialsRequest (Showing top 4 results out of 315)

origin: oracle/oci-java-sdk

/**
 * Copy method to populate the builder with values from the given instance.
 * @return this builder instance
 */
public Builder copy(ListSmtpCredentialsRequest o) {
  userId(o.getUserId());
  invocationCallback(o.getInvocationCallback());
  return this;
}
origin: oracle/oci-java-sdk

  /**
   * Build the instance of ListSmtpCredentialsRequest 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 ListSmtpCredentialsRequest
   */
  public ListSmtpCredentialsRequest build() {
    ListSmtpCredentialsRequest request = buildWithoutInvocationCallback();
    request.setInvocationCallback(invocationCallback);
    return request;
  }
}
origin: oracle/oci-java-sdk

/**
 * Lists SMTP credentials for a user. A user can only have two active SMTP credentials
 *
 * @param identityClient the client used to communicate with the Identity Service
 * @param userId the OCID of the user to retrieve credentials for
 */
private static void listSmtpCredentials(
    final IdentityClient identityClient, final String userId) {
  System.out.println("Listing Suppressions");
  System.out.println("=======================");
  final ListSmtpCredentialsResponse listResponse =
      identityClient.listSmtpCredentials(
          ListSmtpCredentialsRequest.builder().userId(userId).build());
  for (SmtpCredentialSummary scs : listResponse.getItems()) {
    System.out.println(scs);
  }
  System.out.println();
}
origin: oracle/oci-java-sdk

public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest(
    com.oracle.bmc.http.internal.RestClient client, ListSmtpCredentialsRequest request) {
  Validate.notNull(request, "request instance is required");
  Validate.notBlank(request.getUserId(), "userId must not be blank");
  com.oracle.bmc.http.internal.WrappedWebTarget target =
      client.getBaseTarget()
          .path("/20160918")
          .path("users")
          .path(
              com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
                  request.getUserId()))
          .path("smtpCredentials");
  com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request();
  ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON);
  return ib;
}
com.oracle.bmc.identity.requestsListSmtpCredentialsRequest

Most used methods

  • builder
  • getInvocationCallback
  • getUserId
  • setInvocationCallback

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
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