com.pulumi.azurenative.workloads.outputs.SingleServerFullResourceNamesResponse 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.VirtualMachineResourceNamesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SingleServerFullResourceNamesResponse {
/**
* @return The pattern type to be used for resource naming.
* Expected value is 'FullResourceName'.
*
*/
private String namingPatternType;
/**
* @return The resource names object for virtual machine and related resources.
*
*/
private @Nullable VirtualMachineResourceNamesResponse virtualMachine;
private SingleServerFullResourceNamesResponse() {}
/**
* @return The pattern type to be used for resource naming.
* Expected value is 'FullResourceName'.
*
*/
public String namingPatternType() {
return this.namingPatternType;
}
/**
* @return The resource names object for virtual machine and related resources.
*
*/
public Optional virtualMachine() {
return Optional.ofNullable(this.virtualMachine);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SingleServerFullResourceNamesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String namingPatternType;
private @Nullable VirtualMachineResourceNamesResponse virtualMachine;
public Builder() {}
public Builder(SingleServerFullResourceNamesResponse defaults) {
Objects.requireNonNull(defaults);
this.namingPatternType = defaults.namingPatternType;
this.virtualMachine = defaults.virtualMachine;
}
@CustomType.Setter
public Builder namingPatternType(String namingPatternType) {
if (namingPatternType == null) {
throw new MissingRequiredPropertyException("SingleServerFullResourceNamesResponse", "namingPatternType");
}
this.namingPatternType = namingPatternType;
return this;
}
@CustomType.Setter
public Builder virtualMachine(@Nullable VirtualMachineResourceNamesResponse virtualMachine) {
this.virtualMachine = virtualMachine;
return this;
}
public SingleServerFullResourceNamesResponse build() {
final var _resultValue = new SingleServerFullResourceNamesResponse();
_resultValue.namingPatternType = namingPatternType;
_resultValue.virtualMachine = virtualMachine;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy