Builder
public static class Builder extends FileSystemConfig.Builder<Builder>
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:83–122构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.fs.oss 包,继承自 FileSystemConfig.Builder<Builder>。核心成员包括 self、ossEndpoint、ossAccessKeyId、ossAccessKeySecret、ossBucketName、build。
A class in io.agentscope.runtime.sandbox.manager.fs.oss that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.oss. Extends FileSystemConfig.Builder
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public Builder() | 初始化 `Builder` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
protected Builder self() | 返回自身。 Returns the self. |
public Builder ossEndpoint(String ossEndpoint) | 设置OSS 端点。 Performs the oss endpoint operation. |
public Builder ossAccessKeyId(String ossAccessKeyId) | 设置OSS 访问键标识。 Performs the oss access key id operation. |
public Builder ossAccessKeySecret(String ossAccessKeySecret) | 设置OSS 访问键密钥。 Performs the oss access key secret operation. |
public Builder ossBucketName(String ossBucketName) | 设置OSS 存储桶名称。 Performs the oss bucket name operation. |
public OssConfig build() | 构建并返回最终实例。 Creates and returns an instance. |
构造器详情Constructor Detail
Builder
public Builder()
初始化 Builder 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:89–91方法详情Method Detail
self
protected Builder self()
返回自身。
Returns the self.
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:93–96ossEndpoint
public Builder ossEndpoint(String ossEndpoint)
设置OSS 端点。
Performs the oss endpoint operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ossEndpoint | String | OSS 端点(类型 `String`)。The oss endpoint. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:98–101ossAccessKeyId
public Builder ossAccessKeyId(String ossAccessKeyId)
设置OSS 访问键标识。
Performs the oss access key id operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ossAccessKeyId | String | OSS 访问键标识(类型 `String`)。The oss access key id. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:103–106ossAccessKeySecret
public Builder ossAccessKeySecret(String ossAccessKeySecret)
设置OSS 访问键密钥。
Performs the oss access key secret operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ossAccessKeySecret | String | OSS 访问键密钥(类型 `String`)。The oss access key secret. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:108–111ossBucketName
public Builder ossBucketName(String ossBucketName)
设置OSS 存储桶名称。
Performs the oss bucket name operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ossBucketName | String | OSS 存储桶名称(类型 `String`)。The oss bucket name. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:113–116build
public OssConfig build()
构建并返回最终实例。
Creates and returns an instance.
OssConfig返回OssConfig。Returns oss config.
源码Source
io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:118–121