
com.pulumi.azurenative.network.outputs.ServiceAssociationLinkResponse Maven / Gradle / Ivy
// *** 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceAssociationLinkResponse {
/**
* @return If true, the resource can be deleted.
*
*/
private @Nullable Boolean allowDelete;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Link to the external resource.
*
*/
private @Nullable String link;
/**
* @return Resource type of the linked resource.
*
*/
private @Nullable String linkedResourceType;
/**
* @return A list of locations.
*
*/
private @Nullable List locations;
/**
* @return Name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
private @Nullable String name;
/**
* @return The provisioning state of the service association link resource.
*
*/
private String provisioningState;
/**
* @return Resource type.
*
*/
private String type;
private ServiceAssociationLinkResponse() {}
/**
* @return If true, the resource can be deleted.
*
*/
public Optional allowDelete() {
return Optional.ofNullable(this.allowDelete);
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Link to the external resource.
*
*/
public Optional link() {
return Optional.ofNullable(this.link);
}
/**
* @return Resource type of the linked resource.
*
*/
public Optional linkedResourceType() {
return Optional.ofNullable(this.linkedResourceType);
}
/**
* @return A list of locations.
*
*/
public List locations() {
return this.locations == null ? List.of() : this.locations;
}
/**
* @return Name of the resource that is unique within a resource group. This name can be used to access the resource.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The provisioning state of the service association link resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceAssociationLinkResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean allowDelete;
private String etag;
private @Nullable String id;
private @Nullable String link;
private @Nullable String linkedResourceType;
private @Nullable List locations;
private @Nullable String name;
private String provisioningState;
private String type;
public Builder() {}
public Builder(ServiceAssociationLinkResponse defaults) {
Objects.requireNonNull(defaults);
this.allowDelete = defaults.allowDelete;
this.etag = defaults.etag;
this.id = defaults.id;
this.link = defaults.link;
this.linkedResourceType = defaults.linkedResourceType;
this.locations = defaults.locations;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.type = defaults.type;
}
@CustomType.Setter
public Builder allowDelete(@Nullable Boolean allowDelete) {
this.allowDelete = allowDelete;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("ServiceAssociationLinkResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder link(@Nullable String link) {
this.link = link;
return this;
}
@CustomType.Setter
public Builder linkedResourceType(@Nullable String linkedResourceType) {
this.linkedResourceType = linkedResourceType;
return this;
}
@CustomType.Setter
public Builder locations(@Nullable List locations) {
this.locations = locations;
return this;
}
public Builder locations(String... locations) {
return locations(List.of(locations));
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ServiceAssociationLinkResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ServiceAssociationLinkResponse", "type");
}
this.type = type;
return this;
}
public ServiceAssociationLinkResponse build() {
final var _resultValue = new ServiceAssociationLinkResponse();
_resultValue.allowDelete = allowDelete;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.link = link;
_resultValue.linkedResourceType = linkedResourceType;
_resultValue.locations = locations;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy