alexandroid/decompiled/jadx/sources/com/amazonaws/services/securitytoken/model/AssumeRoleWithSAMLRequest.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

183 lines
6.3 KiB
Java

package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.commons.text.StringSubstitutor;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes6.dex */
public class AssumeRoleWithSAMLRequest extends AmazonWebServiceRequest implements Serializable {
private Integer durationSeconds;
private String policy;
private List<PolicyDescriptorType> policyArns;
private String principalArn;
private String roleArn;
private String sAMLAssertion;
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof AssumeRoleWithSAMLRequest)) {
return false;
}
AssumeRoleWithSAMLRequest assumeRoleWithSAMLRequest = (AssumeRoleWithSAMLRequest) obj;
if ((assumeRoleWithSAMLRequest.getRoleArn() == null) ^ (getRoleArn() == null)) {
return false;
}
if (assumeRoleWithSAMLRequest.getRoleArn() != null && !assumeRoleWithSAMLRequest.getRoleArn().equals(getRoleArn())) {
return false;
}
if ((assumeRoleWithSAMLRequest.getPrincipalArn() == null) ^ (getPrincipalArn() == null)) {
return false;
}
if (assumeRoleWithSAMLRequest.getPrincipalArn() != null && !assumeRoleWithSAMLRequest.getPrincipalArn().equals(getPrincipalArn())) {
return false;
}
if ((assumeRoleWithSAMLRequest.getSAMLAssertion() == null) ^ (getSAMLAssertion() == null)) {
return false;
}
if (assumeRoleWithSAMLRequest.getSAMLAssertion() != null && !assumeRoleWithSAMLRequest.getSAMLAssertion().equals(getSAMLAssertion())) {
return false;
}
if ((assumeRoleWithSAMLRequest.getPolicyArns() == null) ^ (getPolicyArns() == null)) {
return false;
}
if (assumeRoleWithSAMLRequest.getPolicyArns() != null && !assumeRoleWithSAMLRequest.getPolicyArns().equals(getPolicyArns())) {
return false;
}
if ((assumeRoleWithSAMLRequest.getPolicy() == null) ^ (getPolicy() == null)) {
return false;
}
if (assumeRoleWithSAMLRequest.getPolicy() != null && !assumeRoleWithSAMLRequest.getPolicy().equals(getPolicy())) {
return false;
}
if ((assumeRoleWithSAMLRequest.getDurationSeconds() == null) ^ (getDurationSeconds() == null)) {
return false;
}
return assumeRoleWithSAMLRequest.getDurationSeconds() == null || assumeRoleWithSAMLRequest.getDurationSeconds().equals(getDurationSeconds());
}
public Integer getDurationSeconds() {
return this.durationSeconds;
}
public String getPolicy() {
return this.policy;
}
public List<PolicyDescriptorType> getPolicyArns() {
return this.policyArns;
}
public String getPrincipalArn() {
return this.principalArn;
}
public String getRoleArn() {
return this.roleArn;
}
public String getSAMLAssertion() {
return this.sAMLAssertion;
}
public int hashCode() {
return (((((((((((getRoleArn() == null ? 0 : getRoleArn().hashCode()) + 31) * 31) + (getPrincipalArn() == null ? 0 : getPrincipalArn().hashCode())) * 31) + (getSAMLAssertion() == null ? 0 : getSAMLAssertion().hashCode())) * 31) + (getPolicyArns() == null ? 0 : getPolicyArns().hashCode())) * 31) + (getPolicy() == null ? 0 : getPolicy().hashCode())) * 31) + (getDurationSeconds() != null ? getDurationSeconds().hashCode() : 0);
}
public void setDurationSeconds(Integer num) {
this.durationSeconds = num;
}
public void setPolicy(String str) {
this.policy = str;
}
public void setPolicyArns(Collection<PolicyDescriptorType> collection) {
if (collection == null) {
this.policyArns = null;
} else {
this.policyArns = new ArrayList(collection);
}
}
public void setPrincipalArn(String str) {
this.principalArn = str;
}
public void setRoleArn(String str) {
this.roleArn = str;
}
public void setSAMLAssertion(String str) {
this.sAMLAssertion = str;
}
public String toString() {
StringBuilder sb = new StringBuilder("{");
if (getRoleArn() != null) {
sb.append("RoleArn: " + getRoleArn() + ",");
}
if (getPrincipalArn() != null) {
sb.append("PrincipalArn: " + getPrincipalArn() + ",");
}
if (getSAMLAssertion() != null) {
sb.append("SAMLAssertion: " + getSAMLAssertion() + ",");
}
if (getPolicyArns() != null) {
sb.append("PolicyArns: " + getPolicyArns() + ",");
}
if (getPolicy() != null) {
sb.append("Policy: " + getPolicy() + ",");
}
if (getDurationSeconds() != null) {
sb.append("DurationSeconds: " + getDurationSeconds());
}
sb.append(StringSubstitutor.DEFAULT_VAR_END);
return sb.toString();
}
public AssumeRoleWithSAMLRequest withDurationSeconds(Integer num) {
this.durationSeconds = num;
return this;
}
public AssumeRoleWithSAMLRequest withPolicy(String str) {
this.policy = str;
return this;
}
public AssumeRoleWithSAMLRequest withPolicyArns(PolicyDescriptorType... policyDescriptorTypeArr) {
if (getPolicyArns() == null) {
this.policyArns = new ArrayList(policyDescriptorTypeArr.length);
}
for (PolicyDescriptorType policyDescriptorType : policyDescriptorTypeArr) {
this.policyArns.add(policyDescriptorType);
}
return this;
}
public AssumeRoleWithSAMLRequest withPrincipalArn(String str) {
this.principalArn = str;
return this;
}
public AssumeRoleWithSAMLRequest withRoleArn(String str) {
this.roleArn = str;
return this;
}
public AssumeRoleWithSAMLRequest withSAMLAssertion(String str) {
this.sAMLAssertion = str;
return this;
}
public AssumeRoleWithSAMLRequest withPolicyArns(Collection<PolicyDescriptorType> collection) {
setPolicyArns(collection);
return this;
}
}