Skip to content

Commit

Permalink
feat(aws-android-sdk-cognitoidentityprovider): update models to latest (
Browse files Browse the repository at this point in the history
#2984)

Co-authored-by: Tyler Roach <tjroach@amazon.com>
  • Loading branch information
awsmobilesdk and tylerjroach authored Aug 19, 2022
1 parent f94bed1 commit 157fd45
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public class AuthEventType implements Serializable {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*/
private String eventType;

Expand All @@ -53,7 +54,7 @@ public class AuthEventType implements Serializable {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*/
private String eventResponse;

Expand Down Expand Up @@ -139,7 +140,8 @@ public AuthEventType withEventId(String eventId) {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*
* @return <p>
* The event type.
Expand All @@ -156,7 +158,8 @@ public String getEventType() {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*
* @param eventType <p>
* The event type.
Expand All @@ -176,7 +179,8 @@ public void setEventType(String eventType) {
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*
* @param eventType <p>
* The event type.
Expand All @@ -196,7 +200,8 @@ public AuthEventType withEventType(String eventType) {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*
* @param eventType <p>
* The event type.
Expand All @@ -216,7 +221,8 @@ public void setEventType(EventType eventType) {
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword
* <b>Allowed Values: </b>SignIn, SignUp, ForgotPassword, PasswordChange,
* ResendCode
*
* @param eventType <p>
* The event type.
Expand Down Expand Up @@ -281,7 +287,7 @@ public AuthEventType withCreationDate(java.util.Date creationDate) {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*
* @return <p>
* The event response.
Expand All @@ -298,7 +304,7 @@ public String getEventResponse() {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*
* @param eventResponse <p>
* The event response.
Expand All @@ -318,7 +324,7 @@ public void setEventResponse(String eventResponse) {
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*
* @param eventResponse <p>
* The event response.
Expand All @@ -338,7 +344,7 @@ public AuthEventType withEventResponse(String eventResponse) {
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*
* @param eventResponse <p>
* The event response.
Expand All @@ -358,7 +364,7 @@ public void setEventResponse(EventResponseType eventResponse) {
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Allowed Values: </b>Success, Failure
* <b>Allowed Values: </b>Pass, Fail, InProgress
*
* @param eventResponse <p>
* The event response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
*/
public enum EventResponseType {

Success("Success"),
Failure("Failure");
Pass("Pass"),
Fail("Fail"),
InProgress("InProgress");

private String value;

Expand All @@ -40,8 +41,9 @@ public String toString() {
private static final Map<String, EventResponseType> enumMap;
static {
enumMap = new HashMap<String, EventResponseType>();
enumMap.put("Success", Success);
enumMap.put("Failure", Failure);
enumMap.put("Pass", Pass);
enumMap.put("Fail", Fail);
enumMap.put("InProgress", InProgress);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public enum EventType {

SignIn("SignIn"),
SignUp("SignUp"),
ForgotPassword("ForgotPassword");
ForgotPassword("ForgotPassword"),
PasswordChange("PasswordChange"),
ResendCode("ResendCode");

private String value;

Expand All @@ -44,6 +46,8 @@ public String toString() {
enumMap.put("SignIn", SignIn);
enumMap.put("SignUp", SignUp);
enumMap.put("ForgotPassword", ForgotPassword);
enumMap.put("PasswordChange", PasswordChange);
enumMap.put("ResendCode", ResendCode);
}

/**
Expand Down

0 comments on commit 157fd45

Please sign in to comment.