com.pulumi.azurenative.azurestack.outputs.GetRegistrationResult 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.azurestack.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetRegistrationResult {
/**
* @return Specifies the billing mode for the Azure Stack registration.
*
*/
private @Nullable String billingModel;
/**
* @return The identifier of the registered Azure Stack.
*
*/
private @Nullable String cloudId;
/**
* @return The entity tag used for optimistic concurrency when modifying the resource.
*
*/
private @Nullable String etag;
/**
* @return ID of the resource.
*
*/
private String id;
/**
* @return Location of the resource.
*
*/
private String location;
/**
* @return Name of the resource.
*
*/
private String name;
/**
* @return The object identifier associated with the Azure Stack connecting to Azure.
*
*/
private @Nullable String objectId;
/**
* @return Custom tags for the resource.
*
*/
private @Nullable Map tags;
/**
* @return Type of Resource.
*
*/
private String type;
private GetRegistrationResult() {}
/**
* @return Specifies the billing mode for the Azure Stack registration.
*
*/
public Optional billingModel() {
return Optional.ofNullable(this.billingModel);
}
/**
* @return The identifier of the registered Azure Stack.
*
*/
public Optional cloudId() {
return Optional.ofNullable(this.cloudId);
}
/**
* @return The entity tag used for optimistic concurrency when modifying the resource.
*
*/
public Optional etag() {
return Optional.ofNullable(this.etag);
}
/**
* @return ID of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Location of the resource.
*
*/
public String location() {
return this.location;
}
/**
* @return Name of the resource.
*
*/
public String name() {
return this.name;
}
/**
* @return The object identifier associated with the Azure Stack connecting to Azure.
*
*/
public Optional objectId() {
return Optional.ofNullable(this.objectId);
}
/**
* @return Custom tags for the resource.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Type of Resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRegistrationResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String billingModel;
private @Nullable String cloudId;
private @Nullable String etag;
private String id;
private String location;
private String name;
private @Nullable String objectId;
private @Nullable Map tags;
private String type;
public Builder() {}
public Builder(GetRegistrationResult defaults) {
Objects.requireNonNull(defaults);
this.billingModel = defaults.billingModel;
this.cloudId = defaults.cloudId;
this.etag = defaults.etag;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.objectId = defaults.objectId;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder billingModel(@Nullable String billingModel) {
this.billingModel = billingModel;
return this;
}
@CustomType.Setter
public Builder cloudId(@Nullable String cloudId) {
this.cloudId = cloudId;
return this;
}
@CustomType.Setter
public Builder etag(@Nullable String etag) {
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRegistrationResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetRegistrationResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetRegistrationResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder objectId(@Nullable String objectId) {
this.objectId = objectId;
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("GetRegistrationResult", "type");
}
this.type = type;
return this;
}
public GetRegistrationResult build() {
final var _resultValue = new GetRegistrationResult();
_resultValue.billingModel = billingModel;
_resultValue.cloudId = cloudId;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.objectId = objectId;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy