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

com.ovhcloud.pulumi.ovh.Me.inputs.GetPaymentmeanCreditCardPlainArgs Maven / Gradle / Ivy

There is a newer version: 1.1.0
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.ovhcloud.pulumi.ovh.Me.inputs;

import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetPaymentmeanCreditCardPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPaymentmeanCreditCardPlainArgs Empty = new GetPaymentmeanCreditCardPlainArgs();

    /**
     * a regexp used to filter credit cards
     * on their `description` attributes.
     * 
     */
    @Import(name="descriptionRegexp")
    private @Nullable String descriptionRegexp;

    /**
     * @return a regexp used to filter credit cards
     * on their `description` attributes.
     * 
     */
    public Optional descriptionRegexp() {
        return Optional.ofNullable(this.descriptionRegexp);
    }

    /**
     * Filter credit cards on their `state` attribute.
     * Can be "expired", "valid", "tooManyFailures"
     * 
     */
    @Import(name="states")
    private @Nullable List states;

    /**
     * @return Filter credit cards on their `state` attribute.
     * Can be "expired", "valid", "tooManyFailures"
     * 
     */
    public Optional> states() {
        return Optional.ofNullable(this.states);
    }

    /**
     * Retrieve credit card marked as default payment mean.
     * 
     */
    @Import(name="useDefault")
    private @Nullable Boolean useDefault;

    /**
     * @return Retrieve credit card marked as default payment mean.
     * 
     */
    public Optional useDefault() {
        return Optional.ofNullable(this.useDefault);
    }

    /**
     * Retrieve the credit card that will be the last
     * to expire according to its expiration date.
     * 
     */
    @Import(name="useLastToExpire")
    private @Nullable Boolean useLastToExpire;

    /**
     * @return Retrieve the credit card that will be the last
     * to expire according to its expiration date.
     * 
     */
    public Optional useLastToExpire() {
        return Optional.ofNullable(this.useLastToExpire);
    }

    private GetPaymentmeanCreditCardPlainArgs() {}

    private GetPaymentmeanCreditCardPlainArgs(GetPaymentmeanCreditCardPlainArgs $) {
        this.descriptionRegexp = $.descriptionRegexp;
        this.states = $.states;
        this.useDefault = $.useDefault;
        this.useLastToExpire = $.useLastToExpire;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetPaymentmeanCreditCardPlainArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetPaymentmeanCreditCardPlainArgs $;

        public Builder() {
            $ = new GetPaymentmeanCreditCardPlainArgs();
        }

        public Builder(GetPaymentmeanCreditCardPlainArgs defaults) {
            $ = new GetPaymentmeanCreditCardPlainArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param descriptionRegexp a regexp used to filter credit cards
         * on their `description` attributes.
         * 
         * @return builder
         * 
         */
        public Builder descriptionRegexp(@Nullable String descriptionRegexp) {
            $.descriptionRegexp = descriptionRegexp;
            return this;
        }

        /**
         * @param states Filter credit cards on their `state` attribute.
         * Can be "expired", "valid", "tooManyFailures"
         * 
         * @return builder
         * 
         */
        public Builder states(@Nullable List states) {
            $.states = states;
            return this;
        }

        /**
         * @param states Filter credit cards on their `state` attribute.
         * Can be "expired", "valid", "tooManyFailures"
         * 
         * @return builder
         * 
         */
        public Builder states(String... states) {
            return states(List.of(states));
        }

        /**
         * @param useDefault Retrieve credit card marked as default payment mean.
         * 
         * @return builder
         * 
         */
        public Builder useDefault(@Nullable Boolean useDefault) {
            $.useDefault = useDefault;
            return this;
        }

        /**
         * @param useLastToExpire Retrieve the credit card that will be the last
         * to expire according to its expiration date.
         * 
         * @return builder
         * 
         */
        public Builder useLastToExpire(@Nullable Boolean useLastToExpire) {
            $.useLastToExpire = useLastToExpire;
            return this;
        }

        public GetPaymentmeanCreditCardPlainArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy