Class OrganizationPolicyState.Builder

  • Enclosing class:
    OrganizationPolicyState

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

      • constraint

        public OrganizationPolicyState.Builder constraint​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> constraint)
        Parameters:
        constraint - The name of the Constraint the Policy is configuring, for example, `serviceuser.services`. Check out the [complete list of available constraints](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-constraints#available_constraints). ***
        Returns:
        builder
      • constraint

        public OrganizationPolicyState.Builder constraint​(java.lang.String constraint)
        Parameters:
        constraint - The name of the Constraint the Policy is configuring, for example, `serviceuser.services`. Check out the [complete list of available constraints](https://cloud.google.com/resource-manager/docs/organization-policy/understanding-constraints#available_constraints). ***
        Returns:
        builder
      • etag

        public OrganizationPolicyState.Builder etag​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> etag)
        Parameters:
        etag - (Computed) The etag of the organization policy. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.
        Returns:
        builder
      • etag

        public OrganizationPolicyState.Builder etag​(java.lang.String etag)
        Parameters:
        etag - (Computed) The etag of the organization policy. `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.
        Returns:
        builder
      • listPolicy

        public OrganizationPolicyState.Builder listPolicy​(@Nullable
                                                          com.pulumi.core.Output<OrganizationPolicyListPolicyArgs> listPolicy)
        Parameters:
        listPolicy - A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.
        Returns:
        builder
      • listPolicy

        public OrganizationPolicyState.Builder listPolicy​(OrganizationPolicyListPolicyArgs listPolicy)
        Parameters:
        listPolicy - A policy that can define specific values that are allowed or denied for the given constraint. It can also be used to allow or deny all values. Structure is documented below.
        Returns:
        builder
      • project

        public OrganizationPolicyState.Builder project​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The project id of the project to set the policy for.
        Returns:
        builder
      • project

        public OrganizationPolicyState.Builder project​(java.lang.String project)
        Parameters:
        project - The project id of the project to set the policy for.
        Returns:
        builder
      • restorePolicy

        public OrganizationPolicyState.Builder restorePolicy​(@Nullable
                                                             com.pulumi.core.Output<OrganizationPolicyRestorePolicyArgs> restorePolicy)
        Parameters:
        restorePolicy - A restore policy is a constraint to restore the default policy. Structure is documented below. > **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will effectively be unset. This is represented in the UI as the constraint being 'Inherited'. ***
        Returns:
        builder
      • restorePolicy

        public OrganizationPolicyState.Builder restorePolicy​(OrganizationPolicyRestorePolicyArgs restorePolicy)
        Parameters:
        restorePolicy - A restore policy is a constraint to restore the default policy. Structure is documented below. > **Note:** If none of [`boolean_policy`, `list_policy`, `restore_policy`] are defined the policy for a given constraint will effectively be unset. This is represented in the UI as the constraint being 'Inherited'. ***
        Returns:
        builder
      • updateTime

        public OrganizationPolicyState.Builder updateTime​(@Nullable
                                                          com.pulumi.core.Output<java.lang.String> updateTime)
        Parameters:
        updateTime - (Computed) The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
        Returns:
        builder
      • updateTime

        public OrganizationPolicyState.Builder updateTime​(java.lang.String updateTime)
        Parameters:
        updateTime - (Computed) The timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds, representing when the variable was last updated. Example: "2016-10-09T12:33:37.578138407Z".
        Returns:
        builder
      • version

        public OrganizationPolicyState.Builder version​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Integer> version)
        Parameters:
        version - Version of the Policy. Default version is 0.
        Returns:
        builder
      • version

        public OrganizationPolicyState.Builder version​(java.lang.Integer version)
        Parameters:
        version - Version of the Policy. Default version is 0.
        Returns:
        builder