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

com.pulumi.azurenative.billing.outputs.PaymentTermResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.pulumi.azurenative.billing.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PaymentTermResponse {
    /**
     * @return The date on when the defined 'Payment Term' will end and is always in UTC.
     * 
     */
    private @Nullable String endDate;
    /**
     * @return Indicates payment term is the standard payment term.
     * 
     */
    private Boolean isDefault;
    /**
     * @return The date on when the defined 'Payment Term' will be effective from and is always in UTC.
     * 
     */
    private @Nullable String startDate;
    /**
     * @return Represents duration in netXX format. Always in days.
     * 
     */
    private @Nullable String term;

    private PaymentTermResponse() {}
    /**
     * @return The date on when the defined 'Payment Term' will end and is always in UTC.
     * 
     */
    public Optional endDate() {
        return Optional.ofNullable(this.endDate);
    }
    /**
     * @return Indicates payment term is the standard payment term.
     * 
     */
    public Boolean isDefault() {
        return this.isDefault;
    }
    /**
     * @return The date on when the defined 'Payment Term' will be effective from and is always in UTC.
     * 
     */
    public Optional startDate() {
        return Optional.ofNullable(this.startDate);
    }
    /**
     * @return Represents duration in netXX format. Always in days.
     * 
     */
    public Optional term() {
        return Optional.ofNullable(this.term);
    }

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

    public static Builder builder(PaymentTermResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String endDate;
        private Boolean isDefault;
        private @Nullable String startDate;
        private @Nullable String term;
        public Builder() {}
        public Builder(PaymentTermResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endDate = defaults.endDate;
    	      this.isDefault = defaults.isDefault;
    	      this.startDate = defaults.startDate;
    	      this.term = defaults.term;
        }

        @CustomType.Setter
        public Builder endDate(@Nullable String endDate) {

            this.endDate = endDate;
            return this;
        }
        @CustomType.Setter
        public Builder isDefault(Boolean isDefault) {
            if (isDefault == null) {
              throw new MissingRequiredPropertyException("PaymentTermResponse", "isDefault");
            }
            this.isDefault = isDefault;
            return this;
        }
        @CustomType.Setter
        public Builder startDate(@Nullable String startDate) {

            this.startDate = startDate;
            return this;
        }
        @CustomType.Setter
        public Builder term(@Nullable String term) {

            this.term = term;
            return this;
        }
        public PaymentTermResponse build() {
            final var _resultValue = new PaymentTermResponse();
            _resultValue.endDate = endDate;
            _resultValue.isDefault = isDefault;
            _resultValue.startDate = startDate;
            _resultValue.term = term;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy