Class AWSLambdaDestinationBuilder

java.lang.Object
com.commercetools.api.models.extension.AWSLambdaDestinationBuilder
All Implemented Interfaces:
Builder<AWSLambdaDestination>
Direct Known Subclasses:
ExtensionAWSLambdaDestinationBuilder

public class AWSLambdaDestinationBuilder extends Object implements Builder<AWSLambdaDestination>
AWSLambdaDestinationBuilder
Example to create an instance using the builder pattern

     AWSLambdaDestination aWSLambdaDestination = AWSLambdaDestination.builder()
             .arn("{arn}")
             .accessKey("{accessKey}")
             .accessSecret("{accessSecret}")
             .build()
 
  • Constructor Details

    • AWSLambdaDestinationBuilder

      public AWSLambdaDestinationBuilder()
  • Method Details

    • arn

      Amazon Resource Name (ARN) of the Lambda function in the format arn:aws:lambda:<region>:<accountid>:function:<functionName>. Use the format arn:aws:lambda:<region>:<accountid>:function:<functionName>:<functionAlias/version> to point to a specific version of the function.

      Parameters:
      arn - value to be set
      Returns:
      Builder
    • accessKey

      public AWSLambdaDestinationBuilder accessKey(String accessKey)

      Partially hidden on retrieval for security reasons.

      Parameters:
      accessKey - value to be set
      Returns:
      Builder
    • accessSecret

      public AWSLambdaDestinationBuilder accessSecret(String accessSecret)

      Partially hidden on retrieval for security reasons.

      Parameters:
      accessSecret - value to be set
      Returns:
      Builder
    • getArn

      public String getArn()

      Amazon Resource Name (ARN) of the Lambda function in the format arn:aws:lambda:<region>:<accountid>:function:<functionName>. Use the format arn:aws:lambda:<region>:<accountid>:function:<functionName>:<functionAlias/version> to point to a specific version of the function.

      Returns:
      arn
    • getAccessKey

      public String getAccessKey()

      Partially hidden on retrieval for security reasons.

      Returns:
      accessKey
    • getAccessSecret

      public String getAccessSecret()

      Partially hidden on retrieval for security reasons.

      Returns:
      accessSecret
    • build

      public AWSLambdaDestination build()
      builds AWSLambdaDestination with checking for non-null required values
      Specified by:
      build in interface Builder<AWSLambdaDestination>
      Returns:
      AWSLambdaDestination
    • buildUnchecked

      public AWSLambdaDestination buildUnchecked()
      builds AWSLambdaDestination without checking for non-null required values
      Returns:
      AWSLambdaDestination
    • of

      public static AWSLambdaDestinationBuilder of()
      factory method for an instance of AWSLambdaDestinationBuilder
      Returns:
      builder
    • of

      create builder for AWSLambdaDestination instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder