Skip to content

Commit

Permalink
feat(aws-android-sdk-core): update models to latest (#3366)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Roach <tjroach@amazon.com>
  • Loading branch information
awsmobilesdk and tylerjroach authored Aug 11, 2023
1 parent 96c384c commit d39d75a
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,13 @@ public class AssumeRoleRequest extends AmazonWebServiceRequest implements Serial
*/
private String sourceIdentity;

/**
* <p>
* Reserved for future use.
* </p>
*/
private java.util.List<ProvidedContext> providedContexts;

/**
* <p>
* The Amazon Resource Name (ARN) of the role to assume.
Expand Down Expand Up @@ -2870,6 +2877,82 @@ public AssumeRoleRequest withSourceIdentity(String sourceIdentity) {
return this;
}

/**
* <p>
* Reserved for future use.
* </p>
*
* @return <p>
* Reserved for future use.
* </p>
*/
public java.util.List<ProvidedContext> getProvidedContexts() {
return providedContexts;
}

/**
* <p>
* Reserved for future use.
* </p>
*
* @param providedContexts <p>
* Reserved for future use.
* </p>
*/
public void setProvidedContexts(java.util.Collection<ProvidedContext> providedContexts) {
if (providedContexts == null) {
this.providedContexts = null;
return;
}

this.providedContexts = new java.util.ArrayList<ProvidedContext>(providedContexts);
}

/**
* <p>
* Reserved for future use.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param providedContexts <p>
* Reserved for future use.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public AssumeRoleRequest withProvidedContexts(ProvidedContext... providedContexts) {
if (getProvidedContexts() == null) {
this.providedContexts = new java.util.ArrayList<ProvidedContext>(
providedContexts.length);
}
for (ProvidedContext value : providedContexts) {
this.providedContexts.add(value);
}
return this;
}

/**
* <p>
* Reserved for future use.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param providedContexts <p>
* Reserved for future use.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public AssumeRoleRequest withProvidedContexts(
java.util.Collection<ProvidedContext> providedContexts) {
setProvidedContexts(providedContexts);
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand Down Expand Up @@ -2902,7 +2985,9 @@ public String toString() {
if (getTokenCode() != null)
sb.append("TokenCode: " + getTokenCode() + ",");
if (getSourceIdentity() != null)
sb.append("SourceIdentity: " + getSourceIdentity());
sb.append("SourceIdentity: " + getSourceIdentity() + ",");
if (getProvidedContexts() != null)
sb.append("ProvidedContexts: " + getProvidedContexts());
sb.append("}");
return sb.toString();
}
Expand All @@ -2928,6 +3013,8 @@ public int hashCode() {
hashCode = prime * hashCode + ((getTokenCode() == null) ? 0 : getTokenCode().hashCode());
hashCode = prime * hashCode
+ ((getSourceIdentity() == null) ? 0 : getSourceIdentity().hashCode());
hashCode = prime * hashCode
+ ((getProvidedContexts() == null) ? 0 : getProvidedContexts().hashCode());
return hashCode;
}

Expand Down Expand Up @@ -2994,6 +3081,11 @@ public boolean equals(Object obj) {
if (other.getSourceIdentity() != null
&& other.getSourceIdentity().equals(this.getSourceIdentity()) == false)
return false;
if (other.getProvidedContexts() == null ^ this.getProvidedContexts() == null)
return false;
if (other.getProvidedContexts() != null
&& other.getProvidedContexts().equals(this.getProvidedContexts()) == false)
return false;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ public class AssumeRoleWithWebIdentityRequest extends AmazonWebServiceRequest im
* the identity provider. Your application must get this token by
* authenticating the user who is using your application with a web identity
* provider before the application makes an
* <code>AssumeRoleWithWebIdentity</code> call.
* <code>AssumeRoleWithWebIdentity</code> call. Only tokens with RSA
* algorithms (RS256) are supported.
* </p>
* <p>
* <b>Constraints:</b><br/>
Expand Down Expand Up @@ -611,7 +612,8 @@ public AssumeRoleWithWebIdentityRequest withRoleSessionName(String roleSessionNa
* the identity provider. Your application must get this token by
* authenticating the user who is using your application with a web identity
* provider before the application makes an
* <code>AssumeRoleWithWebIdentity</code> call.
* <code>AssumeRoleWithWebIdentity</code> call. Only tokens with RSA
* algorithms (RS256) are supported.
* </p>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -622,7 +624,8 @@ public AssumeRoleWithWebIdentityRequest withRoleSessionName(String roleSessionNa
* provided by the identity provider. Your application must get this
* token by authenticating the user who is using your application
* with a web identity provider before the application makes an
* <code>AssumeRoleWithWebIdentity</code> call.
* <code>AssumeRoleWithWebIdentity</code> call. Only tokens with RSA
* algorithms (RS256) are supported.
* </p>
*/
public String getWebIdentityToken() {
Expand All @@ -635,7 +638,8 @@ public String getWebIdentityToken() {
* the identity provider. Your application must get this token by
* authenticating the user who is using your application with a web identity
* provider before the application makes an
* <code>AssumeRoleWithWebIdentity</code> call.
* <code>AssumeRoleWithWebIdentity</code> call. Only tokens with RSA
* algorithms (RS256) are supported.
* </p>
* <p>
* <b>Constraints:</b><br/>
Expand All @@ -647,7 +651,7 @@ public String getWebIdentityToken() {
* this token by authenticating the user who is using your
* application with a web identity provider before the
* application makes an <code>AssumeRoleWithWebIdentity</code>
* call.
* call. Only tokens with RSA algorithms (RS256) are supported.
* </p>
*/
public void setWebIdentityToken(String webIdentityToken) {
Expand All @@ -660,7 +664,8 @@ public void setWebIdentityToken(String webIdentityToken) {
* the identity provider. Your application must get this token by
* authenticating the user who is using your application with a web identity
* provider before the application makes an
* <code>AssumeRoleWithWebIdentity</code> call.
* <code>AssumeRoleWithWebIdentity</code> call. Only tokens with RSA
* algorithms (RS256) are supported.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
Expand All @@ -675,7 +680,7 @@ public void setWebIdentityToken(String webIdentityToken) {
* this token by authenticating the user who is using your
* application with a web identity provider before the
* application makes an <code>AssumeRoleWithWebIdentity</code>
* call.
* call. Only tokens with RSA algorithms (RS256) are supported.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
Expand Down
Loading

0 comments on commit d39d75a

Please sign in to comment.