in openstack-poppy/src/main/java/org/jclouds/openstack/poppy/v1/domain/Origin.java [166:190]
public Origin build() {
String missing = "";
if (hostHeaderType == null) {
missing += " hostHeaderType";
}
else {
if (HostHeaderType.CUSTOM.equals(hostHeaderType) && hostHeaderValue == null) {
missing += " hostHeaderValue";
}
}
if (origin == null) {
missing += " origin";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
Origin result = new AutoValue_Origin(
this.hostHeaderType,
this.hostHeaderValue,
this.origin,
this.port,
this.sslEnabled,
rules != null ? ImmutableList.copyOf(this.rules) : null);
return result;
}