Skip to content

Commit

Permalink
feat(aws-android-sdk-connect): update models to latest (#3165)
Browse files Browse the repository at this point in the history
Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
  • Loading branch information
awsmobilesdk and gpanshu authored Feb 1, 2023
1 parent 7270bbc commit 6761b7d
Show file tree
Hide file tree
Showing 11 changed files with 986 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ public class Contact implements Serializable {
*/
private java.util.Date scheduledTimestamp;

/**
* <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 256<br/>
*/
private String relatedContactId;

/**
* <p>
* The Amazon Resource Name (ARN) for the contact.
Expand Down Expand Up @@ -1003,6 +1015,72 @@ public Contact withScheduledTimestamp(java.util.Date scheduledTimestamp) {
return this;
}

/**
* <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 256<br/>
*
* @return <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
*/
public String getRelatedContactId() {
return relatedContactId;
}

/**
* <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 256<br/>
*
* @param relatedContactId <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
*/
public void setRelatedContactId(String relatedContactId) {
this.relatedContactId = relatedContactId;
}

/**
* <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 256<br/>
*
* @param relatedContactId <p>
* The contactId that is <a href=
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
* >related</a> to this contact.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public Contact withRelatedContactId(String relatedContactId) {
this.relatedContactId = relatedContactId;
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand Down Expand Up @@ -1041,7 +1119,9 @@ public String toString() {
if (getLastUpdateTimestamp() != null)
sb.append("LastUpdateTimestamp: " + getLastUpdateTimestamp() + ",");
if (getScheduledTimestamp() != null)
sb.append("ScheduledTimestamp: " + getScheduledTimestamp());
sb.append("ScheduledTimestamp: " + getScheduledTimestamp() + ",");
if (getRelatedContactId() != null)
sb.append("RelatedContactId: " + getRelatedContactId());
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -1073,6 +1153,8 @@ public int hashCode() {
+ ((getLastUpdateTimestamp() == null) ? 0 : getLastUpdateTimestamp().hashCode());
hashCode = prime * hashCode
+ ((getScheduledTimestamp() == null) ? 0 : getScheduledTimestamp().hashCode());
hashCode = prime * hashCode
+ ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode());
return hashCode;
}

Expand Down Expand Up @@ -1153,6 +1235,11 @@ public boolean equals(Object obj) {
if (other.getScheduledTimestamp() != null
&& other.getScheduledTimestamp().equals(this.getScheduledTimestamp()) == false)
return false;
if (other.getRelatedContactId() == null ^ this.getRelatedContactId() == null)
return false;
if (other.getRelatedContactId() != null
&& other.getRelatedContactId().equals(this.getRelatedContactId()) == false)
return false;
return true;
}
}
Loading

0 comments on commit 6761b7d

Please sign in to comment.