com.pulumi.azurenative.resources.inputs.GetResourceArgs 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.resources.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetResourceArgs extends com.pulumi.resources.InvokeArgs {
public static final GetResourceArgs Empty = new GetResourceArgs();
/**
* The parent resource identity.
*
*/
@Import(name="parentResourcePath", required=true)
private Output parentResourcePath;
/**
* @return The parent resource identity.
*
*/
public Output parentResourcePath() {
return this.parentResourcePath;
}
/**
* The name of the resource group containing the resource to get. The name is case insensitive.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The name of the resource group containing the resource to get. The name is case insensitive.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* The name of the resource to get.
*
*/
@Import(name="resourceName", required=true)
private Output resourceName;
/**
* @return The name of the resource to get.
*
*/
public Output resourceName() {
return this.resourceName;
}
/**
* The namespace of the resource provider.
*
*/
@Import(name="resourceProviderNamespace", required=true)
private Output resourceProviderNamespace;
/**
* @return The namespace of the resource provider.
*
*/
public Output resourceProviderNamespace() {
return this.resourceProviderNamespace;
}
/**
* The resource type of the resource.
*
*/
@Import(name="resourceType", required=true)
private Output resourceType;
/**
* @return The resource type of the resource.
*
*/
public Output resourceType() {
return this.resourceType;
}
private GetResourceArgs() {}
private GetResourceArgs(GetResourceArgs $) {
this.parentResourcePath = $.parentResourcePath;
this.resourceGroupName = $.resourceGroupName;
this.resourceName = $.resourceName;
this.resourceProviderNamespace = $.resourceProviderNamespace;
this.resourceType = $.resourceType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetResourceArgs $;
public Builder() {
$ = new GetResourceArgs();
}
public Builder(GetResourceArgs defaults) {
$ = new GetResourceArgs(Objects.requireNonNull(defaults));
}
/**
* @param parentResourcePath The parent resource identity.
*
* @return builder
*
*/
public Builder parentResourcePath(Output parentResourcePath) {
$.parentResourcePath = parentResourcePath;
return this;
}
/**
* @param parentResourcePath The parent resource identity.
*
* @return builder
*
*/
public Builder parentResourcePath(String parentResourcePath) {
return parentResourcePath(Output.of(parentResourcePath));
}
/**
* @param resourceGroupName The name of the resource group containing the resource to get. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The name of the resource group containing the resource to get. The name is case insensitive.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
/**
* @param resourceName The name of the resource to get.
*
* @return builder
*
*/
public Builder resourceName(Output resourceName) {
$.resourceName = resourceName;
return this;
}
/**
* @param resourceName The name of the resource to get.
*
* @return builder
*
*/
public Builder resourceName(String resourceName) {
return resourceName(Output.of(resourceName));
}
/**
* @param resourceProviderNamespace The namespace of the resource provider.
*
* @return builder
*
*/
public Builder resourceProviderNamespace(Output resourceProviderNamespace) {
$.resourceProviderNamespace = resourceProviderNamespace;
return this;
}
/**
* @param resourceProviderNamespace The namespace of the resource provider.
*
* @return builder
*
*/
public Builder resourceProviderNamespace(String resourceProviderNamespace) {
return resourceProviderNamespace(Output.of(resourceProviderNamespace));
}
/**
* @param resourceType The resource type of the resource.
*
* @return builder
*
*/
public Builder resourceType(Output resourceType) {
$.resourceType = resourceType;
return this;
}
/**
* @param resourceType The resource type of the resource.
*
* @return builder
*
*/
public Builder resourceType(String resourceType) {
return resourceType(Output.of(resourceType));
}
public GetResourceArgs build() {
if ($.parentResourcePath == null) {
throw new MissingRequiredPropertyException("GetResourceArgs", "parentResourcePath");
}
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("GetResourceArgs", "resourceGroupName");
}
if ($.resourceName == null) {
throw new MissingRequiredPropertyException("GetResourceArgs", "resourceName");
}
if ($.resourceProviderNamespace == null) {
throw new MissingRequiredPropertyException("GetResourceArgs", "resourceProviderNamespace");
}
if ($.resourceType == null) {
throw new MissingRequiredPropertyException("GetResourceArgs", "resourceType");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy