com.pulumi.azurenative.costmanagement.outputs.CostAllocationRuleDetailsResponse 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.
// *** 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.SourceCostAllocationResourceResponse;
import com.pulumi.azurenative.costmanagement.outputs.TargetCostAllocationResourceResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class CostAllocationRuleDetailsResponse {
/**
* @return Source resources for cost allocation. At this time, this list can contain no more than one element.
*
*/
private @Nullable List sourceResources;
/**
* @return Target resources for cost allocation. At this time, this list can contain no more than one element.
*
*/
private @Nullable List targetResources;
private CostAllocationRuleDetailsResponse() {}
/**
* @return Source resources for cost allocation. At this time, this list can contain no more than one element.
*
*/
public List sourceResources() {
return this.sourceResources == null ? List.of() : this.sourceResources;
}
/**
* @return Target resources for cost allocation. At this time, this list can contain no more than one element.
*
*/
public List targetResources() {
return this.targetResources == null ? List.of() : this.targetResources;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CostAllocationRuleDetailsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List sourceResources;
private @Nullable List targetResources;
public Builder() {}
public Builder(CostAllocationRuleDetailsResponse defaults) {
Objects.requireNonNull(defaults);
this.sourceResources = defaults.sourceResources;
this.targetResources = defaults.targetResources;
}
@CustomType.Setter
public Builder sourceResources(@Nullable List sourceResources) {
this.sourceResources = sourceResources;
return this;
}
public Builder sourceResources(SourceCostAllocationResourceResponse... sourceResources) {
return sourceResources(List.of(sourceResources));
}
@CustomType.Setter
public Builder targetResources(@Nullable List targetResources) {
this.targetResources = targetResources;
return this;
}
public Builder targetResources(TargetCostAllocationResourceResponse... targetResources) {
return targetResources(List.of(targetResources));
}
public CostAllocationRuleDetailsResponse build() {
final var _resultValue = new CostAllocationRuleDetailsResponse();
_resultValue.sourceResources = sourceResources;
_resultValue.targetResources = targetResources;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy