Class GuardrailEvent.BuilderImpl
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.GuardrailEvent.BuilderImpl
-
- All Implemented Interfaces:
SdkPojo
,GuardrailEvent.Builder
,Buildable
,CopyableBuilder<GuardrailEvent.Builder,GuardrailEvent>
,SdkBuilder<GuardrailEvent.Builder,GuardrailEvent>
- Enclosing class:
- GuardrailEvent
protected static class GuardrailEvent.BuilderImpl extends Object implements GuardrailEvent.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuilderImpl()
protected
BuilderImpl(GuardrailEvent model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuardrailEvent.Builder
action(String action)
The guardrail action.GuardrailEvent.Builder
action(GuadrailAction action)
The guardrail action.GuardrailEvent
build()
String
getAction()
Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
void
setAction(String action)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields
-
-
-
-
Constructor Detail
-
BuilderImpl
protected BuilderImpl()
-
BuilderImpl
protected BuilderImpl(GuardrailEvent model)
-
-
Method Detail
-
getAction
public final String getAction()
-
setAction
public final void setAction(String action)
-
action
public final GuardrailEvent.Builder action(String action)
Description copied from interface:GuardrailEvent.Builder
The guardrail action.
- Specified by:
action
in interfaceGuardrailEvent.Builder
- Parameters:
action
- The guardrail action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuadrailAction
,GuadrailAction
-
action
public final GuardrailEvent.Builder action(GuadrailAction action)
Description copied from interface:GuardrailEvent.Builder
The guardrail action.
- Specified by:
action
in interfaceGuardrailEvent.Builder
- Parameters:
action
- The guardrail action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
GuadrailAction
,GuadrailAction
-
build
public GuardrailEvent build()
- Specified by:
build
in interfaceBuildable
- Specified by:
build
in interfaceSdkBuilder<GuardrailEvent.Builder,GuardrailEvent>
-
sdkFieldNameToField
public Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-