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

com.pulumi.azurenative.costmanagement.outputs.GetReportResult 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.costmanagement.outputs;

import com.pulumi.azurenative.costmanagement.outputs.ReportDefinitionResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportDeliveryInfoResponse;
import com.pulumi.azurenative.costmanagement.outputs.ReportScheduleResponse;
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 GetReportResult {
    /**
     * @return Has definition for the report.
     * 
     */
    private ReportDefinitionResponse definition;
    /**
     * @return Has delivery information for the report.
     * 
     */
    private ReportDeliveryInfoResponse deliveryInfo;
    /**
     * @return The format of the report being delivered.
     * 
     */
    private @Nullable String format;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Has schedule information for the report.
     * 
     */
    private @Nullable ReportScheduleResponse schedule;
    /**
     * @return Resource tags.
     * 
     */
    private Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetReportResult() {}
    /**
     * @return Has definition for the report.
     * 
     */
    public ReportDefinitionResponse definition() {
        return this.definition;
    }
    /**
     * @return Has delivery information for the report.
     * 
     */
    public ReportDeliveryInfoResponse deliveryInfo() {
        return this.deliveryInfo;
    }
    /**
     * @return The format of the report being delivered.
     * 
     */
    public Optional format() {
        return Optional.ofNullable(this.format);
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Has schedule information for the report.
     * 
     */
    public Optional schedule() {
        return Optional.ofNullable(this.schedule);
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetReportResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ReportDefinitionResponse definition;
        private ReportDeliveryInfoResponse deliveryInfo;
        private @Nullable String format;
        private String id;
        private String name;
        private @Nullable ReportScheduleResponse schedule;
        private Map tags;
        private String type;
        public Builder() {}
        public Builder(GetReportResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.definition = defaults.definition;
    	      this.deliveryInfo = defaults.deliveryInfo;
    	      this.format = defaults.format;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.schedule = defaults.schedule;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder definition(ReportDefinitionResponse definition) {
            if (definition == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "definition");
            }
            this.definition = definition;
            return this;
        }
        @CustomType.Setter
        public Builder deliveryInfo(ReportDeliveryInfoResponse deliveryInfo) {
            if (deliveryInfo == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "deliveryInfo");
            }
            this.deliveryInfo = deliveryInfo;
            return this;
        }
        @CustomType.Setter
        public Builder format(@Nullable String format) {

            this.format = format;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder schedule(@Nullable ReportScheduleResponse schedule) {

            this.schedule = schedule;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetReportResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetReportResult build() {
            final var _resultValue = new GetReportResult();
            _resultValue.definition = definition;
            _resultValue.deliveryInfo = deliveryInfo;
            _resultValue.format = format;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.schedule = schedule;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy