java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
io.envoyproxy.envoy.extensions.filters.http.aws_lambda.v3.Config.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ConfigOrBuilder, Cloneable
Enclosing class:
Config

public static final class Config.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder> implements ConfigOrBuilder
 AWS Lambda filter config
 [#next-free-field: 7]
 
Protobuf type envoy.extensions.filters.http.aws_lambda.v3.Config
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • clear

      public Config.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • getDefaultInstanceForType

      public Config getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Config build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Config buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Config.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • setField

      public Config.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • clearField

      public Config.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • clearOneof

      public Config.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • setRepeatedField

      public Config.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • addRepeatedField

      public Config.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • mergeFrom

      public Config.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>
    • mergeFrom

      public Config.Builder mergeFrom(Config other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • mergeFrom

      public Config.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Config.Builder>
      Throws:
      IOException
    • getArn

      public String getArn()
       The ARN of the AWS Lambda to invoke when the filter is engaged
       Must be in the following format:
       arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
       
      string arn = 1 [(.validate.rules) = { ... }
      Specified by:
      getArn in interface ConfigOrBuilder
      Returns:
      The arn.
    • getArnBytes

      public com.google.protobuf.ByteString getArnBytes()
       The ARN of the AWS Lambda to invoke when the filter is engaged
       Must be in the following format:
       arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
       
      string arn = 1 [(.validate.rules) = { ... }
      Specified by:
      getArnBytes in interface ConfigOrBuilder
      Returns:
      The bytes for arn.
    • setArn

      public Config.Builder setArn(String value)
       The ARN of the AWS Lambda to invoke when the filter is engaged
       Must be in the following format:
       arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
       
      string arn = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The arn to set.
      Returns:
      This builder for chaining.
    • clearArn

      public Config.Builder clearArn()
       The ARN of the AWS Lambda to invoke when the filter is engaged
       Must be in the following format:
       arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
       
      string arn = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setArnBytes

      public Config.Builder setArnBytes(com.google.protobuf.ByteString value)
       The ARN of the AWS Lambda to invoke when the filter is engaged
       Must be in the following format:
       arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
       
      string arn = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for arn to set.
      Returns:
      This builder for chaining.
    • getPayloadPassthrough

      public boolean getPayloadPassthrough()
       Whether to transform the request (headers and body) to a JSON payload or pass it as is.
       
      bool payload_passthrough = 2;
      Specified by:
      getPayloadPassthrough in interface ConfigOrBuilder
      Returns:
      The payloadPassthrough.
    • setPayloadPassthrough

      public Config.Builder setPayloadPassthrough(boolean value)
       Whether to transform the request (headers and body) to a JSON payload or pass it as is.
       
      bool payload_passthrough = 2;
      Parameters:
      value - The payloadPassthrough to set.
      Returns:
      This builder for chaining.
    • clearPayloadPassthrough

      public Config.Builder clearPayloadPassthrough()
       Whether to transform the request (headers and body) to a JSON payload or pass it as is.
       
      bool payload_passthrough = 2;
      Returns:
      This builder for chaining.
    • getInvocationModeValue

      public int getInvocationModeValue()
       Determines the way to invoke the Lambda function.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
      Specified by:
      getInvocationModeValue in interface ConfigOrBuilder
      Returns:
      The enum numeric value on the wire for invocationMode.
    • setInvocationModeValue

      public Config.Builder setInvocationModeValue(int value)
       Determines the way to invoke the Lambda function.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The enum numeric value on the wire for invocationMode to set.
      Returns:
      This builder for chaining.
    • getInvocationMode

      public Config.InvocationMode getInvocationMode()
       Determines the way to invoke the Lambda function.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
      Specified by:
      getInvocationMode in interface ConfigOrBuilder
      Returns:
      The invocationMode.
    • setInvocationMode

      public Config.Builder setInvocationMode(Config.InvocationMode value)
       Determines the way to invoke the Lambda function.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
      Parameters:
      value - The invocationMode to set.
      Returns:
      This builder for chaining.
    • clearInvocationMode

      public Config.Builder clearInvocationMode()
       Determines the way to invoke the Lambda function.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • getHostRewrite

      public String getHostRewrite()
       Indicates that before signing headers, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
           This rewrite affects both signing and host header forwarding. However, this
           option shouldn't be used with
           :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the
           value set here would be used for signing whereas the value set in the HCM would be used
           for host header forwarding which is not the desired outcome.
      
           Changing the value of the host header can result in a different route to be selected
           if an HTTP filter after AWS lambda re-evaluates the route (clears route cache).
       
      string host_rewrite = 4;
      Specified by:
      getHostRewrite in interface ConfigOrBuilder
      Returns:
      The hostRewrite.
    • getHostRewriteBytes

      public com.google.protobuf.ByteString getHostRewriteBytes()
       Indicates that before signing headers, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
           This rewrite affects both signing and host header forwarding. However, this
           option shouldn't be used with
           :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the
           value set here would be used for signing whereas the value set in the HCM would be used
           for host header forwarding which is not the desired outcome.
      
           Changing the value of the host header can result in a different route to be selected
           if an HTTP filter after AWS lambda re-evaluates the route (clears route cache).
       
      string host_rewrite = 4;
      Specified by:
      getHostRewriteBytes in interface ConfigOrBuilder
      Returns:
      The bytes for hostRewrite.
    • setHostRewrite

      public Config.Builder setHostRewrite(String value)
       Indicates that before signing headers, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
           This rewrite affects both signing and host header forwarding. However, this
           option shouldn't be used with
           :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the
           value set here would be used for signing whereas the value set in the HCM would be used
           for host header forwarding which is not the desired outcome.
      
           Changing the value of the host header can result in a different route to be selected
           if an HTTP filter after AWS lambda re-evaluates the route (clears route cache).
       
      string host_rewrite = 4;
      Parameters:
      value - The hostRewrite to set.
      Returns:
      This builder for chaining.
    • clearHostRewrite

      public Config.Builder clearHostRewrite()
       Indicates that before signing headers, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
           This rewrite affects both signing and host header forwarding. However, this
           option shouldn't be used with
           :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the
           value set here would be used for signing whereas the value set in the HCM would be used
           for host header forwarding which is not the desired outcome.
      
           Changing the value of the host header can result in a different route to be selected
           if an HTTP filter after AWS lambda re-evaluates the route (clears route cache).
       
      string host_rewrite = 4;
      Returns:
      This builder for chaining.
    • setHostRewriteBytes

      public Config.Builder setHostRewriteBytes(com.google.protobuf.ByteString value)
       Indicates that before signing headers, the host header will be swapped with
       this value. If not set or empty, the original host header value
       will be used and no rewrite will happen.
      
       .. note::
           This rewrite affects both signing and host header forwarding. However, this
           option shouldn't be used with
           :ref:`HCM host rewrite <envoy_v3_api_field_config.route.v3.RouteAction.host_rewrite_literal>` given that the
           value set here would be used for signing whereas the value set in the HCM would be used
           for host header forwarding which is not the desired outcome.
      
           Changing the value of the host header can result in a different route to be selected
           if an HTTP filter after AWS lambda re-evaluates the route (clears route cache).
       
      string host_rewrite = 4;
      Parameters:
      value - The bytes for hostRewrite to set.
      Returns:
      This builder for chaining.
    • getCredentialsProfile

      public String getCredentialsProfile()
       Specifies the credentials profile to be used from the AWS credentials file.
       This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and
       the provider chain is limited to the AWS credentials file Provider.
       If credentials configuration is provided, this configuration will be ignored.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
       
      string credentials_profile = 5;
      Specified by:
      getCredentialsProfile in interface ConfigOrBuilder
      Returns:
      The credentialsProfile.
    • getCredentialsProfileBytes

      public com.google.protobuf.ByteString getCredentialsProfileBytes()
       Specifies the credentials profile to be used from the AWS credentials file.
       This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and
       the provider chain is limited to the AWS credentials file Provider.
       If credentials configuration is provided, this configuration will be ignored.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
       
      string credentials_profile = 5;
      Specified by:
      getCredentialsProfileBytes in interface ConfigOrBuilder
      Returns:
      The bytes for credentialsProfile.
    • setCredentialsProfile

      public Config.Builder setCredentialsProfile(String value)
       Specifies the credentials profile to be used from the AWS credentials file.
       This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and
       the provider chain is limited to the AWS credentials file Provider.
       If credentials configuration is provided, this configuration will be ignored.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
       
      string credentials_profile = 5;
      Parameters:
      value - The credentialsProfile to set.
      Returns:
      This builder for chaining.
    • clearCredentialsProfile

      public Config.Builder clearCredentialsProfile()
       Specifies the credentials profile to be used from the AWS credentials file.
       This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and
       the provider chain is limited to the AWS credentials file Provider.
       If credentials configuration is provided, this configuration will be ignored.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
       
      string credentials_profile = 5;
      Returns:
      This builder for chaining.
    • setCredentialsProfileBytes

      public Config.Builder setCredentialsProfileBytes(com.google.protobuf.ByteString value)
       Specifies the credentials profile to be used from the AWS credentials file.
       This parameter is optional. If set, it will override the value set in the AWS_PROFILE env variable and
       the provider chain is limited to the AWS credentials file Provider.
       If credentials configuration is provided, this configuration will be ignored.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
       
      string credentials_profile = 5;
      Parameters:
      value - The bytes for credentialsProfile to set.
      Returns:
      This builder for chaining.
    • hasCredentials

      public boolean hasCredentials()
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
      Specified by:
      hasCredentials in interface ConfigOrBuilder
      Returns:
      Whether the credentials field is set.
    • getCredentials

      public Credentials getCredentials()
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
      Specified by:
      getCredentials in interface ConfigOrBuilder
      Returns:
      The credentials.
    • setCredentials

      public Config.Builder setCredentials(Credentials value)
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
    • setCredentials

      public Config.Builder setCredentials(Credentials.Builder builderForValue)
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
    • mergeCredentials

      public Config.Builder mergeCredentials(Credentials value)
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
    • clearCredentials

      public Config.Builder clearCredentials()
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
    • getCredentialsBuilder

      public Credentials.Builder getCredentialsBuilder()
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
    • getCredentialsOrBuilder

      public CredentialsOrBuilder getCredentialsOrBuilder()
       Specifies the credentials to be used. This parameter is optional and if it is set,
       it will override other providers and will take precedence over credentials_profile.
       The provider chain is limited to the configuration credentials provider.
       If this field is provided, then the default providers chain specified in the documentation will be ignored.
       (See :ref:`default credentials providers <config_http_filters_aws_lambda_credentials>`).
      
       .. warning::
         Distributing the AWS credentials via this configuration should not be done in production.
       
      .envoy.extensions.filters.http.aws_lambda.v3.Credentials credentials = 6;
      Specified by:
      getCredentialsOrBuilder in interface ConfigOrBuilder
    • setUnknownFields

      public final Config.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    • mergeUnknownFields

      public final Config.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>