
com.tencentcloudapi.teo.v20220106.models.Origin Maven / Gradle / Ivy
/*
* 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.teo.v20220106.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class Origin extends AbstractModel{
/**
* 主源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("Origins")
@Expose
private String [] Origins;
/**
* 备源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("BackupOrigins")
@Expose
private String [] BackupOrigins;
/**
* 回源协议配置,取值有:
http:强制 http 回源;
follow:协议跟随回源;
https:强制 https 回源,https 回源时仅支持源站 443 端口。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("OriginPullProtocol")
@Expose
private String OriginPullProtocol;
/**
* OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket。
注意:此字段可能返回 null,表示取不到有效值。
*/
@SerializedName("CosPrivateAccess")
@Expose
private String CosPrivateAccess;
/**
* Get 主源站列表。
注意:此字段可能返回 null,表示取不到有效值。
* @return Origins 主源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getOrigins() {
return this.Origins;
}
/**
* Set 主源站列表。
注意:此字段可能返回 null,表示取不到有效值。
* @param Origins 主源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setOrigins(String [] Origins) {
this.Origins = Origins;
}
/**
* Get 备源站列表。
注意:此字段可能返回 null,表示取不到有效值。
* @return BackupOrigins 备源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String [] getBackupOrigins() {
return this.BackupOrigins;
}
/**
* Set 备源站列表。
注意:此字段可能返回 null,表示取不到有效值。
* @param BackupOrigins 备源站列表。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setBackupOrigins(String [] BackupOrigins) {
this.BackupOrigins = BackupOrigins;
}
/**
* Get 回源协议配置,取值有:
http:强制 http 回源;
follow:协议跟随回源;
https:强制 https 回源,https 回源时仅支持源站 443 端口。
注意:此字段可能返回 null,表示取不到有效值。
* @return OriginPullProtocol 回源协议配置,取值有:
http:强制 http 回源;
follow:协议跟随回源;
https:强制 https 回源,https 回源时仅支持源站 443 端口。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getOriginPullProtocol() {
return this.OriginPullProtocol;
}
/**
* Set 回源协议配置,取值有:
http:强制 http 回源;
follow:协议跟随回源;
https:强制 https 回源,https 回源时仅支持源站 443 端口。
注意:此字段可能返回 null,表示取不到有效值。
* @param OriginPullProtocol 回源协议配置,取值有:
http:强制 http 回源;
follow:协议跟随回源;
https:强制 https 回源,https 回源时仅支持源站 443 端口。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setOriginPullProtocol(String OriginPullProtocol) {
this.OriginPullProtocol = OriginPullProtocol;
}
/**
* Get OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket。
注意:此字段可能返回 null,表示取不到有效值。
* @return CosPrivateAccess OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket。
注意:此字段可能返回 null,表示取不到有效值。
*/
public String getCosPrivateAccess() {
return this.CosPrivateAccess;
}
/**
* Set OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket。
注意:此字段可能返回 null,表示取不到有效值。
* @param CosPrivateAccess OriginType 为对象存储(COS)时,可以指定是否允许访问私有 bucket。
注意:此字段可能返回 null,表示取不到有效值。
*/
public void setCosPrivateAccess(String CosPrivateAccess) {
this.CosPrivateAccess = CosPrivateAccess;
}
public Origin() {
}
/**
* 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 Origin(Origin source) {
if (source.Origins != null) {
this.Origins = new String[source.Origins.length];
for (int i = 0; i < source.Origins.length; i++) {
this.Origins[i] = new String(source.Origins[i]);
}
}
if (source.BackupOrigins != null) {
this.BackupOrigins = new String[source.BackupOrigins.length];
for (int i = 0; i < source.BackupOrigins.length; i++) {
this.BackupOrigins[i] = new String(source.BackupOrigins[i]);
}
}
if (source.OriginPullProtocol != null) {
this.OriginPullProtocol = new String(source.OriginPullProtocol);
}
if (source.CosPrivateAccess != null) {
this.CosPrivateAccess = new String(source.CosPrivateAccess);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "Origins.", this.Origins);
this.setParamArraySimple(map, prefix + "BackupOrigins.", this.BackupOrigins);
this.setParamSimple(map, prefix + "OriginPullProtocol", this.OriginPullProtocol);
this.setParamSimple(map, prefix + "CosPrivateAccess", this.CosPrivateAccess);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy