Class BetaEnvironment

  • All Implemented Interfaces:

    
    public final class BetaEnvironment
    
                        

    Unified Environment resource for both cloud and self-hosted environments.

    • Constructor Detail

    • Method Detail

      • id

         final String id()

        Environment identifier (e.g., 'env_...')

      • archivedAt

         final Optional<String> archivedAt()

        RFC 3339 timestamp when environment was archived, or null if not archived

      • createdAt

         final String createdAt()

        RFC 3339 timestamp when environment was created

      • name

         final String name()

        Human-readable name for the environment

      • updatedAt

         final String updatedAt()

        RFC 3339 timestamp when environment was last updated

      • scope

         final Optional<BetaEnvironment.Scope> scope()

        The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account.

      • _type

         final JsonValue _type()

        The type of object (always 'environment')

        Expected to always return the following:

        JsonValue.from("environment")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _id

         final JsonField<String> _id()

        Returns the raw JSON value of id.

        Unlike id, this method doesn't throw if the JSON field has an unexpected type.

      • _archivedAt

         final JsonField<String> _archivedAt()

        Returns the raw JSON value of archivedAt.

        Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _createdAt

         final JsonField<String> _createdAt()

        Returns the raw JSON value of createdAt.

        Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.

      • _description

         final JsonField<String> _description()

        Returns the raw JSON value of description.

        Unlike description, this method doesn't throw if the JSON field has an unexpected type.

      • _name

         final JsonField<String> _name()

        Returns the raw JSON value of name.

        Unlike name, this method doesn't throw if the JSON field has an unexpected type.

      • _updatedAt

         final JsonField<String> _updatedAt()

        Returns the raw JSON value of updatedAt.

        Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaEnvironment validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.

      • builder

         final static BetaEnvironment.Builder builder()

        Returns a mutable builder for constructing an instance of BetaEnvironment.

        The following fields are required:

        .id()
        .archivedAt()
        .config()
        .createdAt()
        .description()
        .metadata()
        .name()
        .updatedAt()