All Implemented Interfaces:
ApiRequest<GetBucket.Request>
Enclosing class:
GetBucket

public static class GetBucket.Request extends OciRequestBase<GetBucket.Request>
Request object. Can be configured with additional headers, query parameters etc.
  • Method Details

    • builder

      public static GetBucket.Request builder()
      Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method is toJson(JsonBuilderFactory) used by the RestApi.
      Returns:
      new request builder
    • toJson

      public Optional<JsonObject> toJson(JsonBuilderFactory factory)
      Description copied from class: ApiJsonBuilder
      Create a JSON object from this builder.
      Specified by:
      toJson in interface ApiRequest<GetBucket.Request>
      Overrides:
      toJson in class ApiJsonBuilder<GetBucket.Request>
      Parameters:
      factory - builder factory to create objects
      Returns:
      JSON object or empty
    • namespace

      public GetBucket.Request namespace(String namespace)
      The Object Storage namespace used for the request. Override the default namespace (if one is configured).
      Parameters:
      namespace - namespace
      Returns:
      updated request
    • bucket

      public GetBucket.Request bucket(String bucket)
      The name of the bucket. Avoid entering confidential information. Required.
      Parameters:
      bucket - bucket name
      Returns:
      updated requst
    • namespace

      public Optional<String> namespace()
      Namespace if configured on this request.
      Returns:
      namespace or empty if not configured per request
    • bucket

      public String bucket()
      Name of the bucket, required.
      Returns:
      bucket name