Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

securitytoken Update models to latest #3366

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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