Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package com.amazonaws.services.cognitoidentity;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityRequest;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult;
import com.amazonaws.services.cognitoidentity.model.GetIdRequest;
import com.amazonaws.services.cognitoidentity.model.GetIdResult;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenRequest;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenResult;
/* loaded from: classes.dex */
public interface AmazonCognitoIdentity {
GetCredentialsForIdentityResult getCredentialsForIdentity(GetCredentialsForIdentityRequest getCredentialsForIdentityRequest);
GetIdResult getId(GetIdRequest getIdRequest);
GetOpenIdTokenResult getOpenIdToken(GetOpenIdTokenRequest getOpenIdTokenRequest);
}

View File

@@ -0,0 +1,255 @@
package com.amazonaws.services.cognitoidentity;
import com.amazonaws.AmazonWebServiceClient;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.handlers.HandlerChainFactory;
import com.amazonaws.http.ExecutionContext;
import com.amazonaws.http.HttpClient;
import com.amazonaws.http.HttpResponseHandler;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.http.JsonResponseHandler;
import com.amazonaws.http.UrlHttpClient;
import com.amazonaws.internal.StaticCredentialsProvider;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityRequest;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult;
import com.amazonaws.services.cognitoidentity.model.GetIdRequest;
import com.amazonaws.services.cognitoidentity.model.GetIdResult;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenRequest;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenResult;
import com.amazonaws.services.cognitoidentity.model.transform.ConcurrentModificationExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.DeveloperUserAlreadyRegisteredExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.ExternalServiceExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetCredentialsForIdentityRequestMarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetCredentialsForIdentityResultJsonUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetIdRequestMarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetIdResultJsonUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetOpenIdTokenRequestMarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.GetOpenIdTokenResultJsonUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.InternalErrorExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.InvalidIdentityPoolConfigurationExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.InvalidParameterExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.LimitExceededExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.NotAuthorizedExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.ResourceConflictExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.ResourceNotFoundExceptionUnmarshaller;
import com.amazonaws.services.cognitoidentity.model.transform.TooManyRequestsExceptionUnmarshaller;
import com.amazonaws.transform.JsonErrorUnmarshaller;
import com.amazonaws.util.AWSRequestMetrics;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public class AmazonCognitoIdentityClient extends AmazonWebServiceClient implements AmazonCognitoIdentity {
public AWSCredentialsProvider awsCredentialsProvider;
public List jsonErrorUnmarshallers;
private static ClientConfiguration adjustClientConfiguration(ClientConfiguration clientConfiguration) {
return clientConfiguration;
}
public AmazonCognitoIdentityClient(AWSCredentials aWSCredentials, ClientConfiguration clientConfiguration) {
this(new StaticCredentialsProvider(aWSCredentials), clientConfiguration);
}
public AmazonCognitoIdentityClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration) {
this(aWSCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration));
}
public AmazonCognitoIdentityClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient) {
super(adjustClientConfiguration(clientConfiguration), httpClient);
this.awsCredentialsProvider = aWSCredentialsProvider;
init();
}
private void init() {
ArrayList arrayList = new ArrayList();
this.jsonErrorUnmarshallers = arrayList;
arrayList.add(new ConcurrentModificationExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new DeveloperUserAlreadyRegisteredExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ExternalServiceExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new InternalErrorExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new InvalidIdentityPoolConfigurationExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new InvalidParameterExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new LimitExceededExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new NotAuthorizedExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ResourceConflictExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new TooManyRequestsExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new JsonErrorUnmarshaller());
setEndpoint("cognito-identity.us-east-1.amazonaws.com");
this.endpointPrefix = "cognito-identity";
HandlerChainFactory handlerChainFactory = new HandlerChainFactory();
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandlerChain("/com/amazonaws/services/cognitoidentity/request.handlers"));
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandler2Chain("/com/amazonaws/services/cognitoidentity/request.handler2s"));
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.amazonaws.services.cognitoidentity.AmazonCognitoIdentity
public GetCredentialsForIdentityResult getCredentialsForIdentity(GetCredentialsForIdentityRequest getCredentialsForIdentityRequest) {
Response response;
ExecutionContext createExecutionContext = createExecutionContext(getCredentialsForIdentityRequest);
AWSRequestMetrics awsRequestMetrics = createExecutionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.ClientExecuteTime;
awsRequestMetrics.startEvent(field);
Request request = null;
try {
try {
AWSRequestMetrics.Field field2 = AWSRequestMetrics.Field.RequestMarshallTime;
awsRequestMetrics.startEvent(field2);
try {
Request marshall = new GetCredentialsForIdentityRequestMarshaller().marshall(getCredentialsForIdentityRequest);
try {
marshall.setAWSRequestMetrics(awsRequestMetrics);
awsRequestMetrics.endEvent(field2);
Response invoke = invoke(marshall, new JsonResponseHandler(new GetCredentialsForIdentityResultJsonUnmarshaller()), createExecutionContext);
GetCredentialsForIdentityResult getCredentialsForIdentityResult = (GetCredentialsForIdentityResult) invoke.getAwsResponse();
awsRequestMetrics.endEvent(field);
endClientExecution(awsRequestMetrics, marshall, invoke, true);
return getCredentialsForIdentityResult;
} catch (Throwable th) {
th = th;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.RequestMarshallTime);
throw th;
}
} catch (Throwable th2) {
th = th2;
}
} catch (Throwable th3) {
th = th3;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
} catch (Throwable th4) {
th = th4;
request = getCredentialsForIdentityRequest;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.amazonaws.services.cognitoidentity.AmazonCognitoIdentity
public GetIdResult getId(GetIdRequest getIdRequest) {
Response response;
ExecutionContext createExecutionContext = createExecutionContext(getIdRequest);
AWSRequestMetrics awsRequestMetrics = createExecutionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.ClientExecuteTime;
awsRequestMetrics.startEvent(field);
Request request = null;
try {
try {
AWSRequestMetrics.Field field2 = AWSRequestMetrics.Field.RequestMarshallTime;
awsRequestMetrics.startEvent(field2);
try {
Request marshall = new GetIdRequestMarshaller().marshall(getIdRequest);
try {
marshall.setAWSRequestMetrics(awsRequestMetrics);
awsRequestMetrics.endEvent(field2);
Response invoke = invoke(marshall, new JsonResponseHandler(new GetIdResultJsonUnmarshaller()), createExecutionContext);
GetIdResult getIdResult = (GetIdResult) invoke.getAwsResponse();
awsRequestMetrics.endEvent(field);
endClientExecution(awsRequestMetrics, marshall, invoke, true);
return getIdResult;
} catch (Throwable th) {
th = th;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.RequestMarshallTime);
throw th;
}
} catch (Throwable th2) {
th = th2;
}
} catch (Throwable th3) {
th = th3;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
} catch (Throwable th4) {
th = th4;
request = getIdRequest;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.amazonaws.services.cognitoidentity.AmazonCognitoIdentity
public GetOpenIdTokenResult getOpenIdToken(GetOpenIdTokenRequest getOpenIdTokenRequest) {
Response response;
ExecutionContext createExecutionContext = createExecutionContext(getOpenIdTokenRequest);
AWSRequestMetrics awsRequestMetrics = createExecutionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.ClientExecuteTime;
awsRequestMetrics.startEvent(field);
Request request = null;
try {
try {
AWSRequestMetrics.Field field2 = AWSRequestMetrics.Field.RequestMarshallTime;
awsRequestMetrics.startEvent(field2);
try {
Request marshall = new GetOpenIdTokenRequestMarshaller().marshall(getOpenIdTokenRequest);
try {
marshall.setAWSRequestMetrics(awsRequestMetrics);
awsRequestMetrics.endEvent(field2);
Response invoke = invoke(marshall, new JsonResponseHandler(new GetOpenIdTokenResultJsonUnmarshaller()), createExecutionContext);
GetOpenIdTokenResult getOpenIdTokenResult = (GetOpenIdTokenResult) invoke.getAwsResponse();
awsRequestMetrics.endEvent(field);
endClientExecution(awsRequestMetrics, marshall, invoke, true);
return getOpenIdTokenResult;
} catch (Throwable th) {
th = th;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.RequestMarshallTime);
throw th;
}
} catch (Throwable th2) {
th = th2;
}
} catch (Throwable th3) {
th = th3;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
} catch (Throwable th4) {
th = th4;
request = getOpenIdTokenRequest;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
}
public final Response invoke(Request request, HttpResponseHandler httpResponseHandler, ExecutionContext executionContext) {
request.setEndpoint(this.endpoint);
request.setTimeOffset(this.timeOffset);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.CredentialsRequestTime;
awsRequestMetrics.startEvent(field);
try {
AWSCredentials credentials = this.awsCredentialsProvider.getCredentials();
awsRequestMetrics.endEvent(field);
AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
if (originalRequest != null && originalRequest.getRequestCredentials() != null) {
credentials = originalRequest.getRequestCredentials();
}
executionContext.setCredentials(credentials);
return this.client.execute(request, httpResponseHandler, new JsonErrorResponseHandler(this.jsonErrorUnmarshallers), executionContext);
} catch (Throwable th) {
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.CredentialsRequestTime);
throw th;
}
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ConcurrentModificationException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,99 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
import java.util.Date;
/* loaded from: classes.dex */
public class Credentials implements Serializable {
public String accessKeyId;
public Date expiration;
public String secretKey;
public String sessionToken;
public String getAccessKeyId() {
return this.accessKeyId;
}
public Date getExpiration() {
return this.expiration;
}
public String getSecretKey() {
return this.secretKey;
}
public String getSessionToken() {
return this.sessionToken;
}
public void setAccessKeyId(String str) {
this.accessKeyId = str;
}
public void setExpiration(Date date) {
this.expiration = date;
}
public void setSecretKey(String str) {
this.secretKey = str;
}
public void setSessionToken(String str) {
this.sessionToken = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccessKeyId() != null) {
sb.append("AccessKeyId: " + getAccessKeyId() + ",");
}
if (getSecretKey() != null) {
sb.append("SecretKey: " + getSecretKey() + ",");
}
if (getSessionToken() != null) {
sb.append("SessionToken: " + getSessionToken() + ",");
}
if (getExpiration() != null) {
sb.append("Expiration: " + getExpiration());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((((getAccessKeyId() == null ? 0 : getAccessKeyId().hashCode()) + 31) * 31) + (getSecretKey() == null ? 0 : getSecretKey().hashCode())) * 31) + (getSessionToken() == null ? 0 : getSessionToken().hashCode())) * 31) + (getExpiration() != null ? getExpiration().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof Credentials)) {
return false;
}
Credentials credentials = (Credentials) obj;
if ((credentials.getAccessKeyId() == null) ^ (getAccessKeyId() == null)) {
return false;
}
if (credentials.getAccessKeyId() != null && !credentials.getAccessKeyId().equals(getAccessKeyId())) {
return false;
}
if ((credentials.getSecretKey() == null) ^ (getSecretKey() == null)) {
return false;
}
if (credentials.getSecretKey() != null && !credentials.getSecretKey().equals(getSecretKey())) {
return false;
}
if ((credentials.getSessionToken() == null) ^ (getSessionToken() == null)) {
return false;
}
if (credentials.getSessionToken() != null && !credentials.getSessionToken().equals(getSessionToken())) {
return false;
}
if ((credentials.getExpiration() == null) ^ (getExpiration() == null)) {
return false;
}
return credentials.getExpiration() == null || credentials.getExpiration().equals(getExpiration());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class DeveloperUserAlreadyRegisteredException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ExternalServiceException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,85 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityRequest extends AmazonWebServiceRequest implements Serializable {
public String customRoleArn;
public String identityId;
public Map logins;
public String getCustomRoleArn() {
return this.customRoleArn;
}
public String getIdentityId() {
return this.identityId;
}
public Map getLogins() {
return this.logins;
}
public GetCredentialsForIdentityRequest withCustomRoleArn(String str) {
this.customRoleArn = str;
return this;
}
public GetCredentialsForIdentityRequest withIdentityId(String str) {
this.identityId = str;
return this;
}
public GetCredentialsForIdentityRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins() + ",");
}
if (getCustomRoleArn() != null) {
sb.append("CustomRoleArn: " + getCustomRoleArn());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getLogins() == null ? 0 : getLogins().hashCode())) * 31) + (getCustomRoleArn() != null ? getCustomRoleArn().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetCredentialsForIdentityRequest)) {
return false;
}
GetCredentialsForIdentityRequest getCredentialsForIdentityRequest = (GetCredentialsForIdentityRequest) obj;
if ((getCredentialsForIdentityRequest.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getCredentialsForIdentityRequest.getIdentityId() != null && !getCredentialsForIdentityRequest.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getCredentialsForIdentityRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
if (getCredentialsForIdentityRequest.getLogins() != null && !getCredentialsForIdentityRequest.getLogins().equals(getLogins())) {
return false;
}
if ((getCredentialsForIdentityRequest.getCustomRoleArn() == null) ^ (getCustomRoleArn() == null)) {
return false;
}
return getCredentialsForIdentityRequest.getCustomRoleArn() == null || getCredentialsForIdentityRequest.getCustomRoleArn().equals(getCustomRoleArn());
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityResult implements Serializable {
public Credentials credentials;
public String identityId;
public Credentials getCredentials() {
return this.credentials;
}
public String getIdentityId() {
return this.identityId;
}
public void setCredentials(Credentials credentials) {
this.credentials = credentials;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getCredentials() != null) {
sb.append("Credentials: " + getCredentials());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getCredentials() != null ? getCredentials().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetCredentialsForIdentityResult)) {
return false;
}
GetCredentialsForIdentityResult getCredentialsForIdentityResult = (GetCredentialsForIdentityResult) obj;
if ((getCredentialsForIdentityResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getCredentialsForIdentityResult.getIdentityId() != null && !getCredentialsForIdentityResult.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getCredentialsForIdentityResult.getCredentials() == null) ^ (getCredentials() == null)) {
return false;
}
return getCredentialsForIdentityResult.getCredentials() == null || getCredentialsForIdentityResult.getCredentials().equals(getCredentials());
}
}

View File

@@ -0,0 +1,85 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetIdRequest extends AmazonWebServiceRequest implements Serializable {
public String accountId;
public String identityPoolId;
public Map logins;
public String getAccountId() {
return this.accountId;
}
public String getIdentityPoolId() {
return this.identityPoolId;
}
public Map getLogins() {
return this.logins;
}
public GetIdRequest withAccountId(String str) {
this.accountId = str;
return this;
}
public GetIdRequest withIdentityPoolId(String str) {
this.identityPoolId = str;
return this;
}
public GetIdRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountId() != null) {
sb.append("AccountId: " + getAccountId() + ",");
}
if (getIdentityPoolId() != null) {
sb.append("IdentityPoolId: " + getIdentityPoolId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getAccountId() == null ? 0 : getAccountId().hashCode()) + 31) * 31) + (getIdentityPoolId() == null ? 0 : getIdentityPoolId().hashCode())) * 31) + (getLogins() != null ? getLogins().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetIdRequest)) {
return false;
}
GetIdRequest getIdRequest = (GetIdRequest) obj;
if ((getIdRequest.getAccountId() == null) ^ (getAccountId() == null)) {
return false;
}
if (getIdRequest.getAccountId() != null && !getIdRequest.getAccountId().equals(getAccountId())) {
return false;
}
if ((getIdRequest.getIdentityPoolId() == null) ^ (getIdentityPoolId() == null)) {
return false;
}
if (getIdRequest.getIdentityPoolId() != null && !getIdRequest.getIdentityPoolId().equals(getIdentityPoolId())) {
return false;
}
if ((getIdRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
return getIdRequest.getLogins() == null || getIdRequest.getLogins().equals(getLogins());
}
}

View File

@@ -0,0 +1,44 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetIdResult implements Serializable {
public String identityId;
public String getIdentityId() {
return this.identityId;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return 31 + (getIdentityId() == null ? 0 : getIdentityId().hashCode());
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetIdResult)) {
return false;
}
GetIdResult getIdResult = (GetIdResult) obj;
if ((getIdResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
return getIdResult.getIdentityId() == null || getIdResult.getIdentityId().equals(getIdentityId());
}
}

View File

@@ -0,0 +1,66 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetOpenIdTokenRequest extends AmazonWebServiceRequest implements Serializable {
public String identityId;
public Map logins;
public String getIdentityId() {
return this.identityId;
}
public Map getLogins() {
return this.logins;
}
public GetOpenIdTokenRequest withIdentityId(String str) {
this.identityId = str;
return this;
}
public GetOpenIdTokenRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getLogins() != null ? getLogins().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetOpenIdTokenRequest)) {
return false;
}
GetOpenIdTokenRequest getOpenIdTokenRequest = (GetOpenIdTokenRequest) obj;
if ((getOpenIdTokenRequest.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getOpenIdTokenRequest.getIdentityId() != null && !getOpenIdTokenRequest.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getOpenIdTokenRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
return getOpenIdTokenRequest.getLogins() == null || getOpenIdTokenRequest.getLogins().equals(getLogins());
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetOpenIdTokenResult implements Serializable {
public String identityId;
public String token;
public String getIdentityId() {
return this.identityId;
}
public String getToken() {
return this.token;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public void setToken(String str) {
this.token = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getToken() != null) {
sb.append("Token: " + getToken());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getToken() != null ? getToken().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetOpenIdTokenResult)) {
return false;
}
GetOpenIdTokenResult getOpenIdTokenResult = (GetOpenIdTokenResult) obj;
if ((getOpenIdTokenResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getOpenIdTokenResult.getIdentityId() != null && !getOpenIdTokenResult.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getOpenIdTokenResult.getToken() == null) ^ (getToken() == null)) {
return false;
}
return getOpenIdTokenResult.getToken() == null || getOpenIdTokenResult.getToken().equals(getToken());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InternalErrorException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidIdentityPoolConfigurationException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidParameterException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class LimitExceededException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class NotAuthorizedException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceConflictException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceNotFoundException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class TooManyRequestsException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ConcurrentModificationException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ConcurrentModificationExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ConcurrentModificationExceptionUnmarshaller() {
super(ConcurrentModificationException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ConcurrentModificationException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,47 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.Credentials;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$DateJsonUnmarshaller;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
class CredentialsJsonUnmarshaller implements Unmarshaller<Credentials, JsonUnmarshallerContext> {
public static CredentialsJsonUnmarshaller instance;
@Override // com.amazonaws.transform.Unmarshaller
public Credentials unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
Credentials credentials = new Credentials();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("AccessKeyId")) {
credentials.setAccessKeyId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("SecretKey")) {
credentials.setSecretKey(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("SessionToken")) {
credentials.setSessionToken(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Expiration")) {
credentials.setExpiration(SimpleTypeJsonUnmarshallers$DateJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return credentials;
}
public static CredentialsJsonUnmarshaller getInstance() {
if (instance == null) {
instance = new CredentialsJsonUnmarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class DeveloperUserAlreadyRegisteredExceptionUnmarshaller extends JsonErrorUnmarshaller {
public DeveloperUserAlreadyRegisteredExceptionUnmarshaller() {
super(DeveloperUserAlreadyRegisteredException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("DeveloperUserAlreadyRegisteredException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ExternalServiceException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ExternalServiceExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ExternalServiceExceptionUnmarshaller() {
super(ExternalServiceException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ExternalServiceException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,67 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityRequestMarshaller {
public Request marshall(GetCredentialsForIdentityRequest getCredentialsForIdentityRequest) {
if (getCredentialsForIdentityRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetCredentialsForIdentityRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getCredentialsForIdentityRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetCredentialsForIdentity");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getCredentialsForIdentityRequest.getIdentityId() != null) {
String identityId = getCredentialsForIdentityRequest.getIdentityId();
jsonWriter.name("IdentityId");
jsonWriter.value(identityId);
}
if (getCredentialsForIdentityRequest.getLogins() != null) {
Map logins = getCredentialsForIdentityRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
if (getCredentialsForIdentityRequest.getCustomRoleArn() != null) {
String customRoleArn = getCredentialsForIdentityRequest.getCustomRoleArn();
jsonWriter.name("CustomRoleArn");
jsonWriter.value(customRoleArn);
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,29 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityResultJsonUnmarshaller implements Unmarshaller<GetCredentialsForIdentityResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetCredentialsForIdentityResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetCredentialsForIdentityResult getCredentialsForIdentityResult = new GetCredentialsForIdentityResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("IdentityId")) {
getCredentialsForIdentityResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Credentials")) {
getCredentialsForIdentityResult.setCredentials(CredentialsJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getCredentialsForIdentityResult;
}
}

View File

@@ -0,0 +1,67 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetIdRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetIdRequestMarshaller {
public Request marshall(GetIdRequest getIdRequest) {
if (getIdRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetIdRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getIdRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetId");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getIdRequest.getAccountId() != null) {
String accountId = getIdRequest.getAccountId();
jsonWriter.name("AccountId");
jsonWriter.value(accountId);
}
if (getIdRequest.getIdentityPoolId() != null) {
String identityPoolId = getIdRequest.getIdentityPoolId();
jsonWriter.name("IdentityPoolId");
jsonWriter.value(identityPoolId);
}
if (getIdRequest.getLogins() != null) {
Map logins = getIdRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,26 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetIdResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetIdResultJsonUnmarshaller implements Unmarshaller<GetIdResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetIdResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetIdResult getIdResult = new GetIdResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
if (reader.nextName().equals("IdentityId")) {
getIdResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getIdResult;
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetOpenIdTokenRequestMarshaller {
public Request marshall(GetOpenIdTokenRequest getOpenIdTokenRequest) {
if (getOpenIdTokenRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetOpenIdTokenRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getOpenIdTokenRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetOpenIdToken");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getOpenIdTokenRequest.getIdentityId() != null) {
String identityId = getOpenIdTokenRequest.getIdentityId();
jsonWriter.name("IdentityId");
jsonWriter.value(identityId);
}
if (getOpenIdTokenRequest.getLogins() != null) {
Map logins = getOpenIdTokenRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,29 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetOpenIdTokenResultJsonUnmarshaller implements Unmarshaller<GetOpenIdTokenResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetOpenIdTokenResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetOpenIdTokenResult getOpenIdTokenResult = new GetOpenIdTokenResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("IdentityId")) {
getOpenIdTokenResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Token")) {
getOpenIdTokenResult.setToken(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getOpenIdTokenResult;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InternalErrorException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InternalErrorExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InternalErrorExceptionUnmarshaller() {
super(InternalErrorException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InternalErrorException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InvalidIdentityPoolConfigurationException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InvalidIdentityPoolConfigurationExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InvalidIdentityPoolConfigurationExceptionUnmarshaller() {
super(InvalidIdentityPoolConfigurationException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InvalidIdentityPoolConfigurationException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InvalidParameterException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InvalidParameterExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InvalidParameterExceptionUnmarshaller() {
super(InvalidParameterException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InvalidParameterException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.LimitExceededException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class LimitExceededExceptionUnmarshaller extends JsonErrorUnmarshaller {
public LimitExceededExceptionUnmarshaller() {
super(LimitExceededException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("LimitExceededException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.NotAuthorizedException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class NotAuthorizedExceptionUnmarshaller extends JsonErrorUnmarshaller {
public NotAuthorizedExceptionUnmarshaller() {
super(NotAuthorizedException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("NotAuthorizedException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ResourceConflictException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceConflictExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceConflictExceptionUnmarshaller() {
super(ResourceConflictException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceConflictException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ResourceNotFoundException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceNotFoundExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceNotFoundExceptionUnmarshaller() {
super(ResourceNotFoundException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceNotFoundException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.TooManyRequestsException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class TooManyRequestsExceptionUnmarshaller extends JsonErrorUnmarshaller {
public TooManyRequestsExceptionUnmarshaller() {
super(TooManyRequestsException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("TooManyRequestsException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,12 @@
package com.amazonaws.services.kinesis;
import com.amazonaws.regions.Region;
import com.amazonaws.services.kinesis.model.PutRecordsRequest;
import com.amazonaws.services.kinesis.model.PutRecordsResult;
/* loaded from: classes.dex */
public interface AmazonKinesis {
PutRecordsResult putRecords(PutRecordsRequest putRecordsRequest);
void setRegion(Region region);
}

View File

@@ -0,0 +1,150 @@
package com.amazonaws.services.kinesis;
import com.amazonaws.AmazonWebServiceClient;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.handlers.HandlerChainFactory;
import com.amazonaws.http.ExecutionContext;
import com.amazonaws.http.HttpClient;
import com.amazonaws.http.HttpResponseHandler;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.http.JsonResponseHandler;
import com.amazonaws.http.UrlHttpClient;
import com.amazonaws.services.kinesis.model.PutRecordsRequest;
import com.amazonaws.services.kinesis.model.PutRecordsResult;
import com.amazonaws.services.kinesis.model.transform.ExpiredIteratorExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.ExpiredNextTokenExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.InvalidArgumentExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSAccessDeniedExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSDisabledExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSInvalidStateExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSNotFoundExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSOptInRequiredExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.KMSThrottlingExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.LimitExceededExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.ProvisionedThroughputExceededExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.PutRecordsRequestMarshaller;
import com.amazonaws.services.kinesis.model.transform.PutRecordsResultJsonUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.ResourceInUseExceptionUnmarshaller;
import com.amazonaws.services.kinesis.model.transform.ResourceNotFoundExceptionUnmarshaller;
import com.amazonaws.transform.JsonErrorUnmarshaller;
import com.amazonaws.util.AWSRequestMetrics;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public class AmazonKinesisClient extends AmazonWebServiceClient implements AmazonKinesis {
public AWSCredentialsProvider awsCredentialsProvider;
public List jsonErrorUnmarshallers;
private static ClientConfiguration adjustClientConfiguration(ClientConfiguration clientConfiguration) {
return clientConfiguration;
}
public AmazonKinesisClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration) {
this(aWSCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration));
}
public AmazonKinesisClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient) {
super(adjustClientConfiguration(clientConfiguration), httpClient);
this.awsCredentialsProvider = aWSCredentialsProvider;
init();
}
private void init() {
ArrayList arrayList = new ArrayList();
this.jsonErrorUnmarshallers = arrayList;
arrayList.add(new ExpiredIteratorExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ExpiredNextTokenExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new InvalidArgumentExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSAccessDeniedExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSDisabledExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSInvalidStateExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSNotFoundExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSOptInRequiredExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new KMSThrottlingExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new LimitExceededExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ProvisionedThroughputExceededExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ResourceInUseExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new ResourceNotFoundExceptionUnmarshaller());
this.jsonErrorUnmarshallers.add(new JsonErrorUnmarshaller());
setEndpoint("kinesis.us-east-1.amazonaws.com");
this.endpointPrefix = "kinesis";
HandlerChainFactory handlerChainFactory = new HandlerChainFactory();
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandlerChain("/com/amazonaws/services/kinesis/request.handlers"));
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandler2Chain("/com/amazonaws/services/kinesis/request.handler2s"));
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.amazonaws.services.kinesis.AmazonKinesis
public PutRecordsResult putRecords(PutRecordsRequest putRecordsRequest) {
Response response;
ExecutionContext createExecutionContext = createExecutionContext(putRecordsRequest);
AWSRequestMetrics awsRequestMetrics = createExecutionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.ClientExecuteTime;
awsRequestMetrics.startEvent(field);
Request request = null;
try {
try {
AWSRequestMetrics.Field field2 = AWSRequestMetrics.Field.RequestMarshallTime;
awsRequestMetrics.startEvent(field2);
try {
Request marshall = new PutRecordsRequestMarshaller().marshall(putRecordsRequest);
try {
marshall.setAWSRequestMetrics(awsRequestMetrics);
awsRequestMetrics.endEvent(field2);
Response invoke = invoke(marshall, new JsonResponseHandler(new PutRecordsResultJsonUnmarshaller()), createExecutionContext);
PutRecordsResult putRecordsResult = (PutRecordsResult) invoke.getAwsResponse();
awsRequestMetrics.endEvent(field);
endClientExecution(awsRequestMetrics, marshall, invoke, true);
return putRecordsResult;
} catch (Throwable th) {
th = th;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.RequestMarshallTime);
throw th;
}
} catch (Throwable th2) {
th = th2;
}
} catch (Throwable th3) {
th = th3;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
} catch (Throwable th4) {
th = th4;
request = putRecordsRequest;
response = null;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, true);
throw th;
}
}
private Response invoke(Request request, HttpResponseHandler httpResponseHandler, ExecutionContext executionContext) {
request.setEndpoint(this.endpoint);
request.setTimeOffset(this.timeOffset);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.CredentialsRequestTime;
awsRequestMetrics.startEvent(field);
try {
AWSCredentials credentials = this.awsCredentialsProvider.getCredentials();
awsRequestMetrics.endEvent(field);
AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
if (originalRequest != null && originalRequest.getRequestCredentials() != null) {
credentials = originalRequest.getRequestCredentials();
}
executionContext.setCredentials(credentials);
return this.client.execute(request, httpResponseHandler, new JsonErrorResponseHandler(this.jsonErrorUnmarshallers), executionContext);
} catch (Throwable th) {
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.CredentialsRequestTime);
throw th;
}
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ExpiredIteratorException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ExpiredNextTokenException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidArgumentException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSAccessDeniedException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSDisabledException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSInvalidStateException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSNotFoundException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSOptInRequiredException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class KMSThrottlingException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class LimitExceededException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ProvisionedThroughputExceededException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,70 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/* loaded from: classes.dex */
public class PutRecordsRequest extends AmazonWebServiceRequest implements Serializable {
public List records = new ArrayList();
public String streamName;
public List getRecords() {
return this.records;
}
public String getStreamName() {
return this.streamName;
}
public void setStreamName(String str) {
this.streamName = str;
}
public void setRecords(Collection collection) {
if (collection == null) {
this.records = null;
} else {
this.records = new ArrayList(collection);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getRecords() != null) {
sb.append("Records: " + getRecords() + ",");
}
if (getStreamName() != null) {
sb.append("StreamName: " + getStreamName());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getRecords() == null ? 0 : getRecords().hashCode()) + 31) * 31) + (getStreamName() != null ? getStreamName().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof PutRecordsRequest)) {
return false;
}
PutRecordsRequest putRecordsRequest = (PutRecordsRequest) obj;
if ((putRecordsRequest.getRecords() == null) ^ (getRecords() == null)) {
return false;
}
if (putRecordsRequest.getRecords() != null && !putRecordsRequest.getRecords().equals(getRecords())) {
return false;
}
if ((putRecordsRequest.getStreamName() == null) ^ (getStreamName() == null)) {
return false;
}
return putRecordsRequest.getStreamName() == null || putRecordsRequest.getStreamName().equals(getStreamName());
}
}

View File

@@ -0,0 +1,77 @@
package com.amazonaws.services.kinesis.model;
import java.io.Serializable;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
public class PutRecordsRequestEntry implements Serializable {
public ByteBuffer data;
public String explicitHashKey;
public String partitionKey;
public ByteBuffer getData() {
return this.data;
}
public String getExplicitHashKey() {
return this.explicitHashKey;
}
public String getPartitionKey() {
return this.partitionKey;
}
public void setData(ByteBuffer byteBuffer) {
this.data = byteBuffer;
}
public void setPartitionKey(String str) {
this.partitionKey = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getData() != null) {
sb.append("Data: " + getData() + ",");
}
if (getExplicitHashKey() != null) {
sb.append("ExplicitHashKey: " + getExplicitHashKey() + ",");
}
if (getPartitionKey() != null) {
sb.append("PartitionKey: " + getPartitionKey());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getData() == null ? 0 : getData().hashCode()) + 31) * 31) + (getExplicitHashKey() == null ? 0 : getExplicitHashKey().hashCode())) * 31) + (getPartitionKey() != null ? getPartitionKey().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof PutRecordsRequestEntry)) {
return false;
}
PutRecordsRequestEntry putRecordsRequestEntry = (PutRecordsRequestEntry) obj;
if ((putRecordsRequestEntry.getData() == null) ^ (getData() == null)) {
return false;
}
if (putRecordsRequestEntry.getData() != null && !putRecordsRequestEntry.getData().equals(getData())) {
return false;
}
if ((putRecordsRequestEntry.getExplicitHashKey() == null) ^ (getExplicitHashKey() == null)) {
return false;
}
if (putRecordsRequestEntry.getExplicitHashKey() != null && !putRecordsRequestEntry.getExplicitHashKey().equals(getExplicitHashKey())) {
return false;
}
if ((putRecordsRequestEntry.getPartitionKey() == null) ^ (getPartitionKey() == null)) {
return false;
}
return putRecordsRequestEntry.getPartitionKey() == null || putRecordsRequestEntry.getPartitionKey().equals(getPartitionKey());
}
}

View File

@@ -0,0 +1,87 @@
package com.amazonaws.services.kinesis.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/* loaded from: classes.dex */
public class PutRecordsResult implements Serializable {
public String encryptionType;
public Integer failedRecordCount;
public List records = new ArrayList();
public String getEncryptionType() {
return this.encryptionType;
}
public Integer getFailedRecordCount() {
return this.failedRecordCount;
}
public List getRecords() {
return this.records;
}
public void setEncryptionType(String str) {
this.encryptionType = str;
}
public void setFailedRecordCount(Integer num) {
this.failedRecordCount = num;
}
public void setRecords(Collection collection) {
if (collection == null) {
this.records = null;
} else {
this.records = new ArrayList(collection);
}
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFailedRecordCount() != null) {
sb.append("FailedRecordCount: " + getFailedRecordCount() + ",");
}
if (getRecords() != null) {
sb.append("Records: " + getRecords() + ",");
}
if (getEncryptionType() != null) {
sb.append("EncryptionType: " + getEncryptionType());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getFailedRecordCount() == null ? 0 : getFailedRecordCount().hashCode()) + 31) * 31) + (getRecords() == null ? 0 : getRecords().hashCode())) * 31) + (getEncryptionType() != null ? getEncryptionType().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof PutRecordsResult)) {
return false;
}
PutRecordsResult putRecordsResult = (PutRecordsResult) obj;
if ((putRecordsResult.getFailedRecordCount() == null) ^ (getFailedRecordCount() == null)) {
return false;
}
if (putRecordsResult.getFailedRecordCount() != null && !putRecordsResult.getFailedRecordCount().equals(getFailedRecordCount())) {
return false;
}
if ((putRecordsResult.getRecords() == null) ^ (getRecords() == null)) {
return false;
}
if (putRecordsResult.getRecords() != null && !putRecordsResult.getRecords().equals(getRecords())) {
return false;
}
if ((putRecordsResult.getEncryptionType() == null) ^ (getEncryptionType() == null)) {
return false;
}
return putRecordsResult.getEncryptionType() == null || putRecordsResult.getEncryptionType().equals(getEncryptionType());
}
}

View File

@@ -0,0 +1,98 @@
package com.amazonaws.services.kinesis.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class PutRecordsResultEntry implements Serializable {
public String errorCode;
public String errorMessage;
public String sequenceNumber;
public String shardId;
public String getErrorCode() {
return this.errorCode;
}
public String getErrorMessage() {
return this.errorMessage;
}
public String getSequenceNumber() {
return this.sequenceNumber;
}
public String getShardId() {
return this.shardId;
}
public void setErrorCode(String str) {
this.errorCode = str;
}
public void setErrorMessage(String str) {
this.errorMessage = str;
}
public void setSequenceNumber(String str) {
this.sequenceNumber = str;
}
public void setShardId(String str) {
this.shardId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getSequenceNumber() != null) {
sb.append("SequenceNumber: " + getSequenceNumber() + ",");
}
if (getShardId() != null) {
sb.append("ShardId: " + getShardId() + ",");
}
if (getErrorCode() != null) {
sb.append("ErrorCode: " + getErrorCode() + ",");
}
if (getErrorMessage() != null) {
sb.append("ErrorMessage: " + getErrorMessage());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((((getSequenceNumber() == null ? 0 : getSequenceNumber().hashCode()) + 31) * 31) + (getShardId() == null ? 0 : getShardId().hashCode())) * 31) + (getErrorCode() == null ? 0 : getErrorCode().hashCode())) * 31) + (getErrorMessage() != null ? getErrorMessage().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof PutRecordsResultEntry)) {
return false;
}
PutRecordsResultEntry putRecordsResultEntry = (PutRecordsResultEntry) obj;
if ((putRecordsResultEntry.getSequenceNumber() == null) ^ (getSequenceNumber() == null)) {
return false;
}
if (putRecordsResultEntry.getSequenceNumber() != null && !putRecordsResultEntry.getSequenceNumber().equals(getSequenceNumber())) {
return false;
}
if ((putRecordsResultEntry.getShardId() == null) ^ (getShardId() == null)) {
return false;
}
if (putRecordsResultEntry.getShardId() != null && !putRecordsResultEntry.getShardId().equals(getShardId())) {
return false;
}
if ((putRecordsResultEntry.getErrorCode() == null) ^ (getErrorCode() == null)) {
return false;
}
if (putRecordsResultEntry.getErrorCode() != null && !putRecordsResultEntry.getErrorCode().equals(getErrorCode())) {
return false;
}
if ((putRecordsResultEntry.getErrorMessage() == null) ^ (getErrorMessage() == null)) {
return false;
}
return putRecordsResultEntry.getErrorMessage() == null || putRecordsResultEntry.getErrorMessage().equals(getErrorMessage());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceInUseException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.kinesis.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceNotFoundException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.ExpiredIteratorException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ExpiredIteratorExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ExpiredIteratorExceptionUnmarshaller() {
super(ExpiredIteratorException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ExpiredIteratorException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.ExpiredNextTokenException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ExpiredNextTokenExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ExpiredNextTokenExceptionUnmarshaller() {
super(ExpiredNextTokenException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ExpiredNextTokenException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.InvalidArgumentException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InvalidArgumentExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InvalidArgumentExceptionUnmarshaller() {
super(InvalidArgumentException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InvalidArgumentException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSAccessDeniedException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSAccessDeniedExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSAccessDeniedExceptionUnmarshaller() {
super(KMSAccessDeniedException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSAccessDeniedException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSDisabledException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSDisabledExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSDisabledExceptionUnmarshaller() {
super(KMSDisabledException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSDisabledException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSInvalidStateException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSInvalidStateExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSInvalidStateExceptionUnmarshaller() {
super(KMSInvalidStateException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSInvalidStateException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSNotFoundException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSNotFoundExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSNotFoundExceptionUnmarshaller() {
super(KMSNotFoundException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSNotFoundException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSOptInRequiredException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSOptInRequiredExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSOptInRequiredExceptionUnmarshaller() {
super(KMSOptInRequiredException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSOptInRequired");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.KMSThrottlingException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class KMSThrottlingExceptionUnmarshaller extends JsonErrorUnmarshaller {
public KMSThrottlingExceptionUnmarshaller() {
super(KMSThrottlingException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("KMSThrottlingException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.LimitExceededException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class LimitExceededExceptionUnmarshaller extends JsonErrorUnmarshaller {
public LimitExceededExceptionUnmarshaller() {
super(LimitExceededException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("LimitExceededException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.ProvisionedThroughputExceededException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ProvisionedThroughputExceededExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ProvisionedThroughputExceededExceptionUnmarshaller() {
super(ProvisionedThroughputExceededException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ProvisionedThroughputExceededException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,37 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.services.kinesis.model.PutRecordsRequestEntry;
import com.amazonaws.util.json.AwsJsonWriter;
import java.nio.ByteBuffer;
/* loaded from: classes.dex */
class PutRecordsRequestEntryJsonMarshaller {
public static PutRecordsRequestEntryJsonMarshaller instance;
public void marshall(PutRecordsRequestEntry putRecordsRequestEntry, AwsJsonWriter awsJsonWriter) {
awsJsonWriter.beginObject();
if (putRecordsRequestEntry.getData() != null) {
ByteBuffer data = putRecordsRequestEntry.getData();
awsJsonWriter.name("Data");
awsJsonWriter.value(data);
}
if (putRecordsRequestEntry.getExplicitHashKey() != null) {
String explicitHashKey = putRecordsRequestEntry.getExplicitHashKey();
awsJsonWriter.name("ExplicitHashKey");
awsJsonWriter.value(explicitHashKey);
}
if (putRecordsRequestEntry.getPartitionKey() != null) {
String partitionKey = putRecordsRequestEntry.getPartitionKey();
awsJsonWriter.name("PartitionKey");
awsJsonWriter.value(partitionKey);
}
awsJsonWriter.endObject();
}
public static PutRecordsRequestEntryJsonMarshaller getInstance() {
if (instance == null) {
instance = new PutRecordsRequestEntryJsonMarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,67 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.kinesis.model.PutRecordsRequest;
import com.amazonaws.services.kinesis.model.PutRecordsRequestEntry;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.OutputStreamWriter;
import java.util.List;
import java.util.zip.GZIPOutputStream;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class PutRecordsRequestMarshaller {
public Request marshall(PutRecordsRequest putRecordsRequest) {
if (putRecordsRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(PutRecordsRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(putRecordsRequest, "AmazonKinesis");
defaultRequest.addHeader("X-Amz-Target", "Kinesis_20131202.PutRecords");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
GZIPOutputStream gZIPOutputStream = new GZIPOutputStream(byteArrayOutputStream, 8192);
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(gZIPOutputStream, StringUtils.UTF8);
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(outputStreamWriter);
jsonWriter.beginObject();
if (putRecordsRequest.getRecords() != null) {
List<PutRecordsRequestEntry> records = putRecordsRequest.getRecords();
jsonWriter.name("Records");
jsonWriter.beginArray();
for (PutRecordsRequestEntry putRecordsRequestEntry : records) {
if (putRecordsRequestEntry != null) {
PutRecordsRequestEntryJsonMarshaller.getInstance().marshall(putRecordsRequestEntry, jsonWriter);
}
}
jsonWriter.endArray();
}
if (putRecordsRequest.getStreamName() != null) {
String streamName = putRecordsRequest.getStreamName();
jsonWriter.name("StreamName");
jsonWriter.value(streamName);
}
jsonWriter.endObject();
jsonWriter.flush();
gZIPOutputStream.finish();
outputStreamWriter.close();
byte[] byteArray = byteArrayOutputStream.toByteArray();
defaultRequest.setContent(new ByteArrayInputStream(byteArray));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(byteArray.length));
defaultRequest.addHeader(HTTP.CONTENT_ENCODING, "gzip");
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,46 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.services.kinesis.model.PutRecordsResultEntry;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
class PutRecordsResultEntryJsonUnmarshaller implements Unmarshaller<PutRecordsResultEntry, JsonUnmarshallerContext> {
public static PutRecordsResultEntryJsonUnmarshaller instance;
@Override // com.amazonaws.transform.Unmarshaller
public PutRecordsResultEntry unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
PutRecordsResultEntry putRecordsResultEntry = new PutRecordsResultEntry();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("SequenceNumber")) {
putRecordsResultEntry.setSequenceNumber(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("ShardId")) {
putRecordsResultEntry.setShardId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("ErrorCode")) {
putRecordsResultEntry.setErrorCode(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("ErrorMessage")) {
putRecordsResultEntry.setErrorMessage(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return putRecordsResultEntry;
}
public static PutRecordsResultEntryJsonUnmarshaller getInstance() {
if (instance == null) {
instance = new PutRecordsResultEntryJsonUnmarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,33 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.services.kinesis.model.PutRecordsResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.ListUnmarshaller;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$IntegerJsonUnmarshaller;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class PutRecordsResultJsonUnmarshaller implements Unmarshaller<PutRecordsResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public PutRecordsResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
PutRecordsResult putRecordsResult = new PutRecordsResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("FailedRecordCount")) {
putRecordsResult.setFailedRecordCount(SimpleTypeJsonUnmarshallers$IntegerJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Records")) {
putRecordsResult.setRecords(new ListUnmarshaller(PutRecordsResultEntryJsonUnmarshaller.getInstance()).unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("EncryptionType")) {
putRecordsResult.setEncryptionType(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return putRecordsResult;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.ResourceInUseException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceInUseExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceInUseExceptionUnmarshaller() {
super(ResourceInUseException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceInUseException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.kinesis.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.kinesis.model.ResourceNotFoundException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceNotFoundExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceNotFoundExceptionUnmarshaller() {
super(ResourceNotFoundException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceNotFoundException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,9 @@
package com.amazonaws.services.securitytoken;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityResult;
/* loaded from: classes.dex */
public interface AWSSecurityTokenService {
AssumeRoleWithWebIdentityResult assumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest assumeRoleWithWebIdentityRequest);
}

View File

@@ -0,0 +1,120 @@
package com.amazonaws.services.securitytoken;
import com.amazonaws.AmazonWebServiceClient;
import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.Request;
import com.amazonaws.Response;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.handlers.HandlerChainFactory;
import com.amazonaws.http.DefaultErrorResponseHandler;
import com.amazonaws.http.ExecutionContext;
import com.amazonaws.http.HttpClient;
import com.amazonaws.http.StaxResponseHandler;
import com.amazonaws.http.UrlHttpClient;
import com.amazonaws.internal.StaticCredentialsProvider;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityResult;
import com.amazonaws.services.securitytoken.model.transform.AssumeRoleWithWebIdentityRequestMarshaller;
import com.amazonaws.services.securitytoken.model.transform.AssumeRoleWithWebIdentityResultStaxUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.ExpiredTokenExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.IDPCommunicationErrorExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.IDPRejectedClaimExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.InvalidAuthorizationMessageExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.InvalidIdentityTokenExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.MalformedPolicyDocumentExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.PackedPolicyTooLargeExceptionUnmarshaller;
import com.amazonaws.services.securitytoken.model.transform.RegionDisabledExceptionUnmarshaller;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.AWSRequestMetrics;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public class AWSSecurityTokenServiceClient extends AmazonWebServiceClient implements AWSSecurityTokenService {
public AWSCredentialsProvider awsCredentialsProvider;
public final List exceptionUnmarshallers;
public static ClientConfiguration adjustClientConfiguration(ClientConfiguration clientConfiguration) {
return clientConfiguration;
}
public AWSSecurityTokenServiceClient(AWSCredentials aWSCredentials, ClientConfiguration clientConfiguration) {
this(new StaticCredentialsProvider(aWSCredentials), clientConfiguration);
}
public AWSSecurityTokenServiceClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration) {
this(aWSCredentialsProvider, clientConfiguration, new UrlHttpClient(clientConfiguration));
}
public AWSSecurityTokenServiceClient(AWSCredentialsProvider aWSCredentialsProvider, ClientConfiguration clientConfiguration, HttpClient httpClient) {
super(adjustClientConfiguration(clientConfiguration), httpClient);
this.exceptionUnmarshallers = new ArrayList();
this.awsCredentialsProvider = aWSCredentialsProvider;
init();
}
public final void init() {
this.exceptionUnmarshallers.add(new ExpiredTokenExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new IDPCommunicationErrorExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new IDPRejectedClaimExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new InvalidAuthorizationMessageExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new InvalidIdentityTokenExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new MalformedPolicyDocumentExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new PackedPolicyTooLargeExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new RegionDisabledExceptionUnmarshaller());
this.exceptionUnmarshallers.add(new StandardErrorUnmarshaller());
setEndpoint("sts.amazonaws.com");
this.endpointPrefix = "sts";
HandlerChainFactory handlerChainFactory = new HandlerChainFactory();
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandlerChain("/com/amazonaws/services/securitytoken/request.handlers"));
this.requestHandler2s.addAll(handlerChainFactory.newRequestHandler2Chain("/com/amazonaws/services/securitytoken/request.handler2s"));
}
@Override // com.amazonaws.services.securitytoken.AWSSecurityTokenService
public AssumeRoleWithWebIdentityResult assumeRoleWithWebIdentity(AssumeRoleWithWebIdentityRequest assumeRoleWithWebIdentityRequest) {
Response response;
ExecutionContext createExecutionContext = createExecutionContext(assumeRoleWithWebIdentityRequest);
AWSRequestMetrics awsRequestMetrics = createExecutionContext.getAwsRequestMetrics();
AWSRequestMetrics.Field field = AWSRequestMetrics.Field.ClientExecuteTime;
awsRequestMetrics.startEvent(field);
Request request = null;
Response response2 = null;
try {
Request marshall = new AssumeRoleWithWebIdentityRequestMarshaller().marshall(assumeRoleWithWebIdentityRequest);
try {
marshall.setAWSRequestMetrics(awsRequestMetrics);
response2 = invoke(marshall, new AssumeRoleWithWebIdentityResultStaxUnmarshaller(), createExecutionContext);
AssumeRoleWithWebIdentityResult assumeRoleWithWebIdentityResult = (AssumeRoleWithWebIdentityResult) response2.getAwsResponse();
awsRequestMetrics.endEvent(field);
endClientExecution(awsRequestMetrics, marshall, response2);
return assumeRoleWithWebIdentityResult;
} catch (Throwable th) {
th = th;
Response response3 = response2;
request = marshall;
response = response3;
awsRequestMetrics.endEvent(AWSRequestMetrics.Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response);
throw th;
}
} catch (Throwable th2) {
th = th2;
response = null;
}
}
public final Response invoke(Request request, Unmarshaller unmarshaller, ExecutionContext executionContext) {
request.setEndpoint(this.endpoint);
request.setTimeOffset(this.timeOffset);
AmazonWebServiceRequest originalRequest = request.getOriginalRequest();
AWSCredentials credentials = this.awsCredentialsProvider.getCredentials();
if (originalRequest.getRequestCredentials() != null) {
credentials = originalRequest.getRequestCredentials();
}
executionContext.setCredentials(credentials);
return this.client.execute(request, new StaxResponseHandler(unmarshaller), new DefaultErrorResponseHandler(this.exceptionUnmarshallers), executionContext);
}
}

View File

@@ -0,0 +1,146 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.List;
/* loaded from: classes.dex */
public class AssumeRoleWithWebIdentityRequest extends AmazonWebServiceRequest implements Serializable {
public Integer durationSeconds;
public String policy;
public List policyArns;
public String providerId;
public String roleArn;
public String roleSessionName;
public String webIdentityToken;
public Integer getDurationSeconds() {
return this.durationSeconds;
}
public String getPolicy() {
return this.policy;
}
public List getPolicyArns() {
return this.policyArns;
}
public String getProviderId() {
return this.providerId;
}
public String getRoleArn() {
return this.roleArn;
}
public String getRoleSessionName() {
return this.roleSessionName;
}
public String getWebIdentityToken() {
return this.webIdentityToken;
}
public AssumeRoleWithWebIdentityRequest withDurationSeconds(Integer num) {
this.durationSeconds = num;
return this;
}
public AssumeRoleWithWebIdentityRequest withRoleArn(String str) {
this.roleArn = str;
return this;
}
public AssumeRoleWithWebIdentityRequest withRoleSessionName(String str) {
this.roleSessionName = str;
return this;
}
public AssumeRoleWithWebIdentityRequest withWebIdentityToken(String str) {
this.webIdentityToken = str;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getRoleArn() != null) {
sb.append("RoleArn: " + getRoleArn() + ",");
}
if (getRoleSessionName() != null) {
sb.append("RoleSessionName: " + getRoleSessionName() + ",");
}
if (getWebIdentityToken() != null) {
sb.append("WebIdentityToken: " + getWebIdentityToken() + ",");
}
if (getProviderId() != null) {
sb.append("ProviderId: " + getProviderId() + ",");
}
if (getPolicyArns() != null) {
sb.append("PolicyArns: " + getPolicyArns() + ",");
}
if (getPolicy() != null) {
sb.append("Policy: " + getPolicy() + ",");
}
if (getDurationSeconds() != null) {
sb.append("DurationSeconds: " + getDurationSeconds());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((((((((((getRoleArn() == null ? 0 : getRoleArn().hashCode()) + 31) * 31) + (getRoleSessionName() == null ? 0 : getRoleSessionName().hashCode())) * 31) + (getWebIdentityToken() == null ? 0 : getWebIdentityToken().hashCode())) * 31) + (getProviderId() == null ? 0 : getProviderId().hashCode())) * 31) + (getPolicyArns() == null ? 0 : getPolicyArns().hashCode())) * 31) + (getPolicy() == null ? 0 : getPolicy().hashCode())) * 31) + (getDurationSeconds() != null ? getDurationSeconds().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof AssumeRoleWithWebIdentityRequest)) {
return false;
}
AssumeRoleWithWebIdentityRequest assumeRoleWithWebIdentityRequest = (AssumeRoleWithWebIdentityRequest) obj;
if ((assumeRoleWithWebIdentityRequest.getRoleArn() == null) ^ (getRoleArn() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getRoleArn() != null && !assumeRoleWithWebIdentityRequest.getRoleArn().equals(getRoleArn())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getRoleSessionName() == null) ^ (getRoleSessionName() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getRoleSessionName() != null && !assumeRoleWithWebIdentityRequest.getRoleSessionName().equals(getRoleSessionName())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getWebIdentityToken() == null) ^ (getWebIdentityToken() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getWebIdentityToken() != null && !assumeRoleWithWebIdentityRequest.getWebIdentityToken().equals(getWebIdentityToken())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getProviderId() == null) ^ (getProviderId() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getProviderId() != null && !assumeRoleWithWebIdentityRequest.getProviderId().equals(getProviderId())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getPolicyArns() == null) ^ (getPolicyArns() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getPolicyArns() != null && !assumeRoleWithWebIdentityRequest.getPolicyArns().equals(getPolicyArns())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getPolicy() == null) ^ (getPolicy() == null)) {
return false;
}
if (assumeRoleWithWebIdentityRequest.getPolicy() != null && !assumeRoleWithWebIdentityRequest.getPolicy().equals(getPolicy())) {
return false;
}
if ((assumeRoleWithWebIdentityRequest.getDurationSeconds() == null) ^ (getDurationSeconds() == null)) {
return false;
}
return assumeRoleWithWebIdentityRequest.getDurationSeconds() == null || assumeRoleWithWebIdentityRequest.getDurationSeconds().equals(getDurationSeconds());
}
}

View File

@@ -0,0 +1,152 @@
package com.amazonaws.services.securitytoken.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class AssumeRoleWithWebIdentityResult implements Serializable {
public AssumedRoleUser assumedRoleUser;
public String audience;
public Credentials credentials;
public Integer packedPolicySize;
public String provider;
public String sourceIdentity;
public String subjectFromWebIdentityToken;
public AssumedRoleUser getAssumedRoleUser() {
return this.assumedRoleUser;
}
public String getAudience() {
return this.audience;
}
public Credentials getCredentials() {
return this.credentials;
}
public Integer getPackedPolicySize() {
return this.packedPolicySize;
}
public String getProvider() {
return this.provider;
}
public String getSourceIdentity() {
return this.sourceIdentity;
}
public String getSubjectFromWebIdentityToken() {
return this.subjectFromWebIdentityToken;
}
public void setAssumedRoleUser(AssumedRoleUser assumedRoleUser) {
this.assumedRoleUser = assumedRoleUser;
}
public void setAudience(String str) {
this.audience = str;
}
public void setCredentials(Credentials credentials) {
this.credentials = credentials;
}
public void setPackedPolicySize(Integer num) {
this.packedPolicySize = num;
}
public void setProvider(String str) {
this.provider = str;
}
public void setSourceIdentity(String str) {
this.sourceIdentity = str;
}
public void setSubjectFromWebIdentityToken(String str) {
this.subjectFromWebIdentityToken = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getCredentials() != null) {
sb.append("Credentials: " + getCredentials() + ",");
}
if (getSubjectFromWebIdentityToken() != null) {
sb.append("SubjectFromWebIdentityToken: " + getSubjectFromWebIdentityToken() + ",");
}
if (getAssumedRoleUser() != null) {
sb.append("AssumedRoleUser: " + getAssumedRoleUser() + ",");
}
if (getPackedPolicySize() != null) {
sb.append("PackedPolicySize: " + getPackedPolicySize() + ",");
}
if (getProvider() != null) {
sb.append("Provider: " + getProvider() + ",");
}
if (getAudience() != null) {
sb.append("Audience: " + getAudience() + ",");
}
if (getSourceIdentity() != null) {
sb.append("SourceIdentity: " + getSourceIdentity());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((((((((((getCredentials() == null ? 0 : getCredentials().hashCode()) + 31) * 31) + (getSubjectFromWebIdentityToken() == null ? 0 : getSubjectFromWebIdentityToken().hashCode())) * 31) + (getAssumedRoleUser() == null ? 0 : getAssumedRoleUser().hashCode())) * 31) + (getPackedPolicySize() == null ? 0 : getPackedPolicySize().hashCode())) * 31) + (getProvider() == null ? 0 : getProvider().hashCode())) * 31) + (getAudience() == null ? 0 : getAudience().hashCode())) * 31) + (getSourceIdentity() != null ? getSourceIdentity().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof AssumeRoleWithWebIdentityResult)) {
return false;
}
AssumeRoleWithWebIdentityResult assumeRoleWithWebIdentityResult = (AssumeRoleWithWebIdentityResult) obj;
if ((assumeRoleWithWebIdentityResult.getCredentials() == null) ^ (getCredentials() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getCredentials() != null && !assumeRoleWithWebIdentityResult.getCredentials().equals(getCredentials())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getSubjectFromWebIdentityToken() == null) ^ (getSubjectFromWebIdentityToken() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getSubjectFromWebIdentityToken() != null && !assumeRoleWithWebIdentityResult.getSubjectFromWebIdentityToken().equals(getSubjectFromWebIdentityToken())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getAssumedRoleUser() == null) ^ (getAssumedRoleUser() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getAssumedRoleUser() != null && !assumeRoleWithWebIdentityResult.getAssumedRoleUser().equals(getAssumedRoleUser())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getPackedPolicySize() == null) ^ (getPackedPolicySize() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getPackedPolicySize() != null && !assumeRoleWithWebIdentityResult.getPackedPolicySize().equals(getPackedPolicySize())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getProvider() == null) ^ (getProvider() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getProvider() != null && !assumeRoleWithWebIdentityResult.getProvider().equals(getProvider())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getAudience() == null) ^ (getAudience() == null)) {
return false;
}
if (assumeRoleWithWebIdentityResult.getAudience() != null && !assumeRoleWithWebIdentityResult.getAudience().equals(getAudience())) {
return false;
}
if ((assumeRoleWithWebIdentityResult.getSourceIdentity() == null) ^ (getSourceIdentity() == null)) {
return false;
}
return assumeRoleWithWebIdentityResult.getSourceIdentity() == null || assumeRoleWithWebIdentityResult.getSourceIdentity().equals(getSourceIdentity());
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.securitytoken.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class AssumedRoleUser implements Serializable {
public String arn;
public String assumedRoleId;
public String getArn() {
return this.arn;
}
public String getAssumedRoleId() {
return this.assumedRoleId;
}
public void setArn(String str) {
this.arn = str;
}
public void setAssumedRoleId(String str) {
this.assumedRoleId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAssumedRoleId() != null) {
sb.append("AssumedRoleId: " + getAssumedRoleId() + ",");
}
if (getArn() != null) {
sb.append("Arn: " + getArn());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getAssumedRoleId() == null ? 0 : getAssumedRoleId().hashCode()) + 31) * 31) + (getArn() != null ? getArn().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof AssumedRoleUser)) {
return false;
}
AssumedRoleUser assumedRoleUser = (AssumedRoleUser) obj;
if ((assumedRoleUser.getAssumedRoleId() == null) ^ (getAssumedRoleId() == null)) {
return false;
}
if (assumedRoleUser.getAssumedRoleId() != null && !assumedRoleUser.getAssumedRoleId().equals(getAssumedRoleId())) {
return false;
}
if ((assumedRoleUser.getArn() == null) ^ (getArn() == null)) {
return false;
}
return assumedRoleUser.getArn() == null || assumedRoleUser.getArn().equals(getArn());
}
}

View File

@@ -0,0 +1,99 @@
package com.amazonaws.services.securitytoken.model;
import java.io.Serializable;
import java.util.Date;
/* loaded from: classes.dex */
public class Credentials implements Serializable {
public String accessKeyId;
public Date expiration;
public String secretAccessKey;
public String sessionToken;
public String getAccessKeyId() {
return this.accessKeyId;
}
public Date getExpiration() {
return this.expiration;
}
public String getSecretAccessKey() {
return this.secretAccessKey;
}
public String getSessionToken() {
return this.sessionToken;
}
public void setAccessKeyId(String str) {
this.accessKeyId = str;
}
public void setExpiration(Date date) {
this.expiration = date;
}
public void setSecretAccessKey(String str) {
this.secretAccessKey = str;
}
public void setSessionToken(String str) {
this.sessionToken = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccessKeyId() != null) {
sb.append("AccessKeyId: " + getAccessKeyId() + ",");
}
if (getSecretAccessKey() != null) {
sb.append("SecretAccessKey: " + getSecretAccessKey() + ",");
}
if (getSessionToken() != null) {
sb.append("SessionToken: " + getSessionToken() + ",");
}
if (getExpiration() != null) {
sb.append("Expiration: " + getExpiration());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((((getAccessKeyId() == null ? 0 : getAccessKeyId().hashCode()) + 31) * 31) + (getSecretAccessKey() == null ? 0 : getSecretAccessKey().hashCode())) * 31) + (getSessionToken() == null ? 0 : getSessionToken().hashCode())) * 31) + (getExpiration() != null ? getExpiration().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof Credentials)) {
return false;
}
Credentials credentials = (Credentials) obj;
if ((credentials.getAccessKeyId() == null) ^ (getAccessKeyId() == null)) {
return false;
}
if (credentials.getAccessKeyId() != null && !credentials.getAccessKeyId().equals(getAccessKeyId())) {
return false;
}
if ((credentials.getSecretAccessKey() == null) ^ (getSecretAccessKey() == null)) {
return false;
}
if (credentials.getSecretAccessKey() != null && !credentials.getSecretAccessKey().equals(getSecretAccessKey())) {
return false;
}
if ((credentials.getSessionToken() == null) ^ (getSessionToken() == null)) {
return false;
}
if (credentials.getSessionToken() != null && !credentials.getSessionToken().equals(getSessionToken())) {
return false;
}
if ((credentials.getExpiration() == null) ^ (getExpiration() == null)) {
return false;
}
return credentials.getExpiration() == null || credentials.getExpiration().equals(getExpiration());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ExpiredTokenException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class IDPCommunicationErrorException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class IDPRejectedClaimException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidAuthorizationMessageException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidIdentityTokenException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class MalformedPolicyDocumentException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class PackedPolicyTooLargeException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.securitytoken.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class RegionDisabledException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,52 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest;
import com.amazonaws.util.StringUtils;
import java.util.Iterator;
/* loaded from: classes.dex */
public class AssumeRoleWithWebIdentityRequestMarshaller {
public Request marshall(AssumeRoleWithWebIdentityRequest assumeRoleWithWebIdentityRequest) {
if (assumeRoleWithWebIdentityRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(AssumeRoleWithWebIdentityRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(assumeRoleWithWebIdentityRequest, "AWSSecurityTokenService");
defaultRequest.addParameter("Action", "AssumeRoleWithWebIdentity");
defaultRequest.addParameter("Version", "2011-06-15");
if (assumeRoleWithWebIdentityRequest.getRoleArn() != null) {
defaultRequest.addParameter("RoleArn", StringUtils.fromString(assumeRoleWithWebIdentityRequest.getRoleArn()));
}
if (assumeRoleWithWebIdentityRequest.getRoleSessionName() != null) {
defaultRequest.addParameter("RoleSessionName", StringUtils.fromString(assumeRoleWithWebIdentityRequest.getRoleSessionName()));
}
if (assumeRoleWithWebIdentityRequest.getWebIdentityToken() != null) {
defaultRequest.addParameter("WebIdentityToken", StringUtils.fromString(assumeRoleWithWebIdentityRequest.getWebIdentityToken()));
}
if (assumeRoleWithWebIdentityRequest.getProviderId() != null) {
defaultRequest.addParameter("ProviderId", StringUtils.fromString(assumeRoleWithWebIdentityRequest.getProviderId()));
}
if (assumeRoleWithWebIdentityRequest.getPolicyArns() != null) {
Iterator it = assumeRoleWithWebIdentityRequest.getPolicyArns().iterator();
int i = 1;
while (it.hasNext()) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(it.next());
StringBuilder sb = new StringBuilder();
sb.append("PolicyArns");
sb.append(".member.");
sb.append(i);
i++;
}
}
if (assumeRoleWithWebIdentityRequest.getPolicy() != null) {
defaultRequest.addParameter("Policy", StringUtils.fromString(assumeRoleWithWebIdentityRequest.getPolicy()));
}
if (assumeRoleWithWebIdentityRequest.getDurationSeconds() != null) {
defaultRequest.addParameter("DurationSeconds", StringUtils.fromInteger(assumeRoleWithWebIdentityRequest.getDurationSeconds()));
}
return defaultRequest;
}
}

View File

@@ -0,0 +1,45 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityResult;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.Unmarshaller;
/* loaded from: classes.dex */
public class AssumeRoleWithWebIdentityResultStaxUnmarshaller implements Unmarshaller<AssumeRoleWithWebIdentityResult, StaxUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public AssumeRoleWithWebIdentityResult unmarshall(StaxUnmarshallerContext staxUnmarshallerContext) {
AssumeRoleWithWebIdentityResult assumeRoleWithWebIdentityResult = new AssumeRoleWithWebIdentityResult();
int currentDepth = staxUnmarshallerContext.getCurrentDepth();
int i = currentDepth + 1;
if (staxUnmarshallerContext.isStartOfDocument()) {
i = currentDepth + 3;
}
while (true) {
int nextEvent = staxUnmarshallerContext.nextEvent();
if (nextEvent == 1) {
break;
}
if (nextEvent == 2) {
if (staxUnmarshallerContext.testExpression("Credentials", i)) {
assumeRoleWithWebIdentityResult.setCredentials(CredentialsStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("SubjectFromWebIdentityToken", i)) {
assumeRoleWithWebIdentityResult.setSubjectFromWebIdentityToken(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("AssumedRoleUser", i)) {
assumeRoleWithWebIdentityResult.setAssumedRoleUser(AssumedRoleUserStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("PackedPolicySize", i)) {
assumeRoleWithWebIdentityResult.setPackedPolicySize(SimpleTypeStaxUnmarshallers.IntegerStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("Provider", i)) {
assumeRoleWithWebIdentityResult.setProvider(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("Audience", i)) {
assumeRoleWithWebIdentityResult.setAudience(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("SourceIdentity", i)) {
assumeRoleWithWebIdentityResult.setSourceIdentity(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
}
} else if (nextEvent == 3 && staxUnmarshallerContext.getCurrentDepth() < currentDepth) {
break;
}
}
return assumeRoleWithWebIdentityResult;
}
}

View File

@@ -0,0 +1,44 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.services.securitytoken.model.AssumedRoleUser;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.Unmarshaller;
/* loaded from: classes.dex */
class AssumedRoleUserStaxUnmarshaller implements Unmarshaller<AssumedRoleUser, StaxUnmarshallerContext> {
public static AssumedRoleUserStaxUnmarshaller instance;
@Override // com.amazonaws.transform.Unmarshaller
public AssumedRoleUser unmarshall(StaxUnmarshallerContext staxUnmarshallerContext) {
AssumedRoleUser assumedRoleUser = new AssumedRoleUser();
int currentDepth = staxUnmarshallerContext.getCurrentDepth();
int i = currentDepth + 1;
if (staxUnmarshallerContext.isStartOfDocument()) {
i = currentDepth + 3;
}
while (true) {
int nextEvent = staxUnmarshallerContext.nextEvent();
if (nextEvent == 1) {
break;
}
if (nextEvent == 2) {
if (staxUnmarshallerContext.testExpression("AssumedRoleId", i)) {
assumedRoleUser.setAssumedRoleId(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("Arn", i)) {
assumedRoleUser.setArn(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
}
} else if (nextEvent == 3 && staxUnmarshallerContext.getCurrentDepth() < currentDepth) {
break;
}
}
return assumedRoleUser;
}
public static AssumedRoleUserStaxUnmarshaller getInstance() {
if (instance == null) {
instance = new AssumedRoleUserStaxUnmarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,48 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.services.securitytoken.model.Credentials;
import com.amazonaws.transform.SimpleTypeStaxUnmarshallers;
import com.amazonaws.transform.StaxUnmarshallerContext;
import com.amazonaws.transform.Unmarshaller;
/* loaded from: classes.dex */
class CredentialsStaxUnmarshaller implements Unmarshaller<Credentials, StaxUnmarshallerContext> {
public static CredentialsStaxUnmarshaller instance;
@Override // com.amazonaws.transform.Unmarshaller
public Credentials unmarshall(StaxUnmarshallerContext staxUnmarshallerContext) {
Credentials credentials = new Credentials();
int currentDepth = staxUnmarshallerContext.getCurrentDepth();
int i = currentDepth + 1;
if (staxUnmarshallerContext.isStartOfDocument()) {
i = currentDepth + 3;
}
while (true) {
int nextEvent = staxUnmarshallerContext.nextEvent();
if (nextEvent == 1) {
break;
}
if (nextEvent == 2) {
if (staxUnmarshallerContext.testExpression("AccessKeyId", i)) {
credentials.setAccessKeyId(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("SecretAccessKey", i)) {
credentials.setSecretAccessKey(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("SessionToken", i)) {
credentials.setSessionToken(SimpleTypeStaxUnmarshallers.StringStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
} else if (staxUnmarshallerContext.testExpression("Expiration", i)) {
credentials.setExpiration(SimpleTypeStaxUnmarshallers.DateStaxUnmarshaller.getInstance().unmarshall(staxUnmarshallerContext));
}
} else if (nextEvent == 3 && staxUnmarshallerContext.getCurrentDepth() < currentDepth) {
break;
}
}
return credentials;
}
public static CredentialsStaxUnmarshaller getInstance() {
if (instance == null) {
instance = new CredentialsStaxUnmarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.ExpiredTokenException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class ExpiredTokenExceptionUnmarshaller extends StandardErrorUnmarshaller {
public ExpiredTokenExceptionUnmarshaller() {
super(ExpiredTokenException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("ExpiredTokenException")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.IDPCommunicationErrorException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class IDPCommunicationErrorExceptionUnmarshaller extends StandardErrorUnmarshaller {
public IDPCommunicationErrorExceptionUnmarshaller() {
super(IDPCommunicationErrorException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("IDPCommunicationError")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.IDPRejectedClaimException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class IDPRejectedClaimExceptionUnmarshaller extends StandardErrorUnmarshaller {
public IDPRejectedClaimExceptionUnmarshaller() {
super(IDPRejectedClaimException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("IDPRejectedClaim")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.InvalidAuthorizationMessageException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class InvalidAuthorizationMessageExceptionUnmarshaller extends StandardErrorUnmarshaller {
public InvalidAuthorizationMessageExceptionUnmarshaller() {
super(InvalidAuthorizationMessageException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("InvalidAuthorizationMessageException")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.InvalidIdentityTokenException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class InvalidIdentityTokenExceptionUnmarshaller extends StandardErrorUnmarshaller {
public InvalidIdentityTokenExceptionUnmarshaller() {
super(InvalidIdentityTokenException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("InvalidIdentityToken")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.MalformedPolicyDocumentException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class MalformedPolicyDocumentExceptionUnmarshaller extends StandardErrorUnmarshaller {
public MalformedPolicyDocumentExceptionUnmarshaller() {
super(MalformedPolicyDocumentException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("MalformedPolicyDocument")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.PackedPolicyTooLargeException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class PackedPolicyTooLargeExceptionUnmarshaller extends StandardErrorUnmarshaller {
public PackedPolicyTooLargeExceptionUnmarshaller() {
super(PackedPolicyTooLargeException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("PackedPolicyTooLarge")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}

View File

@@ -0,0 +1,23 @@
package com.amazonaws.services.securitytoken.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.services.securitytoken.model.RegionDisabledException;
import com.amazonaws.transform.StandardErrorUnmarshaller;
import org.w3c.dom.Node;
/* loaded from: classes.dex */
public class RegionDisabledExceptionUnmarshaller extends StandardErrorUnmarshaller {
public RegionDisabledExceptionUnmarshaller() {
super(RegionDisabledException.class);
}
@Override // com.amazonaws.transform.StandardErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(Node node) {
String parseErrorCode = parseErrorCode(node);
if (parseErrorCode != null && parseErrorCode.equals("RegionDisabledException")) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(node));
}
return null;
}
}