Class GetObjectArgs.Builder

  • Enclosing class:
    GetObjectArgs

    public static final class GetObjectArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucket

        public GetObjectArgs.Builder bucket​(com.pulumi.core.Output<java.lang.String> bucket)
        Parameters:
        bucket - Name of the bucket to read the object from. Alternatively, an [S3 access point](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) ARN can be specified
        Returns:
        builder
      • bucket

        public GetObjectArgs.Builder bucket​(java.lang.String bucket)
        Parameters:
        bucket - Name of the bucket to read the object from. Alternatively, an [S3 access point](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-access-points.html) ARN can be specified
        Returns:
        builder
      • checksumMode

        public GetObjectArgs.Builder checksumMode​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> checksumMode)
        Parameters:
        checksumMode - To retrieve the object's checksum, this argument must be `ENABLED`. If you enable `checksumMode` and the object is encrypted with KMS, you must have permission to use the `kms:Decrypt` action. Valid values: `ENABLED`
        Returns:
        builder
      • checksumMode

        public GetObjectArgs.Builder checksumMode​(java.lang.String checksumMode)
        Parameters:
        checksumMode - To retrieve the object's checksum, this argument must be `ENABLED`. If you enable `checksumMode` and the object is encrypted with KMS, you must have permission to use the `kms:Decrypt` action. Valid values: `ENABLED`
        Returns:
        builder
      • downloadBody

        public GetObjectArgs.Builder downloadBody​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> downloadBody)
        Parameters:
        downloadBody - Set to `true` to always download object data to `bodyBase64` attribute. If unset and conditions described above are met, `body` will be available but `bodyBase64` will not be. If set to `false`, the body is not downloaded and neither `body` nor `bodyBase64` is available, which may improve performance.
        Returns:
        builder
      • downloadBody

        public GetObjectArgs.Builder downloadBody​(java.lang.String downloadBody)
        Parameters:
        downloadBody - Set to `true` to always download object data to `bodyBase64` attribute. If unset and conditions described above are met, `body` will be available but `bodyBase64` will not be. If set to `false`, the body is not downloaded and neither `body` nor `bodyBase64` is available, which may improve performance.
        Returns:
        builder
      • key

        public GetObjectArgs.Builder key​(com.pulumi.core.Output<java.lang.String> key)
        Parameters:
        key - Full path to the object inside the bucket
        Returns:
        builder
      • key

        public GetObjectArgs.Builder key​(java.lang.String key)
        Parameters:
        key - Full path to the object inside the bucket
        Returns:
        builder
      • range

        public GetObjectArgs.Builder range​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> range)
        Parameters:
        range - Byte range of the object to retrieve, in the format expected by the [HTTP `Range` header](https://www.rfc-editor.org/rfc/rfc9110.html#name-range).
        Returns:
        builder
      • range

        public GetObjectArgs.Builder range​(java.lang.String range)
        Parameters:
        range - Byte range of the object to retrieve, in the format expected by the [HTTP `Range` header](https://www.rfc-editor.org/rfc/rfc9110.html#name-range).
        Returns:
        builder
      • region

        public GetObjectArgs.Builder region​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public GetObjectArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • tags

        public GetObjectArgs.Builder tags​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags assigned to the object.
        Returns:
        builder
      • tags

        public GetObjectArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags assigned to the object.
        Returns:
        builder
      • versionId

        public GetObjectArgs.Builder versionId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> versionId)
        Parameters:
        versionId - Specific version ID of the object returned (defaults to latest version)
        Returns:
        builder
      • versionId

        public GetObjectArgs.Builder versionId​(java.lang.String versionId)
        Parameters:
        versionId - Specific version ID of the object returned (defaults to latest version)
        Returns:
        builder