Package com.enonic.xp.service

## Class ServiceDescriptor.Builder

- java.lang.Object
- - com.enonic.xp.service.ServiceDescriptor.Builder

- Enclosing class:
    ServiceDescriptor

      public static final class ServiceDescriptor.Builder
      extends Object

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ServiceDescriptor` | `build()` |
    `ServiceDescriptor.Builder` | `key​(DescriptorKey key)` |
    `ServiceDescriptor.Builder` | `setAllowedPrincipals​(Collection<PrincipalKey> allowedPrincipals)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### key

          public ServiceDescriptor.Builder key​(DescriptorKey key)

    - #### setAllowedPrincipals

          public ServiceDescriptor.Builder setAllowedPrincipals​(Collection<PrincipalKey> allowedPrincipals)

    - #### build

          public ServiceDescriptor build()