package com.google.sps.data;

public final class OpportunitySignup {
  private String opportunityId;
  private String email;

  public static class Builder {
    // Required parameters
    private String opportunityId;
    private String email;

    public Builder(String opportunityId, String email) {
      this.opportunityId = opportunityId;
      this.email = email;
    }

    public Builder setOpportunityId(String opportunityId) {
      this.opportunityId = opportunityId;
      return this;
    }

    public Builder setEmail(String email) {
      this.email = email;
      return this;
    }

    public VolunteeringOpportunity build() {
      return new VolunteeringOpportunity(this);
    }

    public Builder mergeFrom(VolunteeringOpportunity other) {
      this.opportunityId = other.getOpportunityId();
      this.email = other.getEmail();
      return this;
    }
  }

  private OpportunitySignup(Builder builder) {
    opportunityId = builder.opportunityId;
    email = builder.email;
  }

  public String getOpportunityId() {
    return this.opportunityId;
  }

  public String getEmail() {
    return this.name;
  }

  public Builder toBuilder() {
    return new Builder(this.opportunityId, this.email).mergeFrom(this);
  }

  @Override
  public String toString() {
    return String.format("Name: %s\nEmail: %d\n", this.name, this.email);
  }
}

@@ -606,28 +606,16 @@
  public 
-Volunteering
 Opportun
@@ -617,16 +617,22 @@
 ortunity
+Signup
  build()
@@ -651,28 +651,16 @@
 urn new 
-Volunteering
 Opportun
@@ -662,16 +662,22 @@
 ortunity
+Signup
 (this);%0A
@@ -716,20 +716,8 @@
 rom(
-Volunteering
 Oppo
@@ -723,16 +723,22 @@
 ortunity
+Signup
  other) 
@@ -1099,20 +1099,21 @@
 rn this.
-name
+email
 ;%0A  %7D%0A%0A 
@@ -1290,19 +1290,28 @@
 at(%22
-Name
+opportunityId
 : %25s%5Cn
-E
+e
 mail
@@ -1328,12 +1328,21 @@
 his.
-name
+opportunityId
 , th

Add opportunity signup class.