Class BetaTelemetryDestinationWorkspacesParams
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationWorkspacesParamsWhich of the organization's workspaces a telemetry destination covers, as a create or update request sets it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaTelemetryDestinationWorkspacesParams.VisitorAn interface that defines how to map each variant of BetaTelemetryDestinationWorkspacesParams to a value of type T.
public final classBetaTelemetryDestinationWorkspacesParams.Type
-
Method Summary
Modifier and Type Method Description final Optional<BetaTelemetryDestinationWorkspacesAllParams>all()Cover every workspace of the organization. final Optional<BetaTelemetryDestinationWorkspacesIncludeParams>include()Cover only the workspaces on the list. final Optional<BetaTelemetryDestinationWorkspacesExcludeParams>exclude()Cover every workspace of the organization except the workspaces on the list. final Optional<JsonValue>_json()final BetaTelemetryDestinationWorkspacesParams.Typetype()final Optional<List<String>>workspaceIds()final BooleanisAll()final BooleanisInclude()final BooleanisExclude()final BetaTelemetryDestinationWorkspacesAllParamsasAll()Cover every workspace of the organization. final BetaTelemetryDestinationWorkspacesIncludeParamsasInclude()Cover only the workspaces on the list. final BetaTelemetryDestinationWorkspacesExcludeParamsasExclude()Cover every workspace of the organization except the workspaces on the list. final <T extends Any> Taccept(BetaTelemetryDestinationWorkspacesParams.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final BetaTelemetryDestinationWorkspacesParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTelemetryDestinationWorkspacesParamsofAll(BetaTelemetryDestinationWorkspacesAllParams all)Cover every workspace of the organization. final static BetaTelemetryDestinationWorkspacesParamsofInclude(BetaTelemetryDestinationWorkspacesIncludeParams include)Cover only the workspaces on the list. final static BetaTelemetryDestinationWorkspacesParamsofExclude(BetaTelemetryDestinationWorkspacesExcludeParams exclude)Cover every workspace of the organization except the workspaces on the list. -
-
Method Detail
-
all
final Optional<BetaTelemetryDestinationWorkspacesAllParams> all()
Cover every workspace of the organization. Doesn't take
workspace_ids.An update that sets
allempties the destination's workspace list.
-
include
final Optional<BetaTelemetryDestinationWorkspacesIncludeParams> include()
Cover only the workspaces on the list.
-
exclude
final Optional<BetaTelemetryDestinationWorkspacesExcludeParams> exclude()
Cover every workspace of the organization except the workspaces on the list.
-
type
final BetaTelemetryDestinationWorkspacesParams.Type type()
-
workspaceIds
final Optional<List<String>> workspaceIds()
-
asAll
final BetaTelemetryDestinationWorkspacesAllParams asAll()
Cover every workspace of the organization. Doesn't take
workspace_ids.An update that sets
allempties the destination's workspace list.
-
asInclude
final BetaTelemetryDestinationWorkspacesIncludeParams asInclude()
Cover only the workspaces on the list.
-
asExclude
final BetaTelemetryDestinationWorkspacesExcludeParams asExclude()
Cover every workspace of the organization except the workspaces on the list.
-
accept
final <T extends Any> T accept(BetaTelemetryDestinationWorkspacesParams.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = betaTelemetryDestinationWorkspacesParams.accept(new BetaTelemetryDestinationWorkspacesParams.Visitor<Optional<String>>() { @Override public Optional<String> visitAll(BetaTelemetryDestinationWorkspacesAllParams all) { return Optional.of(all.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaTelemetryDestinationWorkspacesParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofAll
final static BetaTelemetryDestinationWorkspacesParams ofAll(BetaTelemetryDestinationWorkspacesAllParams all)
Cover every workspace of the organization. Doesn't take
workspace_ids.An update that sets
allempties the destination's workspace list.
-
ofInclude
final static BetaTelemetryDestinationWorkspacesParams ofInclude(BetaTelemetryDestinationWorkspacesIncludeParams include)
Cover only the workspaces on the list.
-
ofExclude
final static BetaTelemetryDestinationWorkspacesParams ofExclude(BetaTelemetryDestinationWorkspacesExcludeParams exclude)
Cover every workspace of the organization except the workspaces on the list.
-
-
-
-