All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.oss.BucketRequestPayment Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.oss;

import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.oss.BucketRequestPaymentArgs;
import com.pulumi.alicloud.oss.inputs.BucketRequestPaymentState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * ## Import
 * 
 * OSS Bucket Request Payment can be imported using the id, e.g.
 * 
 * ```sh
 * $ pulumi import alicloud:oss/bucketRequestPayment:BucketRequestPayment example <id>
 * ```
 * 
 */
@ResourceType(type="alicloud:oss/bucketRequestPayment:BucketRequestPayment")
public class BucketRequestPayment extends com.pulumi.resources.CustomResource {
    /**
     * The name of the bucket.
     * 
     */
    @Export(name="bucket", refs={String.class}, tree="[0]")
    private Output bucket;

    /**
     * @return The name of the bucket.
     * 
     */
    public Output bucket() {
        return this.bucket;
    }
    /**
     * The payer of the request and traffic fees.Valid values: BucketOwner: request and traffic fees are paid by the bucket owner. Requester: request and traffic fees are paid by the requester.
     * 
     */
    @Export(name="payer", refs={String.class}, tree="[0]")
    private Output payer;

    /**
     * @return The payer of the request and traffic fees.Valid values: BucketOwner: request and traffic fees are paid by the bucket owner. Requester: request and traffic fees are paid by the requester.
     * 
     */
    public Output payer() {
        return this.payer;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public BucketRequestPayment(java.lang.String name) {
        this(name, BucketRequestPaymentArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public BucketRequestPayment(java.lang.String name, BucketRequestPaymentArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public BucketRequestPayment(java.lang.String name, BucketRequestPaymentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:oss/bucketRequestPayment:BucketRequestPayment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private BucketRequestPayment(java.lang.String name, Output id, @Nullable BucketRequestPaymentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("alicloud:oss/bucketRequestPayment:BucketRequestPayment", name, state, makeResourceOptions(options, id), false);
    }

    private static BucketRequestPaymentArgs makeArgs(BucketRequestPaymentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? BucketRequestPaymentArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static BucketRequestPayment get(java.lang.String name, Output id, @Nullable BucketRequestPaymentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new BucketRequestPayment(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy