Skip to content

Commit

Permalink
feat(aws-android-sdk-connect): update models to latest (#3235)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Apr 13, 2023
1 parent 2c6e785 commit bc32b8d
Show file tree
Hide file tree
Showing 9 changed files with 634 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright 2010-2023 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.util.HashMap;
import java.util.Map;

/**
* Behavior Type
*/
public enum BehaviorType {

ROUTE_CURRENT_CHANNEL_ONLY("ROUTE_CURRENT_CHANNEL_ONLY"),
ROUTE_ANY_CHANNEL("ROUTE_ANY_CHANNEL");

private String value;

private BehaviorType(String value) {
this.value = value;
}

@Override
public String toString() {
return value;
}

private static final Map<String, BehaviorType> enumMap;
static {
enumMap = new HashMap<String, BehaviorType>();
enumMap.put("ROUTE_CURRENT_CHANNEL_ONLY", ROUTE_CURRENT_CHANNEL_ONLY);
enumMap.put("ROUTE_ANY_CHANNEL", ROUTE_ANY_CHANNEL);
}

/**
* Use this in place of valueOf.
*
* @param value real value
* @return BehaviorType corresponding to the value
*/
public static BehaviorType fromValue(String value) {
if (value == null || value.isEmpty()) {
throw new IllegalArgumentException("Value cannot be null or empty!");
} else if (enumMap.containsKey(value)) {
return enumMap.get(value);
} else {
throw new IllegalArgumentException("Cannot create enum from " + value + " value!");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public class ChatMessage implements Serializable {
/**
* <p>
* The type of the content. Supported types are <code>text/plain</code>,
* <code>text/markdown</code>, and <code>application/json</code>.
* <code>text/markdown</code>, <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -51,6 +53,13 @@ public class ChatMessage implements Serializable {
* 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -61,16 +70,20 @@ public class ChatMessage implements Serializable {
/**
* <p>
* The type of the content. Supported types are <code>text/plain</code>,
* <code>text/markdown</code>, and <code>application/json</code>.
* <code>text/markdown</code>, <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 100<br/>
*
* @return <p>
* The type of the content. Supported types are
* <code>text/plain</code>, <code>text/markdown</code>, and
* <code>application/json</code>.
* <code>text/plain</code>, <code>text/markdown</code>,
* <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
*/
public String getContentType() {
Expand All @@ -80,16 +93,20 @@ public String getContentType() {
/**
* <p>
* The type of the content. Supported types are <code>text/plain</code>,
* <code>text/markdown</code>, and <code>application/json</code>.
* <code>text/markdown</code>, <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 100<br/>
*
* @param contentType <p>
* The type of the content. Supported types are
* <code>text/plain</code>, <code>text/markdown</code>, and
* <code>application/json</code>.
* <code>text/plain</code>, <code>text/markdown</code>,
* <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
*/
public void setContentType(String contentType) {
Expand All @@ -99,7 +116,9 @@ public void setContentType(String contentType) {
/**
* <p>
* The type of the content. Supported types are <code>text/plain</code>,
* <code>text/markdown</code>, and <code>application/json</code>.
* <code>text/markdown</code>, <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
Expand All @@ -110,8 +129,10 @@ public void setContentType(String contentType) {
*
* @param contentType <p>
* The type of the content. Supported types are
* <code>text/plain</code>, <code>text/markdown</code>, and
* <code>application/json</code>.
* <code>text/plain</code>, <code>text/markdown</code>,
* <code>application/json</code>, and
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* .
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand All @@ -138,6 +159,13 @@ public ChatMessage withContentType(String contentType) {
* 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -159,6 +187,13 @@ public ChatMessage withContentType(String contentType) {
* Minimum of 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
*/
public String getContent() {
Expand All @@ -182,6 +217,13 @@ public String getContent() {
* 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -203,6 +245,13 @@ public String getContent() {
* Minimum of 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
*/
public void setContent(String content) {
Expand All @@ -226,6 +275,13 @@ public void setContent(String content) {
* 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
* <p>
* Returns a reference to this object so that method calls can be chained
Expand All @@ -250,6 +306,13 @@ public void setContent(String content) {
* Minimum of 1, Maximum of 12000.
* </p>
* </li>
* <li>
* <p>
* For
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
* , the Length Constraints are Minimum of 1, Maximum of 12288.
* </p>
* </li>
* </ul>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand Down
Loading

0 comments on commit bc32b8d

Please sign in to comment.