Skip to content

Commit 3ef36ea

Browse files
feat(aws-android-sdk-cognitoidentityprovider): update models to latest (#2996)
Co-authored-by: Divyesh Chitroda <[email protected]>
1 parent 6efcaf9 commit 3ef36ea

File tree

11 files changed

+695
-221
lines changed

11 files changed

+695
-221
lines changed

aws-android-sdk-cognitoidentityprovider/src/main/java/com/amazonaws/services/cognitoidentityprovider/model/CreateUserPoolClientRequest.java

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,19 @@ public class CreateUserPoolClientRequest extends AmazonWebServiceRequest impleme
457457
*/
458458
private Boolean enablePropagateAdditionalUserContextData;
459459

460+
/**
461+
* <p>
462+
* Amazon Cognito creates a session token for each API request in an
463+
* authentication flow. <code>AuthSessionValidity</code> is the duration, in
464+
* minutes, of that session token. Your user pool native user must respond
465+
* to each authentication challenge before the session expires.
466+
* </p>
467+
* <p>
468+
* <b>Constraints:</b><br/>
469+
* <b>Range: </b>3 - 15<br/>
470+
*/
471+
private Integer authSessionValidity;
472+
460473
/**
461474
* <p>
462475
* The user pool ID for the user pool where you want to create a user pool
@@ -3821,6 +3834,81 @@ public CreateUserPoolClientRequest withEnablePropagateAdditionalUserContextData(
38213834
return this;
38223835
}
38233836

3837+
/**
3838+
* <p>
3839+
* Amazon Cognito creates a session token for each API request in an
3840+
* authentication flow. <code>AuthSessionValidity</code> is the duration, in
3841+
* minutes, of that session token. Your user pool native user must respond
3842+
* to each authentication challenge before the session expires.
3843+
* </p>
3844+
* <p>
3845+
* <b>Constraints:</b><br/>
3846+
* <b>Range: </b>3 - 15<br/>
3847+
*
3848+
* @return <p>
3849+
* Amazon Cognito creates a session token for each API request in an
3850+
* authentication flow. <code>AuthSessionValidity</code> is the
3851+
* duration, in minutes, of that session token. Your user pool
3852+
* native user must respond to each authentication challenge before
3853+
* the session expires.
3854+
* </p>
3855+
*/
3856+
public Integer getAuthSessionValidity() {
3857+
return authSessionValidity;
3858+
}
3859+
3860+
/**
3861+
* <p>
3862+
* Amazon Cognito creates a session token for each API request in an
3863+
* authentication flow. <code>AuthSessionValidity</code> is the duration, in
3864+
* minutes, of that session token. Your user pool native user must respond
3865+
* to each authentication challenge before the session expires.
3866+
* </p>
3867+
* <p>
3868+
* <b>Constraints:</b><br/>
3869+
* <b>Range: </b>3 - 15<br/>
3870+
*
3871+
* @param authSessionValidity <p>
3872+
* Amazon Cognito creates a session token for each API request in
3873+
* an authentication flow. <code>AuthSessionValidity</code> is
3874+
* the duration, in minutes, of that session token. Your user
3875+
* pool native user must respond to each authentication challenge
3876+
* before the session expires.
3877+
* </p>
3878+
*/
3879+
public void setAuthSessionValidity(Integer authSessionValidity) {
3880+
this.authSessionValidity = authSessionValidity;
3881+
}
3882+
3883+
/**
3884+
* <p>
3885+
* Amazon Cognito creates a session token for each API request in an
3886+
* authentication flow. <code>AuthSessionValidity</code> is the duration, in
3887+
* minutes, of that session token. Your user pool native user must respond
3888+
* to each authentication challenge before the session expires.
3889+
* </p>
3890+
* <p>
3891+
* Returns a reference to this object so that method calls can be chained
3892+
* together.
3893+
* <p>
3894+
* <b>Constraints:</b><br/>
3895+
* <b>Range: </b>3 - 15<br/>
3896+
*
3897+
* @param authSessionValidity <p>
3898+
* Amazon Cognito creates a session token for each API request in
3899+
* an authentication flow. <code>AuthSessionValidity</code> is
3900+
* the duration, in minutes, of that session token. Your user
3901+
* pool native user must respond to each authentication challenge
3902+
* before the session expires.
3903+
* </p>
3904+
* @return A reference to this updated object so that method calls can be
3905+
* chained together.
3906+
*/
3907+
public CreateUserPoolClientRequest withAuthSessionValidity(Integer authSessionValidity) {
3908+
this.authSessionValidity = authSessionValidity;
3909+
return this;
3910+
}
3911+
38243912
/**
38253913
* Returns a string representation of this object; useful for testing and
38263914
* debugging.
@@ -3875,7 +3963,9 @@ public String toString() {
38753963
sb.append("EnableTokenRevocation: " + getEnableTokenRevocation() + ",");
38763964
if (getEnablePropagateAdditionalUserContextData() != null)
38773965
sb.append("EnablePropagateAdditionalUserContextData: "
3878-
+ getEnablePropagateAdditionalUserContextData());
3966+
+ getEnablePropagateAdditionalUserContextData() + ",");
3967+
if (getAuthSessionValidity() != null)
3968+
sb.append("AuthSessionValidity: " + getAuthSessionValidity());
38793969
sb.append("}");
38803970
return sb.toString();
38813971
}
@@ -3935,6 +4025,8 @@ public int hashCode() {
39354025
* hashCode
39364026
+ ((getEnablePropagateAdditionalUserContextData() == null) ? 0
39374027
: getEnablePropagateAdditionalUserContextData().hashCode());
4028+
hashCode = prime * hashCode
4029+
+ ((getAuthSessionValidity() == null) ? 0 : getAuthSessionValidity().hashCode());
39384030
return hashCode;
39394031
}
39404032

@@ -4062,6 +4154,11 @@ public boolean equals(Object obj) {
40624154
&& other.getEnablePropagateAdditionalUserContextData().equals(
40634155
this.getEnablePropagateAdditionalUserContextData()) == false)
40644156
return false;
4157+
if (other.getAuthSessionValidity() == null ^ this.getAuthSessionValidity() == null)
4158+
return false;
4159+
if (other.getAuthSessionValidity() != null
4160+
&& other.getAuthSessionValidity().equals(this.getAuthSessionValidity()) == false)
4161+
return false;
40654162
return true;
40664163
}
40674164
}

0 commit comments

Comments
 (0)