Package com.pulumi.gcp.compute.inputs
Class GetSnapshotPlainArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.GetSnapshotPlainArgs.Builder
-
- Enclosing class:
- GetSnapshotPlainArgs
public static final class GetSnapshotPlainArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetSnapshotPlainArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSnapshotPlainArgs
build()
GetSnapshotPlainArgs.Builder
filter(java.lang.String filter)
GetSnapshotPlainArgs.Builder
mostRecent(java.lang.Boolean mostRecent)
GetSnapshotPlainArgs.Builder
name(java.lang.String name)
GetSnapshotPlainArgs.Builder
project(java.lang.String project)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetSnapshotPlainArgs defaults)
-
-
Method Detail
-
filter
public GetSnapshotPlainArgs.Builder filter(@Nullable java.lang.String filter)
- Parameters:
filter
- A filter to retrieve the compute snapshot. See [gcloud topic filters](https://cloud.google.com/sdk/gcloud/reference/topic/filters) for reference. If multiple compute snapshot match, either adjust the filter or specify `most_recent`. One of `name` or `filter` must be provided.- Returns:
- builder
-
mostRecent
public GetSnapshotPlainArgs.Builder mostRecent(@Nullable java.lang.Boolean mostRecent)
- Parameters:
mostRecent
- If `filter` is provided, ensures the most recent snapshot is returned when multiple compute snapshot match. ***- Returns:
- builder
-
name
public GetSnapshotPlainArgs.Builder name(@Nullable java.lang.String name)
- Parameters:
name
- The name of the compute snapshot. One of `name` or `filter` must be provided.- Returns:
- builder
-
project
public GetSnapshotPlainArgs.Builder project(@Nullable java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
build
public GetSnapshotPlainArgs build()
-
-