if (isValidValue(fields()[0], other.appName)) { this.appName = data().deepCopy(fields()[0].schema(), other.appName); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.src_region)) { this.src_region = data().deepCopy(fields()[1].schema(), other.src_region); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.dest_region)) { this.dest_region = data().deepCopy(fields()[2].schema(), other.dest_region); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.src_cluster)) { this.src_cluster = data().deepCopy(fields()[3].schema(), other.src_cluster); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.dest_cluster)) { this.dest_cluster = data().deepCopy(fields()[4].schema(), other.dest_cluster); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.topic)) { this.topic = data().deepCopy(fields()[5].schema(), other.topic); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.status)) { this.status = data().deepCopy(fields()[6].schema(), other.status); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.properties)) {
if (isValidValue(fields()[0], other.appName)) { this.appName = data().deepCopy(fields()[0].schema(), other.appName); fieldSetFlags()[0] = true; if (isValidValue(fields()[1], other.src_region)) { this.src_region = data().deepCopy(fields()[1].schema(), other.src_region); fieldSetFlags()[1] = true; if (isValidValue(fields()[2], other.dest_region)) { this.dest_region = data().deepCopy(fields()[2].schema(), other.dest_region); fieldSetFlags()[2] = true; if (isValidValue(fields()[3], other.src_cluster)) { this.src_cluster = data().deepCopy(fields()[3].schema(), other.src_cluster); fieldSetFlags()[3] = true; if (isValidValue(fields()[4], other.dest_cluster)) { this.dest_cluster = data().deepCopy(fields()[4].schema(), other.dest_cluster); fieldSetFlags()[4] = true; if (isValidValue(fields()[5], other.topic)) { this.topic = data().deepCopy(fields()[5].schema(), other.topic); fieldSetFlags()[5] = true; if (isValidValue(fields()[6], other.status)) { this.status = data().deepCopy(fields()[6].schema(), other.status); fieldSetFlags()[6] = true; if (isValidValue(fields()[7], other.properties)) {
@Override @SuppressWarnings("unchecked") public RegionReplicator build() { try { RegionReplicator record = new RegionReplicator(); record.appName = fieldSetFlags()[0] ? this.appName : (java.lang.String) defaultValue(fields()[0]); record.src_region = fieldSetFlags()[1] ? this.src_region : (java.lang.String) defaultValue(fields()[1]); record.dest_region = fieldSetFlags()[2] ? this.dest_region : (java.lang.String) defaultValue(fields()[2]); record.src_cluster = fieldSetFlags()[3] ? this.src_cluster : (java.lang.String) defaultValue(fields()[3]); record.dest_cluster = fieldSetFlags()[4] ? this.dest_cluster : (java.lang.String) defaultValue(fields()[4]); record.topic = fieldSetFlags()[5] ? this.topic : (java.lang.String) defaultValue(fields()[5]); record.status = fieldSetFlags()[6] ? this.status : (java.lang.String) defaultValue(fields()[6]); record.properties = fieldSetFlags()[7] ? this.properties : (java.util.Map<java.lang.String,java.lang.String>) defaultValue(fields()[7]); return record; } catch (java.lang.Exception e) { throw new org.apache.avro.AvroRuntimeException(e); } } }
/** * Sets the value of the 'status' field. * * Region Replicator Status * ex: NOT_DEPLOYED, CREATING_DEPLOYMENT, DEPLOYED, DEPLOYMENT_RED, DELETING_DEPLOYMENT, DELETED * @param value The value of 'status'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setStatus(java.lang.String value) { validate(fields()[6], value); this.status = value; fieldSetFlags()[6] = true; return this; }
/** * Sets the value of the 'properties' field. * * Properties related to Region Replicator * @param value The value of 'properties'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setProperties(java.util.Map<java.lang.String,java.lang.String> value) { validate(fields()[7], value); this.properties = value; fieldSetFlags()[7] = true; return this; }
/** * Sets the value of the 'dest_region' field. * * Destination Region for Region Replicator * @param value The value of 'dest_region'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setDestRegion(java.lang.String value) { validate(fields()[2], value); this.dest_region = value; fieldSetFlags()[2] = true; return this; }
/** * Sets the value of the 'topic' field. * * Region Replicator Source Topic Name * @param value The value of 'topic'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setTopic(java.lang.String value) { validate(fields()[5], value); this.topic = value; fieldSetFlags()[5] = true; return this; }
/** * Sets the value of the 'src_region' field. * * Source Region for Region Replicator * @param value The value of 'src_region'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setSrcRegion(java.lang.String value) { validate(fields()[1], value); this.src_region = value; fieldSetFlags()[1] = true; return this; }
/** * Sets the value of the 'src_cluster' field. * * Source Cluster for Region Replicator * @param value The value of 'src_cluster'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setSrcCluster(java.lang.String value) { validate(fields()[3], value); this.src_cluster = value; fieldSetFlags()[3] = true; return this; }
/** * Sets the value of the 'appName' field. * * This is the application name of the region replicator deployment * @param value The value of 'appName'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setAppName(java.lang.String value) { validate(fields()[0], value); this.appName = value; fieldSetFlags()[0] = true; return this; }
/** * Sets the value of the 'dest_cluster' field. * * Dest cluster for Region Replicator * @param value The value of 'dest_cluster'. * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder setDestCluster(java.lang.String value) { validate(fields()[4], value); this.dest_cluster = value; fieldSetFlags()[4] = true; return this; }