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); } } }
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)) {
/** * 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; }
/** * Clears the value of the 'properties' field. * * Properties related to Region Replicator * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearProperties() { properties = null; fieldSetFlags()[7] = false; return this; }
/** * Checks whether the 'properties' field has been set. * * Properties related to Region Replicator * @return True if the 'properties' field has been set, false otherwise. */ public boolean hasProperties() { return fieldSetFlags()[7]; }
/** * Checks whether the 'src_cluster' field has been set. * * Source Cluster for Region Replicator * @return True if the 'src_cluster' field has been set, false otherwise. */ public boolean hasSrcCluster() { return fieldSetFlags()[3]; }
/** * Clears the value of the 'dest_region' field. * * Destination Region for Region Replicator * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearDestRegion() { dest_region = null; fieldSetFlags()[2] = false; return this; }
/** * Creates a new RegionReplicator RecordBuilder. * @return A new RegionReplicator RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder newBuilder() { return new com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder(); }
/** * Checks whether the 'status' field has been set. * * Region Replicator Status * ex: NOT_DEPLOYED, CREATING_DEPLOYMENT, DEPLOYED, DEPLOYMENT_RED, DELETING_DEPLOYMENT, DELETED * @return True if the 'status' field has been set, false otherwise. */ public boolean hasStatus() { return fieldSetFlags()[6]; }
/** * Clears the value of the 'dest_cluster' field. * * Dest cluster for Region Replicator * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearDestCluster() { dest_cluster = null; fieldSetFlags()[4] = false; return this; }
/** * Checks whether the 'dest_cluster' field has been set. * * Dest cluster for Region Replicator * @return True if the 'dest_cluster' field has been set, false otherwise. */ public boolean hasDestCluster() { return fieldSetFlags()[4]; }
/** * Creates a new RegionReplicator RecordBuilder by copying an existing RegionReplicator instance. * @param other The existing instance to copy. * @return A new RegionReplicator RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder newBuilder(com.homeaway.digitalplatform.streamregistry.RegionReplicator other) { return new com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder(other); }
/** * Creates a new RegionReplicator RecordBuilder by copying an existing Builder. * @param other The existing builder to copy. * @return A new RegionReplicator RecordBuilder */ public static com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder newBuilder(com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder other) { return new com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder(other); }
/** * 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; }
/** * Clears the value of the 'status' field. * * Region Replicator Status * ex: NOT_DEPLOYED, CREATING_DEPLOYMENT, DEPLOYED, DEPLOYMENT_RED, DELETING_DEPLOYMENT, DELETED * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearStatus() { status = null; fieldSetFlags()[6] = false; return this; }
/** * Clears the value of the 'src_region' field. * * Source Region for Region Replicator * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearSrcRegion() { src_region = null; fieldSetFlags()[1] = false; return this; }
/** * Clears the value of the 'appName' field. * * This is the application name of the region replicator deployment * @return This builder. */ public com.homeaway.digitalplatform.streamregistry.RegionReplicator.Builder clearAppName() { appName = null; fieldSetFlags()[0] = false; 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; }