Class GetSnapshotPlainArgs.Builder

  • Enclosing class:
    GetSnapshotPlainArgs

    public static final class GetSnapshotPlainArgs.Builder
    extends java.lang.Object
    • 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