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.ResourcePolicyArgs 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.ResourcePolicyDiskConsistencyGroupPolicyArgs;
import com.pulumi.googlenative.compute.alpha.inputs.ResourcePolicyGroupPlacementPolicyArgs;
import com.pulumi.googlenative.compute.alpha.inputs.ResourcePolicyInstanceSchedulePolicyArgs;
import com.pulumi.googlenative.compute.alpha.inputs.ResourcePolicySnapshotSchedulePolicyArgs;
import com.pulumi.googlenative.compute.alpha.inputs.ResourcePolicyVmMaintenancePolicyArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class ResourcePolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final ResourcePolicyArgs Empty = new ResourcePolicyArgs();
@Import(name="description")
private @Nullable Output description;
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* Resource policy for disk consistency groups.
*
*/
@Import(name="diskConsistencyGroupPolicy")
private @Nullable Output diskConsistencyGroupPolicy;
/**
* @return Resource policy for disk consistency groups.
*
*/
public Optional> diskConsistencyGroupPolicy() {
return Optional.ofNullable(this.diskConsistencyGroupPolicy);
}
/**
* Resource policy for instances for placement configuration.
*
*/
@Import(name="groupPlacementPolicy")
private @Nullable Output groupPlacementPolicy;
/**
* @return Resource policy for instances for placement configuration.
*
*/
public Optional> groupPlacementPolicy() {
return Optional.ofNullable(this.groupPlacementPolicy);
}
/**
* Resource policy for scheduling instance operations.
*
*/
@Import(name="instanceSchedulePolicy")
private @Nullable Output instanceSchedulePolicy;
/**
* @return Resource policy for scheduling instance operations.
*
*/
public Optional> instanceSchedulePolicy() {
return Optional.ofNullable(this.instanceSchedulePolicy);
}
/**
* The name of the resource, provided by the client when initially creating the resource. The resource 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 The name of the resource, provided by the client when initially creating the resource. The resource 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);
}
@Import(name="project")
private @Nullable Output project;
public Optional> project() {
return Optional.ofNullable(this.project);
}
@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);
}
/**
* Resource policy for persistent disks for creating snapshots.
*
*/
@Import(name="snapshotSchedulePolicy")
private @Nullable Output snapshotSchedulePolicy;
/**
* @return Resource policy for persistent disks for creating snapshots.
*
*/
public Optional> snapshotSchedulePolicy() {
return Optional.ofNullable(this.snapshotSchedulePolicy);
}
/**
* Resource policy applicable to VMs for infrastructure maintenance.
*
*/
@Import(name="vmMaintenancePolicy")
private @Nullable Output vmMaintenancePolicy;
/**
* @return Resource policy applicable to VMs for infrastructure maintenance.
*
*/
public Optional> vmMaintenancePolicy() {
return Optional.ofNullable(this.vmMaintenancePolicy);
}
private ResourcePolicyArgs() {}
private ResourcePolicyArgs(ResourcePolicyArgs $) {
this.description = $.description;
this.diskConsistencyGroupPolicy = $.diskConsistencyGroupPolicy;
this.groupPlacementPolicy = $.groupPlacementPolicy;
this.instanceSchedulePolicy = $.instanceSchedulePolicy;
this.name = $.name;
this.project = $.project;
this.region = $.region;
this.requestId = $.requestId;
this.snapshotSchedulePolicy = $.snapshotSchedulePolicy;
this.vmMaintenancePolicy = $.vmMaintenancePolicy;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourcePolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ResourcePolicyArgs $;
public Builder() {
$ = new ResourcePolicyArgs();
}
public Builder(ResourcePolicyArgs defaults) {
$ = new ResourcePolicyArgs(Objects.requireNonNull(defaults));
}
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param diskConsistencyGroupPolicy Resource policy for disk consistency groups.
*
* @return builder
*
*/
public Builder diskConsistencyGroupPolicy(@Nullable Output diskConsistencyGroupPolicy) {
$.diskConsistencyGroupPolicy = diskConsistencyGroupPolicy;
return this;
}
/**
* @param diskConsistencyGroupPolicy Resource policy for disk consistency groups.
*
* @return builder
*
*/
public Builder diskConsistencyGroupPolicy(ResourcePolicyDiskConsistencyGroupPolicyArgs diskConsistencyGroupPolicy) {
return diskConsistencyGroupPolicy(Output.of(diskConsistencyGroupPolicy));
}
/**
* @param groupPlacementPolicy Resource policy for instances for placement configuration.
*
* @return builder
*
*/
public Builder groupPlacementPolicy(@Nullable Output groupPlacementPolicy) {
$.groupPlacementPolicy = groupPlacementPolicy;
return this;
}
/**
* @param groupPlacementPolicy Resource policy for instances for placement configuration.
*
* @return builder
*
*/
public Builder groupPlacementPolicy(ResourcePolicyGroupPlacementPolicyArgs groupPlacementPolicy) {
return groupPlacementPolicy(Output.of(groupPlacementPolicy));
}
/**
* @param instanceSchedulePolicy Resource policy for scheduling instance operations.
*
* @return builder
*
*/
public Builder instanceSchedulePolicy(@Nullable Output instanceSchedulePolicy) {
$.instanceSchedulePolicy = instanceSchedulePolicy;
return this;
}
/**
* @param instanceSchedulePolicy Resource policy for scheduling instance operations.
*
* @return builder
*
*/
public Builder instanceSchedulePolicy(ResourcePolicyInstanceSchedulePolicyArgs instanceSchedulePolicy) {
return instanceSchedulePolicy(Output.of(instanceSchedulePolicy));
}
/**
* @param name The name of the resource, provided by the client when initially creating the resource. The resource 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 The name of the resource, provided by the client when initially creating the resource. The resource 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));
}
public Builder project(@Nullable Output project) {
$.project = project;
return this;
}
public Builder project(String project) {
return project(Output.of(project));
}
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));
}
/**
* @param snapshotSchedulePolicy Resource policy for persistent disks for creating snapshots.
*
* @return builder
*
*/
public Builder snapshotSchedulePolicy(@Nullable Output snapshotSchedulePolicy) {
$.snapshotSchedulePolicy = snapshotSchedulePolicy;
return this;
}
/**
* @param snapshotSchedulePolicy Resource policy for persistent disks for creating snapshots.
*
* @return builder
*
*/
public Builder snapshotSchedulePolicy(ResourcePolicySnapshotSchedulePolicyArgs snapshotSchedulePolicy) {
return snapshotSchedulePolicy(Output.of(snapshotSchedulePolicy));
}
/**
* @param vmMaintenancePolicy Resource policy applicable to VMs for infrastructure maintenance.
*
* @return builder
*
*/
public Builder vmMaintenancePolicy(@Nullable Output vmMaintenancePolicy) {
$.vmMaintenancePolicy = vmMaintenancePolicy;
return this;
}
/**
* @param vmMaintenancePolicy Resource policy applicable to VMs for infrastructure maintenance.
*
* @return builder
*
*/
public Builder vmMaintenancePolicy(ResourcePolicyVmMaintenancePolicyArgs vmMaintenancePolicy) {
return vmMaintenancePolicy(Output.of(vmMaintenancePolicy));
}
public ResourcePolicyArgs build() {
$.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null");
return $;
}
}
}