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

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

// *** 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.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InvoiceSectionPropertiesResponse {
    /**
     * @return The name of the invoice section.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return The provisioning state of the resource during a long-running operation.
     * 
     */
    private String provisioningState;
    /**
     * @return Reason for the specified invoice section status.
     * 
     */
    private @Nullable String reasonCode;
    /**
     * @return Identifies the status of an invoice section.
     * 
     */
    private @Nullable String state;
    /**
     * @return The system generated unique identifier for an invoice section.
     * 
     */
    private String systemId;
    /**
     * @return Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.
     * 
     */
    private @Nullable String targetCloud;

    private InvoiceSectionPropertiesResponse() {}
    /**
     * @return The name of the invoice section.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return The provisioning state of the resource during a long-running operation.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Reason for the specified invoice section status.
     * 
     */
    public Optional reasonCode() {
        return Optional.ofNullable(this.reasonCode);
    }
    /**
     * @return Identifies the status of an invoice section.
     * 
     */
    public Optional state() {
        return Optional.ofNullable(this.state);
    }
    /**
     * @return The system generated unique identifier for an invoice section.
     * 
     */
    public String systemId() {
        return this.systemId;
    }
    /**
     * @return Dictionary of metadata associated with the resource. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds.
     * 
     */
    public Optional targetCloud() {
        return Optional.ofNullable(this.targetCloud);
    }

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

    public static Builder builder(InvoiceSectionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String displayName;
        private String provisioningState;
        private @Nullable String reasonCode;
        private @Nullable String state;
        private String systemId;
        private @Nullable Map tags;
        private @Nullable String targetCloud;
        public Builder() {}
        public Builder(InvoiceSectionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.displayName = defaults.displayName;
    	      this.provisioningState = defaults.provisioningState;
    	      this.reasonCode = defaults.reasonCode;
    	      this.state = defaults.state;
    	      this.systemId = defaults.systemId;
    	      this.tags = defaults.tags;
    	      this.targetCloud = defaults.targetCloud;
        }

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

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("InvoiceSectionPropertiesResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder reasonCode(@Nullable String reasonCode) {

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

            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder systemId(String systemId) {
            if (systemId == null) {
              throw new MissingRequiredPropertyException("InvoiceSectionPropertiesResponse", "systemId");
            }
            this.systemId = systemId;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

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

            this.targetCloud = targetCloud;
            return this;
        }
        public InvoiceSectionPropertiesResponse build() {
            final var _resultValue = new InvoiceSectionPropertiesResponse();
            _resultValue.displayName = displayName;
            _resultValue.provisioningState = provisioningState;
            _resultValue.reasonCode = reasonCode;
            _resultValue.state = state;
            _resultValue.systemId = systemId;
            _resultValue.tags = tags;
            _resultValue.targetCloud = targetCloud;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy