
com.pulumi.azurenative.hybridcompute.outputs.GetLicenseProfileResult 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.hybridcompute.outputs;
import com.pulumi.azurenative.hybridcompute.outputs.EsuKeyResponse;
import com.pulumi.azurenative.hybridcompute.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 GetLicenseProfileResult {
/**
* @return The resource id of the license.
*
*/
private @Nullable String assignedLicense;
/**
* @return The guid id of the license.
*
*/
private String assignedLicenseImmutableId;
/**
* @return Indicates the eligibility state of Esu.
*
*/
private String esuEligibility;
/**
* @return Indicates whether there is an ESU Key currently active for the machine.
*
*/
private String esuKeyState;
/**
* @return The list of ESU keys.
*
*/
private List esuKeys;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The provisioning state, which only appears in the response.
*
*/
private String provisioningState;
/**
* @return The type of the Esu servers.
*
*/
private String serverType;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
private SystemDataResponse systemData;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetLicenseProfileResult() {}
/**
* @return The resource id of the license.
*
*/
public Optional assignedLicense() {
return Optional.ofNullable(this.assignedLicense);
}
/**
* @return The guid id of the license.
*
*/
public String assignedLicenseImmutableId() {
return this.assignedLicenseImmutableId;
}
/**
* @return Indicates the eligibility state of Esu.
*
*/
public String esuEligibility() {
return this.esuEligibility;
}
/**
* @return Indicates whether there is an ESU Key currently active for the machine.
*
*/
public String esuKeyState() {
return this.esuKeyState;
}
/**
* @return The list of ESU keys.
*
*/
public List esuKeys() {
return this.esuKeys;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state, which only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The type of the Esu servers.
*
*/
public String serverType() {
return this.serverType;
}
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLicenseProfileResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String assignedLicense;
private String assignedLicenseImmutableId;
private String esuEligibility;
private String esuKeyState;
private List esuKeys;
private String id;
private String location;
private String name;
private String provisioningState;
private String serverType;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
public Builder() {}
public Builder(GetLicenseProfileResult defaults) {
Objects.requireNonNull(defaults);
this.assignedLicense = defaults.assignedLicense;
this.assignedLicenseImmutableId = defaults.assignedLicenseImmutableId;
this.esuEligibility = defaults.esuEligibility;
this.esuKeyState = defaults.esuKeyState;
this.esuKeys = defaults.esuKeys;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.serverType = defaults.serverType;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder assignedLicense(@Nullable String assignedLicense) {
this.assignedLicense = assignedLicense;
return this;
}
@CustomType.Setter
public Builder assignedLicenseImmutableId(String assignedLicenseImmutableId) {
if (assignedLicenseImmutableId == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "assignedLicenseImmutableId");
}
this.assignedLicenseImmutableId = assignedLicenseImmutableId;
return this;
}
@CustomType.Setter
public Builder esuEligibility(String esuEligibility) {
if (esuEligibility == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "esuEligibility");
}
this.esuEligibility = esuEligibility;
return this;
}
@CustomType.Setter
public Builder esuKeyState(String esuKeyState) {
if (esuKeyState == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "esuKeyState");
}
this.esuKeyState = esuKeyState;
return this;
}
@CustomType.Setter
public Builder esuKeys(List esuKeys) {
if (esuKeys == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "esuKeys");
}
this.esuKeys = esuKeys;
return this;
}
public Builder esuKeys(EsuKeyResponse... esuKeys) {
return esuKeys(List.of(esuKeys));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder serverType(String serverType) {
if (serverType == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "serverType");
}
this.serverType = serverType;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetLicenseProfileResult", "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("GetLicenseProfileResult", "type");
}
this.type = type;
return this;
}
public GetLicenseProfileResult build() {
final var _resultValue = new GetLicenseProfileResult();
_resultValue.assignedLicense = assignedLicense;
_resultValue.assignedLicenseImmutableId = assignedLicenseImmutableId;
_resultValue.esuEligibility = esuEligibility;
_resultValue.esuKeyState = esuKeyState;
_resultValue.esuKeys = esuKeys;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.serverType = serverType;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy