Class CustomTopicProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.bedrock.alpha.CustomTopicProps.Jsii$Proxy
All Implemented Interfaces:
CustomTopicProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CustomTopicProps

@Stability(Experimental) @Internal public static final class CustomTopicProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomTopicProps
An implementation for CustomTopicProps
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.CustomTopicProps

    CustomTopicProps.Builder, CustomTopicProps.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the CustomTopicProps.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final String
    (experimental) Provide a clear definition to detect and block user inputs and FM responses that fall into this topic.
    final List<String>
    (experimental) Representative phrases that refer to the topic.
    (experimental) The action to take when a topic is detected in the input.
    final Boolean
    (experimental) Whether the topic filter is enabled for input.
    final String
    (experimental) The name of the topic to deny.
    (experimental) The action to take when a topic is detected in the output.
    final Boolean
    (experimental) Whether the topic filter is enabled for output.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CustomTopicProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CustomTopicProps.Builder.
  • Method Details

    • getDefinition

      public final String getDefinition()
      Description copied from interface: CustomTopicProps
      (experimental) Provide a clear definition to detect and block user inputs and FM responses that fall into this topic.

      Avoid starting with "don't".

      Example:

       "Investment advice refers to inquiries, guidance, or recommendations\nregarding the management or allocation of funds or assets with the goal of\ngenerating returns or achieving specific financial objectives.";
       
      Specified by:
      getDefinition in interface CustomTopicProps
    • getExamples

      public final List<String> getExamples()
      Description copied from interface: CustomTopicProps
      (experimental) Representative phrases that refer to the topic.

      These phrases can represent a user input or a model response. Add between 1 and 100 phrases, up to 100 characters each.

      Example:

       "Where should I invest my money?";
       
      Specified by:
      getExamples in interface CustomTopicProps
    • getName

      public final String getName()
      Description copied from interface: CustomTopicProps
      (experimental) The name of the topic to deny.
      Specified by:
      getName in interface CustomTopicProps
    • getInputAction

      public final GuardrailAction getInputAction()
      Description copied from interface: CustomTopicProps
      (experimental) The action to take when a topic is detected in the input.

      Default: GuardrailAction.BLOCK

      Specified by:
      getInputAction in interface CustomTopicProps
    • getInputEnabled

      public final Boolean getInputEnabled()
      Description copied from interface: CustomTopicProps
      (experimental) Whether the topic filter is enabled for input.

      Default: true

      Specified by:
      getInputEnabled in interface CustomTopicProps
    • getOutputAction

      public final GuardrailAction getOutputAction()
      Description copied from interface: CustomTopicProps
      (experimental) The action to take when a topic is detected in the output.

      Default: GuardrailAction.BLOCK

      Specified by:
      getOutputAction in interface CustomTopicProps
    • getOutputEnabled

      public final Boolean getOutputEnabled()
      Description copied from interface: CustomTopicProps
      (experimental) Whether the topic filter is enabled for output.

      Default: true

      Specified by:
      getOutputEnabled in interface CustomTopicProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object