public class CreateFileConfigRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateFileConfigRequest() | 
| CreateFileConfigRequest(CreateFileConfigRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getApplicationId()Get 配置项关联应用ID,该参数可以通过调用 [DescribeApplications](https://cloud.tencent.com/document/product/649/36090) 的返回值中的 ApplicationId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/app)查看;也可以调用[CreateApplication](https://cloud.tencent.com/document/product/649/36094)创建新的应用。 | 
| String | getConfigFileCode()Get 配置项文件编码,utf-8 或 gbk。注:如果选择 gbk,需要新版本 tsf-consul-template (公有云虚拟机需要使用 1.32 tsf-agent,容器需要从文档中获取最新的 tsf-consul-template-docker.tar.gz)的支持。 | 
| String | getConfigFileName()Get 配置项文件名,最多支持60个字符,只能包含英文、数字、"-"(英文)、"_"(英文)、"."(英文)。 | 
| String | getConfigFilePath()Get 发布路径。 | 
| String | getConfigFileValue()Get 配置项文件内容(原始内容编码需要 utf-8 格式,如果 ConfigFileCode 为 gbk,后台会进行转换) | 
| String | getConfigName()Get 配置项名称,最多支持60个字符,只能包含字母、数字及分隔符(“-”、“_”),且不能以分隔符开头或结尾。 | 
| String | getConfigPostCmd()Get 后置命令。 | 
| String | getConfigVersion()Get 配置项版本,只能包含小写字母、数字及分隔符("-","."),且必须以小写字母或数字开头、以小写字母或数字结尾,中间不能有连续的"-"或"."。 | 
| String | getConfigVersionDesc()Get 配置项版本描述,最多支持200个字符。 | 
| Boolean | getEncodeWithBase64()Get Base64编码的配置项。
- true:开启
- false:关闭 | 
| String[] | getProgramIdList()Get 需要绑定的数据集ID。该参数可以通过调用 [DescribePrograms](https://cloud.tencent.com/document/product/649/73477) 的返回值中的 ProgramId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/privilege?tab=program&roleId=role-yrle4doy)查看;也可以调用[CreateProgram](https://cloud.tencent.com/document/product/649/108544)创建新的数据集。 | 
| void | setApplicationId(String ApplicationId)Set 配置项关联应用ID,该参数可以通过调用 [DescribeApplications](https://cloud.tencent.com/document/product/649/36090) 的返回值中的 ApplicationId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/app)查看;也可以调用[CreateApplication](https://cloud.tencent.com/document/product/649/36094)创建新的应用。 | 
| void | setConfigFileCode(String ConfigFileCode)Set 配置项文件编码,utf-8 或 gbk。注:如果选择 gbk,需要新版本 tsf-consul-template (公有云虚拟机需要使用 1.32 tsf-agent,容器需要从文档中获取最新的 tsf-consul-template-docker.tar.gz)的支持。 | 
| void | setConfigFileName(String ConfigFileName)Set 配置项文件名,最多支持60个字符,只能包含英文、数字、"-"(英文)、"_"(英文)、"."(英文)。 | 
| void | setConfigFilePath(String ConfigFilePath)Set 发布路径。 | 
| void | setConfigFileValue(String ConfigFileValue)Set 配置项文件内容(原始内容编码需要 utf-8 格式,如果 ConfigFileCode 为 gbk,后台会进行转换) | 
| void | setConfigName(String ConfigName)Set 配置项名称,最多支持60个字符,只能包含字母、数字及分隔符(“-”、“_”),且不能以分隔符开头或结尾。 | 
| void | setConfigPostCmd(String ConfigPostCmd)Set 后置命令。 | 
| void | setConfigVersion(String ConfigVersion)Set 配置项版本,只能包含小写字母、数字及分隔符("-","."),且必须以小写字母或数字开头、以小写字母或数字结尾,中间不能有连续的"-"或"."。 | 
| void | setConfigVersionDesc(String ConfigVersionDesc)Set 配置项版本描述,最多支持200个字符。 | 
| void | setEncodeWithBase64(Boolean EncodeWithBase64)Set Base64编码的配置项。
- true:开启
- false:关闭 | 
| void | setProgramIdList(String[] ProgramIdList)Set 需要绑定的数据集ID。该参数可以通过调用 [DescribePrograms](https://cloud.tencent.com/document/product/649/73477) 的返回值中的 ProgramId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/privilege?tab=program&roleId=role-yrle4doy)查看;也可以调用[CreateProgram](https://cloud.tencent.com/document/product/649/108544)创建新的数据集。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CreateFileConfigRequest()
public CreateFileConfigRequest(CreateFileConfigRequest source)
public String getConfigName()
public void setConfigName(String ConfigName)
ConfigName - 配置项名称,最多支持60个字符,只能包含字母、数字及分隔符(“-”、“_”),且不能以分隔符开头或结尾。public String getConfigVersion()
public void setConfigVersion(String ConfigVersion)
ConfigVersion - 配置项版本,只能包含小写字母、数字及分隔符("-","."),且必须以小写字母或数字开头、以小写字母或数字结尾,中间不能有连续的"-"或"."。public String getConfigFileName()
public void setConfigFileName(String ConfigFileName)
ConfigFileName - 配置项文件名,最多支持60个字符,只能包含英文、数字、"-"(英文)、"_"(英文)、"."(英文)。public String getConfigFileValue()
public void setConfigFileValue(String ConfigFileValue)
ConfigFileValue - 配置项文件内容(原始内容编码需要 utf-8 格式,如果 ConfigFileCode 为 gbk,后台会进行转换)public String getApplicationId()
public void setApplicationId(String ApplicationId)
ApplicationId - 配置项关联应用ID,该参数可以通过调用 [DescribeApplications](https://cloud.tencent.com/document/product/649/36090) 的返回值中的 ApplicationId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/app)查看;也可以调用[CreateApplication](https://cloud.tencent.com/document/product/649/36094)创建新的应用。public String getConfigFilePath()
public void setConfigFilePath(String ConfigFilePath)
ConfigFilePath - 发布路径。public String getConfigVersionDesc()
public void setConfigVersionDesc(String ConfigVersionDesc)
ConfigVersionDesc - 配置项版本描述,最多支持200个字符。public String getConfigFileCode()
public void setConfigFileCode(String ConfigFileCode)
ConfigFileCode - 配置项文件编码,utf-8 或 gbk。注:如果选择 gbk,需要新版本 tsf-consul-template (公有云虚拟机需要使用 1.32 tsf-agent,容器需要从文档中获取最新的 tsf-consul-template-docker.tar.gz)的支持。public String getConfigPostCmd()
public void setConfigPostCmd(String ConfigPostCmd)
ConfigPostCmd - 后置命令。public Boolean getEncodeWithBase64()
public void setEncodeWithBase64(Boolean EncodeWithBase64)
EncodeWithBase64 - Base64编码的配置项。
- true:开启
- false:关闭public String[] getProgramIdList()
public void setProgramIdList(String[] ProgramIdList)
ProgramIdList - 需要绑定的数据集ID。该参数可以通过调用 [DescribePrograms](https://cloud.tencent.com/document/product/649/73477) 的返回值中的 ProgramId 字段来获取或通过登录[控制台](https://console.cloud.tencent.com/tsf/privilege?tab=program&roleId=role-yrle4doy)查看;也可以调用[CreateProgram](https://cloud.tencent.com/document/product/649/108544)创建新的数据集。Copyright © 2025. All rights reserved.