All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Specifies the authorization configuration for using an Lambda function with your AppSync GraphQL API endpoint. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). *

*/ private Integer authorizerResultTtlInSeconds; /** *

* The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard * Lambda ARN, a version ARN (.../v3), or an alias ARN. *

*/ private String authorizerUri; /** *

* A regular expression for validation of tokens before the Lambda function is called. *

*/ private String identityValidationExpression; /** *

* The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). *

* * @param authorizerResultTtlInSeconds * The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). */ public void setAuthorizerResultTtlInSeconds(Integer authorizerResultTtlInSeconds) { this.authorizerResultTtlInSeconds = authorizerResultTtlInSeconds; } /** *

* The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). *

* * @return The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). */ public Integer getAuthorizerResultTtlInSeconds() { return this.authorizerResultTtlInSeconds; } /** *

* The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). *

* * @param authorizerResultTtlInSeconds * The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails withAuthorizerResultTtlInSeconds(Integer authorizerResultTtlInSeconds) { setAuthorizerResultTtlInSeconds(authorizerResultTtlInSeconds); return this; } /** *

* The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard * Lambda ARN, a version ARN (.../v3), or an alias ARN. *

* * @param authorizerUri * The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a * standard Lambda ARN, a version ARN (.../v3), or an alias ARN. */ public void setAuthorizerUri(String authorizerUri) { this.authorizerUri = authorizerUri; } /** *

* The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard * Lambda ARN, a version ARN (.../v3), or an alias ARN. *

* * @return The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a * standard Lambda ARN, a version ARN (.../v3), or an alias ARN. */ public String getAuthorizerUri() { return this.authorizerUri; } /** *

* The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard * Lambda ARN, a version ARN (.../v3), or an alias ARN. *

* * @param authorizerUri * The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a * standard Lambda ARN, a version ARN (.../v3), or an alias ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails withAuthorizerUri(String authorizerUri) { setAuthorizerUri(authorizerUri); return this; } /** *

* A regular expression for validation of tokens before the Lambda function is called. *

* * @param identityValidationExpression * A regular expression for validation of tokens before the Lambda function is called. */ public void setIdentityValidationExpression(String identityValidationExpression) { this.identityValidationExpression = identityValidationExpression; } /** *

* A regular expression for validation of tokens before the Lambda function is called. *

* * @return A regular expression for validation of tokens before the Lambda function is called. */ public String getIdentityValidationExpression() { return this.identityValidationExpression; } /** *

* A regular expression for validation of tokens before the Lambda function is called. *

* * @param identityValidationExpression * A regular expression for validation of tokens before the Lambda function is called. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails withIdentityValidationExpression(String identityValidationExpression) { setIdentityValidationExpression(identityValidationExpression); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAuthorizerResultTtlInSeconds() != null) sb.append("AuthorizerResultTtlInSeconds: ").append(getAuthorizerResultTtlInSeconds()).append(","); if (getAuthorizerUri() != null) sb.append("AuthorizerUri: ").append(getAuthorizerUri()).append(","); if (getIdentityValidationExpression() != null) sb.append("IdentityValidationExpression: ").append(getIdentityValidationExpression()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails == false) return false; AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails other = (AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails) obj; if (other.getAuthorizerResultTtlInSeconds() == null ^ this.getAuthorizerResultTtlInSeconds() == null) return false; if (other.getAuthorizerResultTtlInSeconds() != null && other.getAuthorizerResultTtlInSeconds().equals(this.getAuthorizerResultTtlInSeconds()) == false) return false; if (other.getAuthorizerUri() == null ^ this.getAuthorizerUri() == null) return false; if (other.getAuthorizerUri() != null && other.getAuthorizerUri().equals(this.getAuthorizerUri()) == false) return false; if (other.getIdentityValidationExpression() == null ^ this.getIdentityValidationExpression() == null) return false; if (other.getIdentityValidationExpression() != null && other.getIdentityValidationExpression().equals(this.getIdentityValidationExpression()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAuthorizerResultTtlInSeconds() == null) ? 0 : getAuthorizerResultTtlInSeconds().hashCode()); hashCode = prime * hashCode + ((getAuthorizerUri() == null) ? 0 : getAuthorizerUri().hashCode()); hashCode = prime * hashCode + ((getIdentityValidationExpression() == null) ? 0 : getIdentityValidationExpression().hashCode()); return hashCode; } @Override public AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails clone() { try { return (AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsAppSyncGraphQlApiLambdaAuthorizerConfigDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy