com.pulumi.azurenative.network.inputs.SubResource 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.network.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* A reference to a another resource
*
*/
public final class SubResource extends com.pulumi.resources.InvokeArgs {
public static final SubResource Empty = new SubResource();
/**
* Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted.
* An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end.
* A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself.
* Example of a relative ID: $self/frontEndConfigurations/my-frontend.
*
*/
@Import(name="id")
private @Nullable String id;
/**
* @return Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted.
* An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end.
* A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself.
* Example of a relative ID: $self/frontEndConfigurations/my-frontend.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
private SubResource() {}
private SubResource(SubResource $) {
this.id = $.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SubResource defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SubResource $;
public Builder() {
$ = new SubResource();
}
public Builder(SubResource defaults) {
$ = new SubResource(Objects.requireNonNull(defaults));
}
/**
* @param id Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted.
* An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end.
* A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself.
* Example of a relative ID: $self/frontEndConfigurations/my-frontend.
*
* @return builder
*
*/
public Builder id(@Nullable String id) {
$.id = id;
return this;
}
public SubResource build() {
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy