com.pulumi.azurenative.migrate.inputs.HypervLicenseArgs 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.migrate.inputs;
import com.pulumi.azurenative.migrate.enums.HyperVLicenseType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
/**
* Representation of a licence.
*
*/
public final class HypervLicenseArgs extends com.pulumi.resources.ResourceArgs {
public static final HypervLicenseArgs Empty = new HypervLicenseArgs();
/**
* Cost of a licence.
*
*/
@Import(name="licenseCost", required=true)
private Output licenseCost;
/**
* @return Cost of a licence.
*
*/
public Output licenseCost() {
return this.licenseCost;
}
/**
* HyperV licence type.
*
*/
@Import(name="licenseType", required=true)
private Output> licenseType;
/**
* @return HyperV licence type.
*
*/
public Output> licenseType() {
return this.licenseType;
}
private HypervLicenseArgs() {}
private HypervLicenseArgs(HypervLicenseArgs $) {
this.licenseCost = $.licenseCost;
this.licenseType = $.licenseType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HypervLicenseArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private HypervLicenseArgs $;
public Builder() {
$ = new HypervLicenseArgs();
}
public Builder(HypervLicenseArgs defaults) {
$ = new HypervLicenseArgs(Objects.requireNonNull(defaults));
}
/**
* @param licenseCost Cost of a licence.
*
* @return builder
*
*/
public Builder licenseCost(Output licenseCost) {
$.licenseCost = licenseCost;
return this;
}
/**
* @param licenseCost Cost of a licence.
*
* @return builder
*
*/
public Builder licenseCost(Double licenseCost) {
return licenseCost(Output.of(licenseCost));
}
/**
* @param licenseType HyperV licence type.
*
* @return builder
*
*/
public Builder licenseType(Output> licenseType) {
$.licenseType = licenseType;
return this;
}
/**
* @param licenseType HyperV licence type.
*
* @return builder
*
*/
public Builder licenseType(Either licenseType) {
return licenseType(Output.of(licenseType));
}
/**
* @param licenseType HyperV licence type.
*
* @return builder
*
*/
public Builder licenseType(String licenseType) {
return licenseType(Either.ofLeft(licenseType));
}
/**
* @param licenseType HyperV licence type.
*
* @return builder
*
*/
public Builder licenseType(HyperVLicenseType licenseType) {
return licenseType(Either.ofRight(licenseType));
}
public HypervLicenseArgs build() {
if ($.licenseCost == null) {
throw new MissingRequiredPropertyException("HypervLicenseArgs", "licenseCost");
}
if ($.licenseType == null) {
throw new MissingRequiredPropertyException("HypervLicenseArgs", "licenseType");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy