/** * Creates a Builder by copying an existing Builder. * @param other The existing Builder to copy. */ private Builder(com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder other) { super(other); if (isValidValue(fields()[0], other.clusterProperties)) { this.clusterProperties = data().deepCopy(fields()[0].schema(), other.clusterProperties); fieldSetFlags()[0] = true; } }
@Override @SuppressWarnings("unchecked") public ClusterValue build() { try { ClusterValue record = new ClusterValue(); record.clusterProperties = fieldSetFlags()[0] ? this.clusterProperties : (java.util.Map<java.lang.String,java.lang.String>) defaultValue(fields()[0]); return record; } catch (java.lang.Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** * Clears the value of the 'clusterProperties' field. * * cluster properties ex: bootstrap.servers, schema.registry.url, etc... * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder clearClusterProperties() { clusterProperties = null; fieldSetFlags()[0] = false; return this; }
/** * Checks whether the 'clusterProperties' field has been set. * * cluster properties ex: bootstrap.servers, schema.registry.url, etc... * @return True if the 'clusterProperties' field has been set, false otherwise. */ public boolean hasClusterProperties() { return fieldSetFlags()[0]; }
/** * Sets the value of the 'clusterProperties' field. * * cluster properties ex: bootstrap.servers, schema.registry.url, etc... * @param value The value of 'clusterProperties'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder setClusterProperties(java.util.Map<java.lang.String,java.lang.String> value) { validate(fields()[0], value); this.clusterProperties = value; fieldSetFlags()[0] = true; return this; }
/** * Creates a new ClusterValue RecordBuilder by copying an existing ClusterValue instance. * @param other The existing instance to copy. * @return A new ClusterValue RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder newBuilder(com.homeaway.digitalplatform.streamregistry.ClusterValue other) { return new com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder(other); }
/** * Creates a new ClusterValue RecordBuilder. * @return A new ClusterValue RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder newBuilder() { return new com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder(); }
/** * Creates a new ClusterValue RecordBuilder by copying an existing Builder. * @param other The existing builder to copy. * @return A new ClusterValue RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder newBuilder(com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder other) { return new com.homeaway.digitalplatform.streamregistry.ClusterValue.Builder(other); }
/** * Creates a Builder by copying an existing ClusterValue instance * @param other The existing instance to copy. */ private Builder(com.homeaway.digitalplatform.streamregistry.ClusterValue other) { super(SCHEMA$); if (isValidValue(fields()[0], other.clusterProperties)) { this.clusterProperties = data().deepCopy(fields()[0].schema(), other.clusterProperties); fieldSetFlags()[0] = true; } }