Class CreateGuardrailVersionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.bedrock.model.BedrockRequest
-
- software.amazon.awssdk.services.bedrock.model.CreateGuardrailVersionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateGuardrailVersionRequest.Builder,CreateGuardrailVersionRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateGuardrailVersionRequest extends BedrockRequest implements ToCopyableBuilder<CreateGuardrailVersionRequest.Builder,CreateGuardrailVersionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateGuardrailVersionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateGuardrailVersionRequest.Builderbuilder()StringclientRequestToken()A unique, case-sensitive identifier to ensure that the API request completes no more than once.Stringdescription()A description of the guardrail version.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringguardrailIdentifier()The unique identifier of the guardrail.inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateGuardrailVersionRequest.Builder>serializableBuilderClass()CreateGuardrailVersionRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
guardrailIdentifier
public final String guardrailIdentifier()
The unique identifier of the guardrail. This can be an ID or the ARN.
- Returns:
- The unique identifier of the guardrail. This can be an ID or the ARN.
-
description
public final String description()
A description of the guardrail version.
- Returns:
- A description of the guardrail version.
-
clientRequestToken
public final String clientRequestToken()
A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
- Returns:
- A unique, case-sensitive identifier to ensure that the API request completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency in the Amazon S3 User Guide.
-
toBuilder
public CreateGuardrailVersionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateGuardrailVersionRequest.Builder,CreateGuardrailVersionRequest>- Specified by:
toBuilderin classBedrockRequest
-
builder
public static CreateGuardrailVersionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateGuardrailVersionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-