Skip to content

Commit

Permalink
feat(aws-android-sdk-connect): update models to latest (#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Sep 27, 2022
1 parent a1781bd commit c92c996
Show file tree
Hide file tree
Showing 235 changed files with 28,297 additions and 1,547 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class AgentStatus implements Serializable {
/**
* <p>
* The tags used to organize, track, or control access for this resource.
* For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* </p>
*/
private java.util.Map<String, String> tags;
Expand Down Expand Up @@ -543,11 +544,13 @@ public AgentStatus withState(AgentStatusState state) {
/**
* <p>
* The tags used to organize, track, or control access for this resource.
* For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* </p>
*
* @return <p>
* The tags used to organize, track, or control access for this
* resource.
* resource. For example, { "tags": {"key1":"value1",
* "key2":"value2"} }.
* </p>
*/
public java.util.Map<String, String> getTags() {
Expand All @@ -557,11 +560,13 @@ public java.util.Map<String, String> getTags() {
/**
* <p>
* The tags used to organize, track, or control access for this resource.
* For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* </p>
*
* @param tags <p>
* The tags used to organize, track, or control access for this
* resource.
* resource. For example, { "tags": {"key1":"value1",
* "key2":"value2"} }.
* </p>
*/
public void setTags(java.util.Map<String, String> tags) {
Expand All @@ -571,14 +576,16 @@ public void setTags(java.util.Map<String, String> tags) {
/**
* <p>
* The tags used to organize, track, or control access for this resource.
* For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tags <p>
* The tags used to organize, track, or control access for this
* resource.
* resource. For example, { "tags": {"key1":"value1",
* "key2":"value2"} }.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand All @@ -591,6 +598,7 @@ public AgentStatus withTags(java.util.Map<String, String> tags) {
/**
* <p>
* The tags used to organize, track, or control access for this resource.
* For example, { "tags": {"key1":"value1", "key2":"value2"} }.
* </p>
* <p>
* The method adds a new key-value pair into Tags parameter, and returns a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
/*
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

package com.amazonaws.services.connect.model;

import java.io.Serializable;

/**
* <p>
* Information about the agent's status.
* </p>
*/
public class AgentStatusReference implements Serializable {
/**
* <p>
* The start timestamp of the agent's status.
* </p>
*/
private java.util.Date statusStartTimestamp;

/**
* <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
*/
private String statusArn;

/**
* <p>
* The start timestamp of the agent's status.
* </p>
*
* @return <p>
* The start timestamp of the agent's status.
* </p>
*/
public java.util.Date getStatusStartTimestamp() {
return statusStartTimestamp;
}

/**
* <p>
* The start timestamp of the agent's status.
* </p>
*
* @param statusStartTimestamp <p>
* The start timestamp of the agent's status.
* </p>
*/
public void setStatusStartTimestamp(java.util.Date statusStartTimestamp) {
this.statusStartTimestamp = statusStartTimestamp;
}

/**
* <p>
* The start timestamp of the agent's status.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param statusStartTimestamp <p>
* The start timestamp of the agent's status.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public AgentStatusReference withStatusStartTimestamp(java.util.Date statusStartTimestamp) {
this.statusStartTimestamp = statusStartTimestamp;
return this;
}

/**
* <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
*
* @return <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
*/
public String getStatusArn() {
return statusArn;
}

/**
* <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
*
* @param statusArn <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
*/
public void setStatusArn(String statusArn) {
this.statusArn = statusArn;
}

/**
* <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param statusArn <p>
* The Amazon Resource Name (ARN) of the agent's status.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public AgentStatusReference withStatusArn(String statusArn) {
this.statusArn = statusArn;
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getStatusStartTimestamp() != null)
sb.append("StatusStartTimestamp: " + getStatusStartTimestamp() + ",");
if (getStatusArn() != null)
sb.append("StatusArn: " + getStatusArn());
sb.append("}");
return sb.toString();
}

@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;

hashCode = prime * hashCode
+ ((getStatusStartTimestamp() == null) ? 0 : getStatusStartTimestamp().hashCode());
hashCode = prime * hashCode + ((getStatusArn() == null) ? 0 : getStatusArn().hashCode());
return hashCode;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;

if (obj instanceof AgentStatusReference == false)
return false;
AgentStatusReference other = (AgentStatusReference) obj;

if (other.getStatusStartTimestamp() == null ^ this.getStatusStartTimestamp() == null)
return false;
if (other.getStatusStartTimestamp() != null
&& other.getStatusStartTimestamp().equals(this.getStatusStartTimestamp()) == false)
return false;
if (other.getStatusArn() == null ^ this.getStatusArn() == null)
return false;
if (other.getStatusArn() != null
&& other.getStatusArn().equals(this.getStatusArn()) == false)
return false;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

/**
* <p>
* Associates a contact flow with a phone number claimed to your Amazon Connect
* Associates a flow with a phone number claimed to your Amazon Connect
* instance.
* </p>
*/
Expand All @@ -47,7 +47,7 @@ public class AssociatePhoneNumberContactFlowRequest extends AmazonWebServiceRequ

/**
* <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
* <p>
* <b>Constraints:</b><br/>
Expand Down Expand Up @@ -162,14 +162,14 @@ public AssociatePhoneNumberContactFlowRequest withInstanceId(String instanceId)

/**
* <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 500<br/>
*
* @return <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
*/
public String getContactFlowId() {
Expand All @@ -178,14 +178,14 @@ public String getContactFlowId() {

/**
* <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 500<br/>
*
* @param contactFlowId <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
*/
public void setContactFlowId(String contactFlowId) {
Expand All @@ -194,7 +194,7 @@ public void setContactFlowId(String contactFlowId) {

/**
* <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
Expand All @@ -204,7 +204,7 @@ public void setContactFlowId(String contactFlowId) {
* <b>Length: </b> - 500<br/>
*
* @param contactFlowId <p>
* The identifier of the contact flow.
* The identifier of the flow.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand Down
Loading

0 comments on commit c92c996

Please sign in to comment.