com.pulumi.azurenative.operationalinsights.outputs.GetLinkedServiceResult 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.operationalinsights.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 GetLinkedServiceResult {
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The provisioning state of the linked service.
*
*/
private @Nullable String provisioningState;
/**
* @return The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
*
*/
private @Nullable String resourceId;
/**
* @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;
/**
* @return The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
*
*/
private @Nullable String writeAccessResourceId;
private GetLinkedServiceResult() {}
/**
* @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 name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state of the linked service.
*
*/
public Optional provisioningState() {
return Optional.ofNullable(this.provisioningState);
}
/**
* @return The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
*
*/
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
/**
* @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;
}
/**
* @return The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
*
*/
public Optional writeAccessResourceId() {
return Optional.ofNullable(this.writeAccessResourceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLinkedServiceResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String name;
private @Nullable String provisioningState;
private @Nullable String resourceId;
private @Nullable Map tags;
private String type;
private @Nullable String writeAccessResourceId;
public Builder() {}
public Builder(GetLinkedServiceResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.resourceId = defaults.resourceId;
this.tags = defaults.tags;
this.type = defaults.type;
this.writeAccessResourceId = defaults.writeAccessResourceId;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLinkedServiceResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetLinkedServiceResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(@Nullable String provisioningState) {
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
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("GetLinkedServiceResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder writeAccessResourceId(@Nullable String writeAccessResourceId) {
this.writeAccessResourceId = writeAccessResourceId;
return this;
}
public GetLinkedServiceResult build() {
final var _resultValue = new GetLinkedServiceResult();
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.resourceId = resourceId;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.writeAccessResourceId = writeAccessResourceId;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy