Class GuestPoliciesState.Builder

  • Enclosing class:
    GuestPoliciesState

    public static final class GuestPoliciesState.Builder
    extends java.lang.Object
    • Method Detail

      • assignment

        public GuestPoliciesState.Builder assignment​(@Nullable
                                                     com.pulumi.core.Output<GuestPoliciesAssignmentArgs> assignment)
        Parameters:
        assignment - Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](https://cloud.google.com/compute/docs/os-config-management/create-guest-policy#handle-conflicts). Structure is documented below.
        Returns:
        builder
      • assignment

        public GuestPoliciesState.Builder assignment​(GuestPoliciesAssignmentArgs assignment)
        Parameters:
        assignment - Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](https://cloud.google.com/compute/docs/os-config-management/create-guest-policy#handle-conflicts). Structure is documented below.
        Returns:
        builder
      • createTime

        public GuestPoliciesState.Builder createTime​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> createTime)
        Parameters:
        createTime - Time this guest policy was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
        Returns:
        builder
      • createTime

        public GuestPoliciesState.Builder createTime​(java.lang.String createTime)
        Parameters:
        createTime - Time this guest policy was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
        Returns:
        builder
      • description

        public GuestPoliciesState.Builder description​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the guest policy. Length of the description is limited to 1024 characters.
        Returns:
        builder
      • description

        public GuestPoliciesState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the guest policy. Length of the description is limited to 1024 characters.
        Returns:
        builder
      • etag

        public GuestPoliciesState.Builder etag​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> etag)
        Parameters:
        etag - The etag for this guest policy. If this is provided on update, it must match the server's etag.
        Returns:
        builder
      • etag

        public GuestPoliciesState.Builder etag​(java.lang.String etag)
        Parameters:
        etag - The etag for this guest policy. If this is provided on update, it must match the server's etag.
        Returns:
        builder
      • guestPolicyId

        public GuestPoliciesState.Builder guestPolicyId​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> guestPolicyId)
        Parameters:
        guestPolicyId - The logical name of the guest policy in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
        Returns:
        builder
      • guestPolicyId

        public GuestPoliciesState.Builder guestPolicyId​(java.lang.String guestPolicyId)
        Parameters:
        guestPolicyId - The logical name of the guest policy in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.
        Returns:
        builder
      • name

        public GuestPoliciesState.Builder name​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Unique name of the resource in this project using one of the following forms: projects/{project_number}/guestPolicies/{guestPolicyId}.
        Returns:
        builder
      • name

        public GuestPoliciesState.Builder name​(java.lang.String name)
        Parameters:
        name - Unique name of the resource in this project using one of the following forms: projects/{project_number}/guestPolicies/{guestPolicyId}.
        Returns:
        builder
      • packageRepositories

        public GuestPoliciesState.Builder packageRepositories​(@Nullable
                                                              com.pulumi.core.Output<java.util.List<GuestPoliciesPackageRepositoryArgs>> packageRepositories)
        Parameters:
        packageRepositories - A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
        Returns:
        builder
      • packageRepositories

        public GuestPoliciesState.Builder packageRepositories​(java.util.List<GuestPoliciesPackageRepositoryArgs> packageRepositories)
        Parameters:
        packageRepositories - A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
        Returns:
        builder
      • packageRepositories

        public GuestPoliciesState.Builder packageRepositories​(GuestPoliciesPackageRepositoryArgs... packageRepositories)
        Parameters:
        packageRepositories - A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
        Returns:
        builder
      • updateTime

        public GuestPoliciesState.Builder updateTime​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> updateTime)
        Parameters:
        updateTime - Last time this guest policy was updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
        Returns:
        builder
      • updateTime

        public GuestPoliciesState.Builder updateTime​(java.lang.String updateTime)
        Parameters:
        updateTime - Last time this guest policy was updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
        Returns:
        builder