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

How to use
PutObjectLifecyclePolicyRequest
in
com.oracle.bmc.objectstorage.requests

Best Java code snippets using com.oracle.bmc.objectstorage.requests.PutObjectLifecyclePolicyRequest (Showing top 6 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(PutObjectLifecyclePolicyRequest o) {
  namespaceName(o.getNamespaceName());
  bucketName(o.getBucketName());
  putObjectLifecyclePolicyDetails(o.getPutObjectLifecyclePolicyDetails());
  opcClientRequestId(o.getOpcClientRequestId());
  ifMatch(o.getIfMatch());
  ifNoneMatch(o.getIfNoneMatch());
  invocationCallback(o.getInvocationCallback());
  return this;
}
origin: oracle/oci-java-sdk

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

@Override
public PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy(
    PutObjectLifecyclePolicyRequest request) {
  LOG.trace("Called putObjectLifecyclePolicy");
  request = PutObjectLifecyclePolicyConverter.interceptRequest(request);
  com.oracle.bmc.http.internal.WrappedInvocationBuilder ib =
      PutObjectLifecyclePolicyConverter.fromRequest(client, request);
  com.google.common.base.Function<javax.ws.rs.core.Response, PutObjectLifecyclePolicyResponse>
      transformer = PutObjectLifecyclePolicyConverter.fromResponse();
  int attempts = 0;
  while (true) {
    try {
      javax.ws.rs.core.Response response =
          client.put(ib, request.getPutObjectLifecyclePolicyDetails(), request);
      return transformer.apply(response);
    } catch (com.oracle.bmc.model.BmcException e) {
      if (++attempts < MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS
          && canRetryRequestIfRefreshableAuthTokenUsed(e)) {
        continue;
      } else {
        throw e;
      }
    }
  }
}
origin: oracle/oci-java-sdk

        .build();
final PutObjectLifecyclePolicyRequest putObjectLifecyclePolicyRequest =
    PutObjectLifecyclePolicyRequest.builder()
        .namespaceName(namespaceName)
        .bucketName(bucketName)
origin: oracle/oci-java-sdk

client.put(
    ib,
    interceptedRequest.getPutObjectLifecyclePolicyDetails(),
    interceptedRequest,
    onSuccess,
origin: oracle/oci-java-sdk

  PutObjectLifecyclePolicyRequest request) {
Validate.notNull(request, "request instance is required");
Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank");
Validate.notBlank(request.getBucketName(), "bucketName must not be blank");
Validate.notNull(
    request.getPutObjectLifecyclePolicyDetails(),
    "putObjectLifecyclePolicyDetails is required");
        .path(
            com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
                request.getNamespaceName()))
        .path("b")
        .path(
            com.oracle.bmc.util.internal.HttpUtils.encodePathSegment(
                request.getBucketName()))
        .path("l");
if (request.getOpcClientRequestId() != null) {
  ib.header("opc-client-request-id", request.getOpcClientRequestId());
if (request.getIfMatch() != null) {
  ib.header("if-match", request.getIfMatch());
if (request.getIfNoneMatch() != null) {
  ib.header("if-none-match", request.getIfNoneMatch());
com.oracle.bmc.objectstorage.requestsPutObjectLifecyclePolicyRequest

Most used methods

  • builder
  • getBucketName
  • getIfMatch
  • getIfNoneMatch
  • getInvocationCallback
  • getNamespaceName
  • getOpcClientRequestId
  • getPutObjectLifecyclePolicyDetails
  • setInvocationCallback

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 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