private ResourceType(Builder builder){
  this.uuid=builder.uuid;
  this.name=builder.name;
  this.description=builder.description;
  this.patterns=Collections.unmodifiableSet(builder.patterns);
  this.actions=Collections.unmodifiableMap(builder.actions);
  this.createdBy=builder.createdBy;
  this.creationDate=builder.creationDate;
  this.lastModifiedBy=builder.lastModifiedBy;
  this.lastModifiedDate=builder.lastModifiedDate;
}

private ResourceType ( Builder builder ) { this . uuid = builder . uuid ; this . name = builder . name ; this . description = builder . description ; this . patterns = Collections . unmodifiableSet ( builder . patterns ) ; this . actions = Collections . unmodifiableMap ( builder . actions ) ; this . createdBy = builder . createdBy ; this . creationDate = builder . creationDate ; this . lastModifiedBy = builder . lastModifiedBy ; this . lastModifiedDate = builder . lastModifiedDate ; }
construct a resourcetype with the given builder .
