com.tencentcloudapi.lke.v20231130.models.BaseConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-lke Show documentation
Show all versions of tencentcloud-sdk-java-lke Show documentation
Tencent Cloud Open API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.lke.v20231130.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class BaseConfig extends AbstractModel {
/**
* 应用名称
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* 应用头像url,在CreateApp和ModifyApp中作为入参必填。
作为入参传入说明:
1. 传入的url图片限制为jpeg和png,大小限制为500KB,url链接需允许head请求。
2. 如果用户没有对象存储,可使用“获取文件上传临时密钥”(DescribeStorageCredential)接口,获取cos临时密钥和上传路径,自行上传头像至cos中并获取访问链接。
*/
@SerializedName("Avatar")
@Expose
private String Avatar;
/**
* 应用描述
*/
@SerializedName("Desc")
@Expose
private String Desc;
/**
* Get 应用名称
* @return Name 应用名称
*/
public String getName() {
return this.Name;
}
/**
* Set 应用名称
* @param Name 应用名称
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get 应用头像url,在CreateApp和ModifyApp中作为入参必填。
作为入参传入说明:
1. 传入的url图片限制为jpeg和png,大小限制为500KB,url链接需允许head请求。
2. 如果用户没有对象存储,可使用“获取文件上传临时密钥”(DescribeStorageCredential)接口,获取cos临时密钥和上传路径,自行上传头像至cos中并获取访问链接。
* @return Avatar 应用头像url,在CreateApp和ModifyApp中作为入参必填。
作为入参传入说明:
1. 传入的url图片限制为jpeg和png,大小限制为500KB,url链接需允许head请求。
2. 如果用户没有对象存储,可使用“获取文件上传临时密钥”(DescribeStorageCredential)接口,获取cos临时密钥和上传路径,自行上传头像至cos中并获取访问链接。
*/
public String getAvatar() {
return this.Avatar;
}
/**
* Set 应用头像url,在CreateApp和ModifyApp中作为入参必填。
作为入参传入说明:
1. 传入的url图片限制为jpeg和png,大小限制为500KB,url链接需允许head请求。
2. 如果用户没有对象存储,可使用“获取文件上传临时密钥”(DescribeStorageCredential)接口,获取cos临时密钥和上传路径,自行上传头像至cos中并获取访问链接。
* @param Avatar 应用头像url,在CreateApp和ModifyApp中作为入参必填。
作为入参传入说明:
1. 传入的url图片限制为jpeg和png,大小限制为500KB,url链接需允许head请求。
2. 如果用户没有对象存储,可使用“获取文件上传临时密钥”(DescribeStorageCredential)接口,获取cos临时密钥和上传路径,自行上传头像至cos中并获取访问链接。
*/
public void setAvatar(String Avatar) {
this.Avatar = Avatar;
}
/**
* Get 应用描述
* @return Desc 应用描述
*/
public String getDesc() {
return this.Desc;
}
/**
* Set 应用描述
* @param Desc 应用描述
*/
public void setDesc(String Desc) {
this.Desc = Desc;
}
public BaseConfig() {
}
/**
* 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.
*/
public BaseConfig(BaseConfig source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Avatar != null) {
this.Avatar = new String(source.Avatar);
}
if (source.Desc != null) {
this.Desc = new String(source.Desc);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamSimple(map, prefix + "Avatar", this.Avatar);
this.setParamSimple(map, prefix + "Desc", this.Desc);
}
}