Class UserProfileCyberProgram.Builder
-
- All Implemented Interfaces:
public final class UserProfileCyberProgram.BuilderA builder for UserProfileCyberProgram.
-
-
Method Summary
-
-
Method Detail
-
requirements
final UserProfileCyberProgram.Builder requirements(UserProfileCyberRequirements requirements)
What a request that names the profile must allow to get the relaxed safeguards of every
activetier.nullwhen no tier isactive, and wherevertiersis{}.
-
requirements
final UserProfileCyberProgram.Builder requirements(Optional<UserProfileCyberRequirements> requirements)
Alias for calling Builder.requirements with
requirements.orElse(null).
-
requirements
final UserProfileCyberProgram.Builder requirements(JsonField<UserProfileCyberRequirements> requirements)
Sets Builder.requirements to an arbitrary JSON value.
You should usually call Builder.requirements with a well-typed UserProfileCyberRequirements value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final UserProfileCyberProgram.Builder status(UserProfileProgramStatus status)
activewhen at least one tier isactive, or when the profile has the program's access to earlier models. That access is not a tier: a profile that has it alone readsactivewith every tierinactive, or withtiers{}on a response that does not report tiers. When nothing isactive,pendingmeans that an application or enrollment is under review, or that what Anthropic approved does not yet apply to this profile, andrejectedmeans that the application or enrollment was declined.
-
status
final UserProfileCyberProgram.Builder status(JsonField<UserProfileProgramStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed UserProfileProgramStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tiers
final UserProfileCyberProgram.Builder tiers(UserProfileCyberProgram.Tiers tiers)
The program's tiers, keyed by tier:
a(Specialized Access),b(Red Team Access) andc(Defense Access). A response reports either every tier or none. When it reports them, as retrieving the profile normally does, every tier has a key, whether or not it applies to the profile. When it does not, as in the list of user profiles,tiersis{}, which does not mean that the tiers are inactive. No tier implies another, so read the tier you need. Anthropic may add tiers; ignore a key you do not recognize.
-
tiers
final UserProfileCyberProgram.Builder tiers(JsonField<UserProfileCyberProgram.Tiers> tiers)
Sets Builder.tiers to an arbitrary JSON value.
You should usually call Builder.tiers with a well-typed Tiers value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UserProfileCyberProgram.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UserProfileCyberProgram.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UserProfileCyberProgram.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UserProfileCyberProgram.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UserProfileCyberProgram.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UserProfileCyberProgram build()
Returns an immutable instance of UserProfileCyberProgram.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.requirements() .status() .tiers()
-
-
-
-