/* * 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.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents the response of the test invoke request for a custom Authorizer *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestInvokeAuthorizerResult extends com.amazonaws.AmazonWebServiceResult* The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. *
*/ private Integer clientStatus; /** ** The API Gateway execution log for the test authorizer request. *
*/ private String log; /** ** The execution latency of the test authorizer request. *
*/ private Long latency; /** ** The principal identity returned by the Authorizer *
*/ private String principalId; /** ** The JSON policy document returned by the Authorizer *
*/ private String policy; /** ** The authorization response. *
*/ private java.util.Map* The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. *
*/ private java.util.Map* The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. *
* * @param clientStatus * The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. */ public void setClientStatus(Integer clientStatus) { this.clientStatus = clientStatus; } /** ** The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. *
* * @return The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. */ public Integer getClientStatus() { return this.clientStatus; } /** ** The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. *
* * @param clientStatus * The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withClientStatus(Integer clientStatus) { setClientStatus(clientStatus); return this; } /** ** The API Gateway execution log for the test authorizer request. *
* * @param log * The API Gateway execution log for the test authorizer request. */ public void setLog(String log) { this.log = log; } /** ** The API Gateway execution log for the test authorizer request. *
* * @return The API Gateway execution log for the test authorizer request. */ public String getLog() { return this.log; } /** ** The API Gateway execution log for the test authorizer request. *
* * @param log * The API Gateway execution log for the test authorizer request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withLog(String log) { setLog(log); return this; } /** ** The execution latency of the test authorizer request. *
* * @param latency * The execution latency of the test authorizer request. */ public void setLatency(Long latency) { this.latency = latency; } /** ** The execution latency of the test authorizer request. *
* * @return The execution latency of the test authorizer request. */ public Long getLatency() { return this.latency; } /** ** The execution latency of the test authorizer request. *
* * @param latency * The execution latency of the test authorizer request. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withLatency(Long latency) { setLatency(latency); return this; } /** ** The principal identity returned by the Authorizer *
* * @param principalId * The principal identity returned by the Authorizer */ public void setPrincipalId(String principalId) { this.principalId = principalId; } /** ** The principal identity returned by the Authorizer *
* * @return The principal identity returned by the Authorizer */ public String getPrincipalId() { return this.principalId; } /** ** The principal identity returned by the Authorizer *
* * @param principalId * The principal identity returned by the Authorizer * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withPrincipalId(String principalId) { setPrincipalId(principalId); return this; } /** ** The JSON policy document returned by the Authorizer *
* * @param policy * The JSON policy document returned by the Authorizer */ public void setPolicy(String policy) { this.policy = policy; } /** ** The JSON policy document returned by the Authorizer *
* * @return The JSON policy document returned by the Authorizer */ public String getPolicy() { return this.policy; } /** ** The JSON policy document returned by the Authorizer *
* * @param policy * The JSON policy document returned by the Authorizer * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withPolicy(String policy) { setPolicy(policy); return this; } /** ** The authorization response. *
* * @return The authorization response. */ public java.util.Map* The authorization response. *
* * @param authorization * The authorization response. */ public void setAuthorization(java.util.Map* The authorization response. *
* * @param authorization * The authorization response. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withAuthorization(java.util.Map* The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. *
* * @return The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. */ public java.util.Map* The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. *
* * @param claims * The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. */ public void setClaims(java.util.Map* The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. *
* * @param claims * The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool * configured for the API. * @return Returns a reference to this object so that method calls can be chained together. */ public TestInvokeAuthorizerResult withClaims(java.util.Map