
com.pulumi.azurenative.awsconnector.outputs.OriginGroupsResponse 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.awsconnector.outputs;
import com.pulumi.azurenative.awsconnector.outputs.OriginGroupResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OriginGroupsResponse {
/**
* @return The items (origin groups) in a distribution.
*
*/
private @Nullable List items;
/**
* @return The number of origin groups.
*
*/
private @Nullable Integer quantity;
private OriginGroupsResponse() {}
/**
* @return The items (origin groups) in a distribution.
*
*/
public List items() {
return this.items == null ? List.of() : this.items;
}
/**
* @return The number of origin groups.
*
*/
public Optional quantity() {
return Optional.ofNullable(this.quantity);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OriginGroupsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List items;
private @Nullable Integer quantity;
public Builder() {}
public Builder(OriginGroupsResponse defaults) {
Objects.requireNonNull(defaults);
this.items = defaults.items;
this.quantity = defaults.quantity;
}
@CustomType.Setter
public Builder items(@Nullable List items) {
this.items = items;
return this;
}
public Builder items(OriginGroupResponse... items) {
return items(List.of(items));
}
@CustomType.Setter
public Builder quantity(@Nullable Integer quantity) {
this.quantity = quantity;
return this;
}
public OriginGroupsResponse build() {
final var _resultValue = new OriginGroupsResponse();
_resultValue.items = items;
_resultValue.quantity = quantity;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy