Class Building.Builder

  • Enclosing class:
    Building

    public static class Building.Builder
    extends java.lang.Object
    Builder to create a Building instance
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(Building building)
    • Method Detail

      • userIdentifier

        @NonNull
        public Building.Builder userIdentifier​(@NonNull
                                               java.lang.String userIdentifier)
        Parameters:
        userIdentifier - identifier of the user that owns the building
        Returns:
        current Building.Builder instance
      • name

        @NonNull
        public Building.Builder name​(@NonNull
                                     java.lang.String name)
        Parameters:
        name - name for the building that is appropriate for display to the user
        Returns:
        current Building.Builder instance
      • address

        @NonNull
        public Building.Builder address​(@NonNull
                                        java.lang.String address)
        Parameters:
        address - building address.
        Returns:
        current Building.Builder instance
      • infoHtml

        @NonNull
        public Building.Builder infoHtml​(@NonNull
                                         java.lang.String infoHtml)
        Parameters:
        infoHtml - additional information about the building, formatted with HTML.
        Returns:
        current Building.Builder instance
      • rotation

        @NonNull
        public Building.Builder rotation​(@NonNull
                                         Angle rotation)
        Parameters:
        rotation - rotation angle of the building's base, relative to the west-east axis.
        Returns:
        current Building.Builder instance
      • dimensions

        @NonNull
        public Building.Builder dimensions​(@NonNull
                                           Dimensions dimensions)
        Parameters:
        dimensions - dimensions of building's base (height and width) in meters
        Returns:
        current Building.Builder instance
      • pictureThumbUrl

        @NonNull
        public Building.Builder pictureThumbUrl​(@NonNull
                                                URL pictureThumbUrl)
        Parameters:
        pictureThumbUrl -
        Returns:
        current Building.Builder instance