
com.pulumi.azurenative.containerinstance.outputs.GetNGroupResult 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.containerinstance.outputs;
import com.pulumi.azurenative.containerinstance.outputs.ContainerGroupProfileStubResponse;
import com.pulumi.azurenative.containerinstance.outputs.ElasticProfileResponse;
import com.pulumi.azurenative.containerinstance.outputs.NGroupIdentityResponse;
import com.pulumi.azurenative.containerinstance.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetNGroupResult {
/**
* @return The Container Group Profiles that could be used in a nGroup.
*
*/
private @Nullable List containerGroupProfiles;
/**
* @return The elastic profile.
*
*/
private @Nullable ElasticProfileResponse elasticProfile;
/**
* @return The resource id.
*
*/
private String id;
/**
* @return The identity of the nGroup, if configured.
*
*/
private @Nullable NGroupIdentityResponse identity;
/**
* @return The resource location.
*
*/
private @Nullable String location;
/**
* @return The resource name.
*
*/
private String name;
/**
* @return The provisioning state, which only appears in the response.
*
*/
private String provisioningState;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The resource type.
*
*/
private String type;
/**
* @return The zones for the container group.
*
*/
private @Nullable List zones;
private GetNGroupResult() {}
/**
* @return The Container Group Profiles that could be used in a nGroup.
*
*/
public List containerGroupProfiles() {
return this.containerGroupProfiles == null ? List.of() : this.containerGroupProfiles;
}
/**
* @return The elastic profile.
*
*/
public Optional elasticProfile() {
return Optional.ofNullable(this.elasticProfile);
}
/**
* @return The resource id.
*
*/
public String id() {
return this.id;
}
/**
* @return The identity of the nGroup, if configured.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return The resource location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state, which only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return The zones for the container group.
*
*/
public List zones() {
return this.zones == null ? List.of() : this.zones;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List containerGroupProfiles;
private @Nullable ElasticProfileResponse elasticProfile;
private String id;
private @Nullable NGroupIdentityResponse identity;
private @Nullable String location;
private String name;
private String provisioningState;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable List zones;
public Builder() {}
public Builder(GetNGroupResult defaults) {
Objects.requireNonNull(defaults);
this.containerGroupProfiles = defaults.containerGroupProfiles;
this.elasticProfile = defaults.elasticProfile;
this.id = defaults.id;
this.identity = defaults.identity;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.zones = defaults.zones;
}
@CustomType.Setter
public Builder containerGroupProfiles(@Nullable List containerGroupProfiles) {
this.containerGroupProfiles = containerGroupProfiles;
return this;
}
public Builder containerGroupProfiles(ContainerGroupProfileStubResponse... containerGroupProfiles) {
return containerGroupProfiles(List.of(containerGroupProfiles));
}
@CustomType.Setter
public Builder elasticProfile(@Nullable ElasticProfileResponse elasticProfile) {
this.elasticProfile = elasticProfile;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetNGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable NGroupIdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetNGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetNGroupResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetNGroupResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetNGroupResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder zones(@Nullable List zones) {
this.zones = zones;
return this;
}
public Builder zones(String... zones) {
return zones(List.of(zones));
}
public GetNGroupResult build() {
final var _resultValue = new GetNGroupResult();
_resultValue.containerGroupProfiles = containerGroupProfiles;
_resultValue.elasticProfile = elasticProfile;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.zones = zones;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy