Class BetaManagedAgentsSessionRefusalStopDetails.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionRefusalStopDetails.BuilderA builder for BetaManagedAgentsSessionRefusalStopDetails.
-
-
Method Summary
-
-
Method Detail
-
category
final BetaManagedAgentsSessionRefusalStopDetails.Builder category(BetaManagedAgentsSessionRefusalStopDetails.Category category)
The policy category that triggered the refusal, or
nullwhen there is no named category. New values can be added over time.
-
category
final BetaManagedAgentsSessionRefusalStopDetails.Builder category(Optional<BetaManagedAgentsSessionRefusalStopDetails.Category> category)
Alias for calling Builder.category with
category.orElse(null).
-
category
final BetaManagedAgentsSessionRefusalStopDetails.Builder category(JsonField<BetaManagedAgentsSessionRefusalStopDetails.Category> category)
Sets Builder.category to an arbitrary JSON value.
You should usually call Builder.category with a well-typed Category value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
explanation
final BetaManagedAgentsSessionRefusalStopDetails.Builder explanation(String explanation)
Human-readable explanation of the refusal, or
nullwhen none is available. The wording can change, so do not parse it.
-
explanation
final BetaManagedAgentsSessionRefusalStopDetails.Builder explanation(Optional<String> explanation)
Alias for calling Builder.explanation with
explanation.orElse(null).
-
explanation
final BetaManagedAgentsSessionRefusalStopDetails.Builder explanation(JsonField<String> explanation)
Sets Builder.explanation to an arbitrary JSON value.
You should usually call Builder.explanation with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSessionRefusalStopDetails.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("refusal")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionRefusalStopDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionRefusalStopDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionRefusalStopDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionRefusalStopDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionRefusalStopDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionRefusalStopDetails build()
Returns an immutable instance of BetaManagedAgentsSessionRefusalStopDetails.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.category() .explanation()
-
-
-
-