Skip to content

Commit 6761b7d

Browse files
feat(aws-android-sdk-connect): update models to latest (#3165)
Co-authored-by: gpanshu <[email protected]>
1 parent 7270bbc commit 6761b7d

11 files changed

+986
-3
lines changed

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/Contact.java

Lines changed: 88 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,18 @@ public class Contact implements Serializable {
153153
*/
154154
private java.util.Date scheduledTimestamp;
155155

156+
/**
157+
* <p>
158+
* The contactId that is <a href=
159+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
160+
* >related</a> to this contact.
161+
* </p>
162+
* <p>
163+
* <b>Constraints:</b><br/>
164+
* <b>Length: </b>1 - 256<br/>
165+
*/
166+
private String relatedContactId;
167+
156168
/**
157169
* <p>
158170
* The Amazon Resource Name (ARN) for the contact.
@@ -1003,6 +1015,72 @@ public Contact withScheduledTimestamp(java.util.Date scheduledTimestamp) {
10031015
return this;
10041016
}
10051017

1018+
/**
1019+
* <p>
1020+
* The contactId that is <a href=
1021+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1022+
* >related</a> to this contact.
1023+
* </p>
1024+
* <p>
1025+
* <b>Constraints:</b><br/>
1026+
* <b>Length: </b>1 - 256<br/>
1027+
*
1028+
* @return <p>
1029+
* The contactId that is <a href=
1030+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1031+
* >related</a> to this contact.
1032+
* </p>
1033+
*/
1034+
public String getRelatedContactId() {
1035+
return relatedContactId;
1036+
}
1037+
1038+
/**
1039+
* <p>
1040+
* The contactId that is <a href=
1041+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1042+
* >related</a> to this contact.
1043+
* </p>
1044+
* <p>
1045+
* <b>Constraints:</b><br/>
1046+
* <b>Length: </b>1 - 256<br/>
1047+
*
1048+
* @param relatedContactId <p>
1049+
* The contactId that is <a href=
1050+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1051+
* >related</a> to this contact.
1052+
* </p>
1053+
*/
1054+
public void setRelatedContactId(String relatedContactId) {
1055+
this.relatedContactId = relatedContactId;
1056+
}
1057+
1058+
/**
1059+
* <p>
1060+
* The contactId that is <a href=
1061+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1062+
* >related</a> to this contact.
1063+
* </p>
1064+
* <p>
1065+
* Returns a reference to this object so that method calls can be chained
1066+
* together.
1067+
* <p>
1068+
* <b>Constraints:</b><br/>
1069+
* <b>Length: </b>1 - 256<br/>
1070+
*
1071+
* @param relatedContactId <p>
1072+
* The contactId that is <a href=
1073+
* "https://docs.aws.amazon.com/connect/latest/adminguide/chat-persistence.html#relatedcontactid"
1074+
* >related</a> to this contact.
1075+
* </p>
1076+
* @return A reference to this updated object so that method calls can be
1077+
* chained together.
1078+
*/
1079+
public Contact withRelatedContactId(String relatedContactId) {
1080+
this.relatedContactId = relatedContactId;
1081+
return this;
1082+
}
1083+
10061084
/**
10071085
* Returns a string representation of this object; useful for testing and
10081086
* debugging.
@@ -1041,7 +1119,9 @@ public String toString() {
10411119
if (getLastUpdateTimestamp() != null)
10421120
sb.append("LastUpdateTimestamp: " + getLastUpdateTimestamp() + ",");
10431121
if (getScheduledTimestamp() != null)
1044-
sb.append("ScheduledTimestamp: " + getScheduledTimestamp());
1122+
sb.append("ScheduledTimestamp: " + getScheduledTimestamp() + ",");
1123+
if (getRelatedContactId() != null)
1124+
sb.append("RelatedContactId: " + getRelatedContactId());
10451125
sb.append("}");
10461126
return sb.toString();
10471127
}
@@ -1073,6 +1153,8 @@ public int hashCode() {
10731153
+ ((getLastUpdateTimestamp() == null) ? 0 : getLastUpdateTimestamp().hashCode());
10741154
hashCode = prime * hashCode
10751155
+ ((getScheduledTimestamp() == null) ? 0 : getScheduledTimestamp().hashCode());
1156+
hashCode = prime * hashCode
1157+
+ ((getRelatedContactId() == null) ? 0 : getRelatedContactId().hashCode());
10761158
return hashCode;
10771159
}
10781160

@@ -1153,6 +1235,11 @@ public boolean equals(Object obj) {
11531235
if (other.getScheduledTimestamp() != null
11541236
&& other.getScheduledTimestamp().equals(this.getScheduledTimestamp()) == false)
11551237
return false;
1238+
if (other.getRelatedContactId() == null ^ this.getRelatedContactId() == null)
1239+
return false;
1240+
if (other.getRelatedContactId() != null
1241+
&& other.getRelatedContactId().equals(this.getRelatedContactId()) == false)
1242+
return false;
11561243
return true;
11571244
}
11581245
}

0 commit comments

Comments
 (0)