com.pulumi.azurenative.testbase.outputs.BillingHubPackageUsageResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The 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.testbase.outputs;
import com.pulumi.azurenative.testbase.outputs.BillingHubUsageGroupedByUpdateTypeResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class BillingHubPackageUsageResponse {
private @Nullable String applicationName;
private @Nullable String applicationVersion;
private @Nullable String azureResourceUri;
private @Nullable Double totalCharges;
private @Nullable Double totalUsedBillableHours;
private @Nullable Double totalUsedFreeHours;
private @Nullable List usageEntriesGroupedByUpdateType;
private BillingHubPackageUsageResponse() {}
public Optional applicationName() {
return Optional.ofNullable(this.applicationName);
}
public Optional applicationVersion() {
return Optional.ofNullable(this.applicationVersion);
}
public Optional azureResourceUri() {
return Optional.ofNullable(this.azureResourceUri);
}
public Optional totalCharges() {
return Optional.ofNullable(this.totalCharges);
}
public Optional totalUsedBillableHours() {
return Optional.ofNullable(this.totalUsedBillableHours);
}
public Optional totalUsedFreeHours() {
return Optional.ofNullable(this.totalUsedFreeHours);
}
public List usageEntriesGroupedByUpdateType() {
return this.usageEntriesGroupedByUpdateType == null ? List.of() : this.usageEntriesGroupedByUpdateType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BillingHubPackageUsageResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String applicationName;
private @Nullable String applicationVersion;
private @Nullable String azureResourceUri;
private @Nullable Double totalCharges;
private @Nullable Double totalUsedBillableHours;
private @Nullable Double totalUsedFreeHours;
private @Nullable List usageEntriesGroupedByUpdateType;
public Builder() {}
public Builder(BillingHubPackageUsageResponse defaults) {
Objects.requireNonNull(defaults);
this.applicationName = defaults.applicationName;
this.applicationVersion = defaults.applicationVersion;
this.azureResourceUri = defaults.azureResourceUri;
this.totalCharges = defaults.totalCharges;
this.totalUsedBillableHours = defaults.totalUsedBillableHours;
this.totalUsedFreeHours = defaults.totalUsedFreeHours;
this.usageEntriesGroupedByUpdateType = defaults.usageEntriesGroupedByUpdateType;
}
@CustomType.Setter
public Builder applicationName(@Nullable String applicationName) {
this.applicationName = applicationName;
return this;
}
@CustomType.Setter
public Builder applicationVersion(@Nullable String applicationVersion) {
this.applicationVersion = applicationVersion;
return this;
}
@CustomType.Setter
public Builder azureResourceUri(@Nullable String azureResourceUri) {
this.azureResourceUri = azureResourceUri;
return this;
}
@CustomType.Setter
public Builder totalCharges(@Nullable Double totalCharges) {
this.totalCharges = totalCharges;
return this;
}
@CustomType.Setter
public Builder totalUsedBillableHours(@Nullable Double totalUsedBillableHours) {
this.totalUsedBillableHours = totalUsedBillableHours;
return this;
}
@CustomType.Setter
public Builder totalUsedFreeHours(@Nullable Double totalUsedFreeHours) {
this.totalUsedFreeHours = totalUsedFreeHours;
return this;
}
@CustomType.Setter
public Builder usageEntriesGroupedByUpdateType(@Nullable List usageEntriesGroupedByUpdateType) {
this.usageEntriesGroupedByUpdateType = usageEntriesGroupedByUpdateType;
return this;
}
public Builder usageEntriesGroupedByUpdateType(BillingHubUsageGroupedByUpdateTypeResponse... usageEntriesGroupedByUpdateType) {
return usageEntriesGroupedByUpdateType(List.of(usageEntriesGroupedByUpdateType));
}
public BillingHubPackageUsageResponse build() {
final var _resultValue = new BillingHubPackageUsageResponse();
_resultValue.applicationName = applicationName;
_resultValue.applicationVersion = applicationVersion;
_resultValue.azureResourceUri = azureResourceUri;
_resultValue.totalCharges = totalCharges;
_resultValue.totalUsedBillableHours = totalUsedBillableHours;
_resultValue.totalUsedFreeHours = totalUsedFreeHours;
_resultValue.usageEntriesGroupedByUpdateType = usageEntriesGroupedByUpdateType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy