public class InvokeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description | 
|---|
| InvokeRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| InvokeRequest | clone() | 
| boolean | equals(Object obj) | 
| String | getClientContext()
 Using the  ClientContextyou can pass client-specific
 information to the Lambda function you are invoking. | 
| String | getFunctionName()
 The Lambda function name. | 
| String | getInvocationType()
 By default, the  InvokeAPI assumesRequestResponseinvocation type. | 
| String | getLogType()
 You can set this optional parameter to  Tailin the request
 only if you specify theInvocationTypeparameter with valueRequestResponse. | 
| ByteBuffer | getPayload()
 JSON that you want to provide to your Lambda function as input. | 
| String | getQualifier()
 You can use this optional parameter to specify a Lambda function version
 or alias name. | 
| int | hashCode() | 
| void | setClientContext(String clientContext)
 Using the  ClientContextyou can pass client-specific
 information to the Lambda function you are invoking. | 
| void | setFunctionName(String functionName)
 The Lambda function name. | 
| void | setInvocationType(InvocationType invocationType)
 By default, the  InvokeAPI assumesRequestResponseinvocation type. | 
| void | setInvocationType(String invocationType)
 By default, the  InvokeAPI assumesRequestResponseinvocation type. | 
| void | setLogType(LogType logType)
 You can set this optional parameter to  Tailin the request
 only if you specify theInvocationTypeparameter with valueRequestResponse. | 
| void | setLogType(String logType)
 You can set this optional parameter to  Tailin the request
 only if you specify theInvocationTypeparameter with valueRequestResponse. | 
| void | setPayload(ByteBuffer payload)
 JSON that you want to provide to your Lambda function as input. | 
| void | setPayload(String payload)
 JSON that you want to provide to your Lambda function as input. | 
| void | setQualifier(String qualifier)
 You can use this optional parameter to specify a Lambda function version
 or alias name. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| InvokeRequest | withClientContext(String clientContext)
 Using the  ClientContextyou can pass client-specific
 information to the Lambda function you are invoking. | 
| InvokeRequest | withFunctionName(String functionName)
 The Lambda function name. | 
| InvokeRequest | withInvocationType(InvocationType invocationType)
 By default, the  InvokeAPI assumesRequestResponseinvocation type. | 
| InvokeRequest | withInvocationType(String invocationType)
 By default, the  InvokeAPI assumesRequestResponseinvocation type. | 
| InvokeRequest | withLogType(LogType logType)
 You can set this optional parameter to  Tailin the request
 only if you specify theInvocationTypeparameter with valueRequestResponse. | 
| InvokeRequest | withLogType(String logType)
 You can set this optional parameter to  Tailin the request
 only if you specify theInvocationTypeparameter with valueRequestResponse. | 
| InvokeRequest | withPayload(ByteBuffer payload)
 JSON that you want to provide to your Lambda function as input. | 
| InvokeRequest | withPayload(String payload)
 JSON that you want to provide to your Lambda function as input. | 
| InvokeRequest | withQualifier(String qualifier)
 You can use this optional parameter to specify a Lambda function version
 or alias name. | 
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setFunctionName(String functionName)
The Lambda function name.
 You can specify a function name (for example, Thumbnail) or
 you can specify Amazon Resource Name (ARN) of the function (for example,
 arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS
 Lambda also allows you to specify a partial ARN (for example,
 account-id:Thumbnail). Note that the length constraint
 applies only to the ARN. If you specify only the function name, it is
 limited to 64 character in length.
 
functionName - The Lambda function name. 
        
        You can specify a function name (for example,
        Thumbnail) or you can specify Amazon Resource Name
        (ARN) of the function (for example,
        arn:aws:lambda:us-west-2:account-id:function:ThumbNail
        ). AWS Lambda also allows you to specify a partial ARN (for
        example, account-id:Thumbnail). Note that the length
        constraint applies only to the ARN. If you specify only the
        function name, it is limited to 64 character in length.
public String getFunctionName()
The Lambda function name.
 You can specify a function name (for example, Thumbnail) or
 you can specify Amazon Resource Name (ARN) of the function (for example,
 arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS
 Lambda also allows you to specify a partial ARN (for example,
 account-id:Thumbnail). Note that the length constraint
 applies only to the ARN. If you specify only the function name, it is
 limited to 64 character in length.
 
         You can specify a function name (for example,
         Thumbnail) or you can specify Amazon Resource Name
         (ARN) of the function (for example,
         arn:aws:lambda:us-west-2:account-id:function:ThumbNail
         ). AWS Lambda also allows you to specify a partial ARN (for
         example, account-id:Thumbnail). Note that the length
         constraint applies only to the ARN. If you specify only the
         function name, it is limited to 64 character in length.
public InvokeRequest withFunctionName(String functionName)
The Lambda function name.
 You can specify a function name (for example, Thumbnail) or
 you can specify Amazon Resource Name (ARN) of the function (for example,
 arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS
 Lambda also allows you to specify a partial ARN (for example,
 account-id:Thumbnail). Note that the length constraint
 applies only to the ARN. If you specify only the function name, it is
 limited to 64 character in length.
 
functionName - The Lambda function name. 
        
        You can specify a function name (for example,
        Thumbnail) or you can specify Amazon Resource Name
        (ARN) of the function (for example,
        arn:aws:lambda:us-west-2:account-id:function:ThumbNail
        ). AWS Lambda also allows you to specify a partial ARN (for
        example, account-id:Thumbnail). Note that the length
        constraint applies only to the ARN. If you specify only the
        function name, it is limited to 64 character in length.
public void setInvocationType(String invocationType)
 By default, the Invoke API assumes
 RequestResponse invocation type. You can optionally request
 asynchronous execution by specifying Event as the
 InvocationType. You can also use this parameter to request
 AWS Lambda to not execute the function but do some verification, such as
 if the caller is authorized to invoke the function and if the inputs are
 valid. You request this by specifying DryRun as the
 InvocationType. This is useful in a cross-account scenario
 when you want to verify access to a function without running it.
 
invocationType - By default, the Invoke API assumes
        RequestResponse invocation type. You can optionally
        request asynchronous execution by specifying Event as
        the InvocationType. You can also use this parameter
        to request AWS Lambda to not execute the function but do some
        verification, such as if the caller is authorized to invoke the
        function and if the inputs are valid. You request this by
        specifying DryRun as the InvocationType.
        This is useful in a cross-account scenario when you want to verify
        access to a function without running it.InvocationTypepublic String getInvocationType()
 By default, the Invoke API assumes
 RequestResponse invocation type. You can optionally request
 asynchronous execution by specifying Event as the
 InvocationType. You can also use this parameter to request
 AWS Lambda to not execute the function but do some verification, such as
 if the caller is authorized to invoke the function and if the inputs are
 valid. You request this by specifying DryRun as the
 InvocationType. This is useful in a cross-account scenario
 when you want to verify access to a function without running it.
 
Invoke API assumes
         RequestResponse invocation type. You can optionally
         request asynchronous execution by specifying Event
         as the InvocationType. You can also use this
         parameter to request AWS Lambda to not execute the function but
         do some verification, such as if the caller is authorized to
         invoke the function and if the inputs are valid. You request this
         by specifying DryRun as the
         InvocationType. This is useful in a cross-account
         scenario when you want to verify access to a function without
         running it.InvocationTypepublic InvokeRequest withInvocationType(String invocationType)
 By default, the Invoke API assumes
 RequestResponse invocation type. You can optionally request
 asynchronous execution by specifying Event as the
 InvocationType. You can also use this parameter to request
 AWS Lambda to not execute the function but do some verification, such as
 if the caller is authorized to invoke the function and if the inputs are
 valid. You request this by specifying DryRun as the
 InvocationType. This is useful in a cross-account scenario
 when you want to verify access to a function without running it.
 
invocationType - By default, the Invoke API assumes
        RequestResponse invocation type. You can optionally
        request asynchronous execution by specifying Event as
        the InvocationType. You can also use this parameter
        to request AWS Lambda to not execute the function but do some
        verification, such as if the caller is authorized to invoke the
        function and if the inputs are valid. You request this by
        specifying DryRun as the InvocationType.
        This is useful in a cross-account scenario when you want to verify
        access to a function without running it.InvocationTypepublic void setInvocationType(InvocationType invocationType)
 By default, the Invoke API assumes
 RequestResponse invocation type. You can optionally request
 asynchronous execution by specifying Event as the
 InvocationType. You can also use this parameter to request
 AWS Lambda to not execute the function but do some verification, such as
 if the caller is authorized to invoke the function and if the inputs are
 valid. You request this by specifying DryRun as the
 InvocationType. This is useful in a cross-account scenario
 when you want to verify access to a function without running it.
 
invocationType - By default, the Invoke API assumes
        RequestResponse invocation type. You can optionally
        request asynchronous execution by specifying Event as
        the InvocationType. You can also use this parameter
        to request AWS Lambda to not execute the function but do some
        verification, such as if the caller is authorized to invoke the
        function and if the inputs are valid. You request this by
        specifying DryRun as the InvocationType.
        This is useful in a cross-account scenario when you want to verify
        access to a function without running it.InvocationTypepublic InvokeRequest withInvocationType(InvocationType invocationType)
 By default, the Invoke API assumes
 RequestResponse invocation type. You can optionally request
 asynchronous execution by specifying Event as the
 InvocationType. You can also use this parameter to request
 AWS Lambda to not execute the function but do some verification, such as
 if the caller is authorized to invoke the function and if the inputs are
 valid. You request this by specifying DryRun as the
 InvocationType. This is useful in a cross-account scenario
 when you want to verify access to a function without running it.
 
invocationType - By default, the Invoke API assumes
        RequestResponse invocation type. You can optionally
        request asynchronous execution by specifying Event as
        the InvocationType. You can also use this parameter
        to request AWS Lambda to not execute the function but do some
        verification, such as if the caller is authorized to invoke the
        function and if the inputs are valid. You request this by
        specifying DryRun as the InvocationType.
        This is useful in a cross-account scenario when you want to verify
        access to a function without running it.InvocationTypepublic void setLogType(String logType)
 You can set this optional parameter to Tail in the request
 only if you specify the InvocationType parameter with value
 RequestResponse. In this case, AWS Lambda returns the
 base64-encoded last 4 KB of log data produced by your Lambda function in
 the x-amz-log-results header.
 
logType - You can set this optional parameter to Tail in the
        request only if you specify the InvocationType
        parameter with value RequestResponse. In this case,
        AWS Lambda returns the base64-encoded last 4 KB of log data
        produced by your Lambda function in the
        x-amz-log-results header.LogTypepublic String getLogType()
 You can set this optional parameter to Tail in the request
 only if you specify the InvocationType parameter with value
 RequestResponse. In this case, AWS Lambda returns the
 base64-encoded last 4 KB of log data produced by your Lambda function in
 the x-amz-log-results header.
 
Tail in the
         request only if you specify the InvocationType
         parameter with value RequestResponse. In this case,
         AWS Lambda returns the base64-encoded last 4 KB of log data
         produced by your Lambda function in the
         x-amz-log-results header.LogTypepublic InvokeRequest withLogType(String logType)
 You can set this optional parameter to Tail in the request
 only if you specify the InvocationType parameter with value
 RequestResponse. In this case, AWS Lambda returns the
 base64-encoded last 4 KB of log data produced by your Lambda function in
 the x-amz-log-results header.
 
logType - You can set this optional parameter to Tail in the
        request only if you specify the InvocationType
        parameter with value RequestResponse. In this case,
        AWS Lambda returns the base64-encoded last 4 KB of log data
        produced by your Lambda function in the
        x-amz-log-results header.LogTypepublic void setLogType(LogType logType)
 You can set this optional parameter to Tail in the request
 only if you specify the InvocationType parameter with value
 RequestResponse. In this case, AWS Lambda returns the
 base64-encoded last 4 KB of log data produced by your Lambda function in
 the x-amz-log-results header.
 
logType - You can set this optional parameter to Tail in the
        request only if you specify the InvocationType
        parameter with value RequestResponse. In this case,
        AWS Lambda returns the base64-encoded last 4 KB of log data
        produced by your Lambda function in the
        x-amz-log-results header.LogTypepublic InvokeRequest withLogType(LogType logType)
 You can set this optional parameter to Tail in the request
 only if you specify the InvocationType parameter with value
 RequestResponse. In this case, AWS Lambda returns the
 base64-encoded last 4 KB of log data produced by your Lambda function in
 the x-amz-log-results header.
 
logType - You can set this optional parameter to Tail in the
        request only if you specify the InvocationType
        parameter with value RequestResponse. In this case,
        AWS Lambda returns the base64-encoded last 4 KB of log data
        produced by your Lambda function in the
        x-amz-log-results header.LogTypepublic void setClientContext(String clientContext)
 Using the ClientContext you can pass client-specific
 information to the Lambda function you are invoking. You can then process
 the client information in your Lambda function as you choose through the
 context variable. For an example of a ClientContext JSON,
 see PutEvents in the Amazon Mobile Analytics API Reference and User
 Guide.
 
The ClientContext JSON must be base64-encoded.
clientContext - Using the ClientContext you can pass client-specific
        information to the Lambda function you are invoking. You can then
        process the client information in your Lambda function as you
        choose through the context variable. For an example of a
        ClientContext JSON, see PutEvents in the Amazon Mobile Analytics API Reference and
        User Guide.
        The ClientContext JSON must be base64-encoded.
public String getClientContext()
 Using the ClientContext you can pass client-specific
 information to the Lambda function you are invoking. You can then process
 the client information in your Lambda function as you choose through the
 context variable. For an example of a ClientContext JSON,
 see PutEvents in the Amazon Mobile Analytics API Reference and User
 Guide.
 
The ClientContext JSON must be base64-encoded.
ClientContext you can pass client-specific
         information to the Lambda function you are invoking. You can then
         process the client information in your Lambda function as you
         choose through the context variable. For an example of a
         ClientContext JSON, see PutEvents in the Amazon Mobile Analytics API Reference
         and User Guide.
         The ClientContext JSON must be base64-encoded.
public InvokeRequest withClientContext(String clientContext)
 Using the ClientContext you can pass client-specific
 information to the Lambda function you are invoking. You can then process
 the client information in your Lambda function as you choose through the
 context variable. For an example of a ClientContext JSON,
 see PutEvents in the Amazon Mobile Analytics API Reference and User
 Guide.
 
The ClientContext JSON must be base64-encoded.
clientContext - Using the ClientContext you can pass client-specific
        information to the Lambda function you are invoking. You can then
        process the client information in your Lambda function as you
        choose through the context variable. For an example of a
        ClientContext JSON, see PutEvents in the Amazon Mobile Analytics API Reference and
        User Guide.
        The ClientContext JSON must be base64-encoded.
public void setPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public ByteBuffer getPayload()
JSON that you want to provide to your Lambda function as input.
 ByteBuffers are stateful. Calling their get methods
 changes their position. We recommend using
 ByteBuffer.asReadOnlyBuffer() to create a read-only view
 of the buffer with an independent position, and calling
 get methods on this rather than directly on the returned
 ByteBuffer. Doing so will ensure that anyone else using the
 ByteBuffer will not be affected by changes to the position
 .
 
public InvokeRequest withPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
payload - JSON that you want to provide to your Lambda function as input.public void setPayload(String payload)
JSON that you want to provide to your Lambda function as input.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public InvokeRequest withPayload(String payload)
JSON that you want to provide to your Lambda function as input.
payload - JSON that you want to provide to your Lambda function as input.public void setQualifier(String qualifier)
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
 If you don't provide this parameter, then the API uses unqualified
 function ARN which results in invocation of the $LATEST
 version.
 
qualifier - You can use this optional parameter to specify a Lambda function
        version or alias name. If you specify a function version, the API
        uses the qualified function ARN to invoke a specific Lambda
        function. If you specify an alias name, the API uses the alias ARN
        to invoke the Lambda function version to which the alias
        points.
        
        If you don't provide this parameter, then the API uses unqualified
        function ARN which results in invocation of the
        $LATEST version.
public String getQualifier()
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
 If you don't provide this parameter, then the API uses unqualified
 function ARN which results in invocation of the $LATEST
 version.
 
         If you don't provide this parameter, then the API uses
         unqualified function ARN which results in invocation of the
         $LATEST version.
public InvokeRequest withQualifier(String qualifier)
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
 If you don't provide this parameter, then the API uses unqualified
 function ARN which results in invocation of the $LATEST
 version.
 
qualifier - You can use this optional parameter to specify a Lambda function
        version or alias name. If you specify a function version, the API
        uses the qualified function ARN to invoke a specific Lambda
        function. If you specify an alias name, the API uses the alias ARN
        to invoke the Lambda function version to which the alias
        points.
        
        If you don't provide this parameter, then the API uses unqualified
        function ARN which results in invocation of the
        $LATEST version.
public String toString()
toString in class ObjectObject.toString()public InvokeRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.