Class PolicyState.Builder

  • Enclosing class:
    PolicyState

    public static final class PolicyState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public PolicyState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, "projects/123/policies/compute.disableSerialPortAccess". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
        Returns:
        builder
      • name

        public PolicyState.Builder name​(java.lang.String name)
        Parameters:
        name - Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, "projects/123/policies/compute.disableSerialPortAccess". Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
        Returns:
        builder
      • parent

        public PolicyState.Builder parent​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> parent)
        Parameters:
        parent - The parent of the resource. ***
        Returns:
        builder
      • parent

        public PolicyState.Builder parent​(java.lang.String parent)
        Parameters:
        parent - The parent of the resource. ***
        Returns:
        builder
      • spec

        public PolicyState.Builder spec​(@Nullable
                                        com.pulumi.core.Output<PolicySpecArgs> spec)
        Parameters:
        spec - Basic information about the Organization Policy.
        Returns:
        builder