Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.googlenative.compute.alpha.PublicDelegatedPrefixArgs 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.googlenative.compute.alpha;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.compute.alpha.inputs.PublicDelegatedPrefixPublicDelegatedSubPrefixArgs;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class PublicDelegatedPrefixArgs extends com.pulumi.resources.ResourceArgs {
public static final PublicDelegatedPrefixArgs Empty = new PublicDelegatedPrefixArgs();
/**
* An optional description of this resource. Provide this property when you create the resource.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return An optional description of this resource. Provide this property when you create the resource.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
*/
@Import(name="ipCidrRange")
private @Nullable Output ipCidrRange;
/**
* @return The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
*/
public Optional> ipCidrRange() {
return Optional.ofNullable(this.ipCidrRange);
}
/**
* If true, the prefix will be live migrated.
*
*/
@Import(name="isLiveMigration")
private @Nullable Output isLiveMigration;
/**
* @return If true, the prefix will be live migrated.
*
*/
public Optional> isLiveMigration() {
return Optional.ofNullable(this.isLiveMigration);
}
/**
* Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
*/
@Import(name="parentPrefix")
private @Nullable Output parentPrefix;
/**
* @return The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
*/
public Optional> parentPrefix() {
return Optional.ofNullable(this.parentPrefix);
}
@Import(name="project")
private @Nullable Output project;
public Optional> project() {
return Optional.ofNullable(this.project);
}
/**
* The list of sub public delegated prefixes that exist for this public delegated prefix.
*
*/
@Import(name="publicDelegatedSubPrefixs")
private @Nullable Output> publicDelegatedSubPrefixs;
/**
* @return The list of sub public delegated prefixes that exist for this public delegated prefix.
*
*/
public Optional>> publicDelegatedSubPrefixs() {
return Optional.ofNullable(this.publicDelegatedSubPrefixs);
}
@Import(name="region", required=true)
private Output region;
public Output region() {
return this.region;
}
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
@Import(name="requestId")
private @Nullable Output requestId;
/**
* @return An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
*/
public Optional> requestId() {
return Optional.ofNullable(this.requestId);
}
private PublicDelegatedPrefixArgs() {}
private PublicDelegatedPrefixArgs(PublicDelegatedPrefixArgs $) {
this.description = $.description;
this.ipCidrRange = $.ipCidrRange;
this.isLiveMigration = $.isLiveMigration;
this.name = $.name;
this.parentPrefix = $.parentPrefix;
this.project = $.project;
this.publicDelegatedSubPrefixs = $.publicDelegatedSubPrefixs;
this.region = $.region;
this.requestId = $.requestId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PublicDelegatedPrefixArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private PublicDelegatedPrefixArgs $;
public Builder() {
$ = new PublicDelegatedPrefixArgs();
}
public Builder(PublicDelegatedPrefixArgs defaults) {
$ = new PublicDelegatedPrefixArgs(Objects.requireNonNull(defaults));
}
/**
* @param description An optional description of this resource. Provide this property when you create the resource.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description An optional description of this resource. Provide this property when you create the resource.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param ipCidrRange The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
* @return builder
*
*/
public Builder ipCidrRange(@Nullable Output ipCidrRange) {
$.ipCidrRange = ipCidrRange;
return this;
}
/**
* @param ipCidrRange The IPv4 address range, in CIDR format, represented by this public delegated prefix.
*
* @return builder
*
*/
public Builder ipCidrRange(String ipCidrRange) {
return ipCidrRange(Output.of(ipCidrRange));
}
/**
* @param isLiveMigration If true, the prefix will be live migrated.
*
* @return builder
*
*/
public Builder isLiveMigration(@Nullable Output isLiveMigration) {
$.isLiveMigration = isLiveMigration;
return this;
}
/**
* @param isLiveMigration If true, the prefix will be live migrated.
*
* @return builder
*
*/
public Builder isLiveMigration(Boolean isLiveMigration) {
return isLiveMigration(Output.of(isLiveMigration));
}
/**
* @param name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param parentPrefix The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
* @return builder
*
*/
public Builder parentPrefix(@Nullable Output parentPrefix) {
$.parentPrefix = parentPrefix;
return this;
}
/**
* @param parentPrefix The URL of parent prefix. Either PublicAdvertisedPrefix or PublicDelegatedPrefix.
*
* @return builder
*
*/
public Builder parentPrefix(String parentPrefix) {
return parentPrefix(Output.of(parentPrefix));
}
public Builder project(@Nullable Output project) {
$.project = project;
return this;
}
public Builder project(String project) {
return project(Output.of(project));
}
/**
* @param publicDelegatedSubPrefixs The list of sub public delegated prefixes that exist for this public delegated prefix.
*
* @return builder
*
*/
public Builder publicDelegatedSubPrefixs(@Nullable Output> publicDelegatedSubPrefixs) {
$.publicDelegatedSubPrefixs = publicDelegatedSubPrefixs;
return this;
}
/**
* @param publicDelegatedSubPrefixs The list of sub public delegated prefixes that exist for this public delegated prefix.
*
* @return builder
*
*/
public Builder publicDelegatedSubPrefixs(List publicDelegatedSubPrefixs) {
return publicDelegatedSubPrefixs(Output.of(publicDelegatedSubPrefixs));
}
/**
* @param publicDelegatedSubPrefixs The list of sub public delegated prefixes that exist for this public delegated prefix.
*
* @return builder
*
*/
public Builder publicDelegatedSubPrefixs(PublicDelegatedPrefixPublicDelegatedSubPrefixArgs... publicDelegatedSubPrefixs) {
return publicDelegatedSubPrefixs(List.of(publicDelegatedSubPrefixs));
}
public Builder region(Output region) {
$.region = region;
return this;
}
public Builder region(String region) {
return region(Output.of(region));
}
/**
* @param requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(@Nullable Output requestId) {
$.requestId = requestId;
return this;
}
/**
* @param requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*
* @return builder
*
*/
public Builder requestId(String requestId) {
return requestId(Output.of(requestId));
}
public PublicDelegatedPrefixArgs build() {
$.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null");
return $;
}
}
}