/** * Sets the value of the CustomDomainConfig property for this object. * * This is a convenience that creates an instance of the {@link CustomDomainConfigType.Builder} avoiding the * need to create one manually via {@link CustomDomainConfigType#builder()}. * * When the {@link Consumer} completes, {@link CustomDomainConfigType.Builder#build()} is called immediately and * its result is passed to {@link #customDomainConfig(CustomDomainConfigType)}. * * @param customDomainConfig * a consumer that will call methods on {@link CustomDomainConfigType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #customDomainConfig(CustomDomainConfigType) */ default Builder customDomainConfig(Consumer<CustomDomainConfigType.Builder> customDomainConfig) { return customDomainConfig(CustomDomainConfigType.builder().applyMutation(customDomainConfig).build()); } }