com.tencentcloudapi.cdn.v20180606.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.cdn.v20180606.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 Origin extends AbstractModel {
/**
* List of primary origin servers
When modifying the origins, you need to specify `OriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("Origins")
@Expose
private String [] Origins;
/**
* Primary origin server type
This field is used together with `Origins`.
Input:
`domain`: Domain name
`domainv6`: IPv6 domain name
`cos`: COS bucket address
`third_party`: Third-party object storage origin
`igtm`: IGTM origin
`ip`: IP address
`ipv6`: One IPv6 address
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ip_domain`: IP addresses and domain names (only available to beta users)
`ip_domainv6`: Multiple IPv4 addresses and one IPv6 domain name
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ipv6_domainv6`: Multiple IPv6 addresses and one IPv6 domain name
`domain_domainv6`: Multiple IPv4 domain names and one IPv6 domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
`ip_ipv6_domainv6`: Multiple IPv4 and IPv6 addresses and one IPv6 domain name
`ip_domain_domainv6`: Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain name
`ipv6_domain_domainv6`: Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain name
`ip_ipv6_domain_domainv6`: Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain name
Output:
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to specify `OriginType`.
The IPv6 feature is now only available to beta users. Submit a ticket if you need it.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("OriginType")
@Expose
private String OriginType;
/**
* Origin-pull host header.
This field is required when `OriginType=cos/third-party`.
If not specified, this field defaults to the acceleration domain name.
For a wildcard domain name, the sub-domain name during the access is used by default.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("ServerName")
@Expose
private String ServerName;
/**
* When OriginType is COS, you can specify if access to private buckets is allowed.
Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: `on` and `off`.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("CosPrivateAccess")
@Expose
private String CosPrivateAccess;
/**
* Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("OriginPullProtocol")
@Expose
private String OriginPullProtocol;
/**
* List of secondary origin servers
This field is used together with `BackupOriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("BackupOrigins")
@Expose
private String [] BackupOrigins;
/**
* Secondary origin type
This field is used together with `BackupOrigins`.
Values:
`domain`: Domain name
`ip`: IP address
The following secondary origin types are only available to beta users. Submit a ticket to use it.
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("BackupOriginType")
@Expose
private String BackupOriginType;
/**
* Host header used when accessing the backup origin server. If it is left empty, the `ServerName` of primary origin server will be used by default.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("BackupServerName")
@Expose
private String BackupServerName;
/**
* Origin-pull path
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("BasePath")
@Expose
private String BasePath;
/**
* Origin-pull path rewriting configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("PathRules")
@Expose
private PathRule [] PathRules;
/**
* Path-based origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("PathBasedOrigin")
@Expose
private PathBasedOriginRule [] PathBasedOrigin;
/**
* HTTPS origin-pull SNI
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("Sni")
@Expose
private OriginSni Sni;
/**
* HTTPS advanced origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
@SerializedName("AdvanceHttps")
@Expose
private AdvanceHttps AdvanceHttps;
/**
* Third-party object storage service vendor
This field is required when `OriginType=third-party`.
Values:
`aws_s3`: AWS S3
`ali_oss`: Alibaba Cloud OSS
`hw_obs`: Huawei Cloud OBS
`Qiniu_kodo`: Qiniu Kodo
`Others`: Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
@SerializedName("OriginCompany")
@Expose
private String OriginCompany;
/**
* Get List of primary origin servers
When modifying the origins, you need to specify `OriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return Origins List of primary origin servers
When modifying the origins, you need to specify `OriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String [] getOrigins() {
return this.Origins;
}
/**
* Set List of primary origin servers
When modifying the origins, you need to specify `OriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param Origins List of primary origin servers
When modifying the origins, you need to specify `OriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setOrigins(String [] Origins) {
this.Origins = Origins;
}
/**
* Get Primary origin server type
This field is used together with `Origins`.
Input:
`domain`: Domain name
`domainv6`: IPv6 domain name
`cos`: COS bucket address
`third_party`: Third-party object storage origin
`igtm`: IGTM origin
`ip`: IP address
`ipv6`: One IPv6 address
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ip_domain`: IP addresses and domain names (only available to beta users)
`ip_domainv6`: Multiple IPv4 addresses and one IPv6 domain name
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ipv6_domainv6`: Multiple IPv6 addresses and one IPv6 domain name
`domain_domainv6`: Multiple IPv4 domain names and one IPv6 domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
`ip_ipv6_domainv6`: Multiple IPv4 and IPv6 addresses and one IPv6 domain name
`ip_domain_domainv6`: Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain name
`ipv6_domain_domainv6`: Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain name
`ip_ipv6_domain_domainv6`: Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain name
Output:
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to specify `OriginType`.
The IPv6 feature is now only available to beta users. Submit a ticket if you need it.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return OriginType Primary origin server type
This field is used together with `Origins`.
Input:
`domain`: Domain name
`domainv6`: IPv6 domain name
`cos`: COS bucket address
`third_party`: Third-party object storage origin
`igtm`: IGTM origin
`ip`: IP address
`ipv6`: One IPv6 address
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ip_domain`: IP addresses and domain names (only available to beta users)
`ip_domainv6`: Multiple IPv4 addresses and one IPv6 domain name
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ipv6_domainv6`: Multiple IPv6 addresses and one IPv6 domain name
`domain_domainv6`: Multiple IPv4 domain names and one IPv6 domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
`ip_ipv6_domainv6`: Multiple IPv4 and IPv6 addresses and one IPv6 domain name
`ip_domain_domainv6`: Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain name
`ipv6_domain_domainv6`: Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain name
`ip_ipv6_domain_domainv6`: Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain name
Output:
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to specify `OriginType`.
The IPv6 feature is now only available to beta users. Submit a ticket if you need it.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getOriginType() {
return this.OriginType;
}
/**
* Set Primary origin server type
This field is used together with `Origins`.
Input:
`domain`: Domain name
`domainv6`: IPv6 domain name
`cos`: COS bucket address
`third_party`: Third-party object storage origin
`igtm`: IGTM origin
`ip`: IP address
`ipv6`: One IPv6 address
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ip_domain`: IP addresses and domain names (only available to beta users)
`ip_domainv6`: Multiple IPv4 addresses and one IPv6 domain name
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ipv6_domainv6`: Multiple IPv6 addresses and one IPv6 domain name
`domain_domainv6`: Multiple IPv4 domain names and one IPv6 domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
`ip_ipv6_domainv6`: Multiple IPv4 and IPv6 addresses and one IPv6 domain name
`ip_domain_domainv6`: Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain name
`ipv6_domain_domainv6`: Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain name
`ip_ipv6_domain_domainv6`: Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain name
Output:
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to specify `OriginType`.
The IPv6 feature is now only available to beta users. Submit a ticket if you need it.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param OriginType Primary origin server type
This field is used together with `Origins`.
Input:
`domain`: Domain name
`domainv6`: IPv6 domain name
`cos`: COS bucket address
`third_party`: Third-party object storage origin
`igtm`: IGTM origin
`ip`: IP address
`ipv6`: One IPv6 address
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ip_domain`: IP addresses and domain names (only available to beta users)
`ip_domainv6`: Multiple IPv4 addresses and one IPv6 domain name
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ipv6_domainv6`: Multiple IPv6 addresses and one IPv6 domain name
`domain_domainv6`: Multiple IPv4 domain names and one IPv6 domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
`ip_ipv6_domainv6`: Multiple IPv4 and IPv6 addresses and one IPv6 domain name
`ip_domain_domainv6`: Multiple IPv4 addresses and IPv4 domain names and one IPv6 domain name
`ipv6_domain_domainv6`: Multiple IPv4 domain names and IPv6 addresses and one IPv6 domain name
`ip_ipv6_domain_domainv6`: Multiple IPv4 and IPv6 addresses and IPv4 domain names and one IPv6 domain name
Output:
`image`: Cloud Infinite origin
`ftp`: FTP origin (disused)
When modifying `Origins`, you need to specify `OriginType`.
The IPv6 feature is now only available to beta users. Submit a ticket if you need it.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setOriginType(String OriginType) {
this.OriginType = OriginType;
}
/**
* Get Origin-pull host header.
This field is required when `OriginType=cos/third-party`.
If not specified, this field defaults to the acceleration domain name.
For a wildcard domain name, the sub-domain name during the access is used by default.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return ServerName Origin-pull host header.
This field is required when `OriginType=cos/third-party`.
If not specified, this field defaults to the acceleration domain name.
For a wildcard domain name, the sub-domain name during the access is used by default.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getServerName() {
return this.ServerName;
}
/**
* Set Origin-pull host header.
This field is required when `OriginType=cos/third-party`.
If not specified, this field defaults to the acceleration domain name.
For a wildcard domain name, the sub-domain name during the access is used by default.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param ServerName Origin-pull host header.
This field is required when `OriginType=cos/third-party`.
If not specified, this field defaults to the acceleration domain name.
For a wildcard domain name, the sub-domain name during the access is used by default.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setServerName(String ServerName) {
this.ServerName = ServerName;
}
/**
* Get When OriginType is COS, you can specify if access to private buckets is allowed.
Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: `on` and `off`.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return CosPrivateAccess When OriginType is COS, you can specify if access to private buckets is allowed.
Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: `on` and `off`.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public String getCosPrivateAccess() {
return this.CosPrivateAccess;
}
/**
* Set When OriginType is COS, you can specify if access to private buckets is allowed.
Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: `on` and `off`.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param CosPrivateAccess When OriginType is COS, you can specify if access to private buckets is allowed.
Note: To enable this configuration, you need to first grant CDN access to the private bucket. Values: `on` and `off`.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setCosPrivateAccess(String CosPrivateAccess) {
this.CosPrivateAccess = CosPrivateAccess;
}
/**
* Get Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return OriginPullProtocol Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public String getOriginPullProtocol() {
return this.OriginPullProtocol;
}
/**
* Set Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param OriginPullProtocol Origin-pull protocol configuration
http: forced HTTP origin-pull
follow: protocol follow origin-pull
https: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setOriginPullProtocol(String OriginPullProtocol) {
this.OriginPullProtocol = OriginPullProtocol;
}
/**
* Get List of secondary origin servers
This field is used together with `BackupOriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return BackupOrigins List of secondary origin servers
This field is used together with `BackupOriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String [] getBackupOrigins() {
return this.BackupOrigins;
}
/**
* Set List of secondary origin servers
This field is used together with `BackupOriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param BackupOrigins List of secondary origin servers
This field is used together with `BackupOriginType`.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setBackupOrigins(String [] BackupOrigins) {
this.BackupOrigins = BackupOrigins;
}
/**
* Get Secondary origin type
This field is used together with `BackupOrigins`.
Values:
`domain`: Domain name
`ip`: IP address
The following secondary origin types are only available to beta users. Submit a ticket to use it.
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return BackupOriginType Secondary origin type
This field is used together with `BackupOrigins`.
Values:
`domain`: Domain name
`ip`: IP address
The following secondary origin types are only available to beta users. Submit a ticket to use it.
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getBackupOriginType() {
return this.BackupOriginType;
}
/**
* Set Secondary origin type
This field is used together with `BackupOrigins`.
Values:
`domain`: Domain name
`ip`: IP address
The following secondary origin types are only available to beta users. Submit a ticket to use it.
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param BackupOriginType Secondary origin type
This field is used together with `BackupOrigins`.
Values:
`domain`: Domain name
`ip`: IP address
The following secondary origin types are only available to beta users. Submit a ticket to use it.
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6`: Multiple IPv4 addresses and one IPv6 address
`ipv6_domain`: Multiple IPv6 addresses and one domain name
`ip_ipv6_domain`: Multiple IPv4 and IPv6 addresses and one domain name
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setBackupOriginType(String BackupOriginType) {
this.BackupOriginType = BackupOriginType;
}
/**
* Get Host header used when accessing the backup origin server. If it is left empty, the `ServerName` of primary origin server will be used by default.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return BackupServerName Host header used when accessing the backup origin server. If it is left empty, the `ServerName` of primary origin server will be used by default.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public String getBackupServerName() {
return this.BackupServerName;
}
/**
* Set Host header used when accessing the backup origin server. If it is left empty, the `ServerName` of primary origin server will be used by default.
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param BackupServerName Host header used when accessing the backup origin server. If it is left empty, the `ServerName` of primary origin server will be used by default.
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setBackupServerName(String BackupServerName) {
this.BackupServerName = BackupServerName;
}
/**
* Get Origin-pull path
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return BasePath Origin-pull path
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public String getBasePath() {
return this.BasePath;
}
/**
* Set Origin-pull path
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param BasePath Origin-pull path
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setBasePath(String BasePath) {
this.BasePath = BasePath;
}
/**
* Get Origin-pull path rewriting configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return PathRules Origin-pull path rewriting configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public PathRule [] getPathRules() {
return this.PathRules;
}
/**
* Set Origin-pull path rewriting configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param PathRules Origin-pull path rewriting configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setPathRules(PathRule [] PathRules) {
this.PathRules = PathRules;
}
/**
* Get Path-based origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return PathBasedOrigin Path-based origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public PathBasedOriginRule [] getPathBasedOrigin() {
return this.PathBasedOrigin;
}
/**
* Set Path-based origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param PathBasedOrigin Path-based origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setPathBasedOrigin(PathBasedOriginRule [] PathBasedOrigin) {
this.PathBasedOrigin = PathBasedOrigin;
}
/**
* Get HTTPS origin-pull SNI
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return Sni HTTPS origin-pull SNI
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public OriginSni getSni() {
return this.Sni;
}
/**
* Set HTTPS origin-pull SNI
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param Sni HTTPS origin-pull SNI
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setSni(OriginSni Sni) {
this.Sni = Sni;
}
/**
* Get HTTPS advanced origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @return AdvanceHttps HTTPS advanced origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public AdvanceHttps getAdvanceHttps() {
return this.AdvanceHttps;
}
/**
* Set HTTPS advanced origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
* @param AdvanceHttps HTTPS advanced origin-pull configuration
Note: This field may return `null`, indicating that no valid value can be obtained.
*/
public void setAdvanceHttps(AdvanceHttps AdvanceHttps) {
this.AdvanceHttps = AdvanceHttps;
}
/**
* Get Third-party object storage service vendor
This field is required when `OriginType=third-party`.
Values:
`aws_s3`: AWS S3
`ali_oss`: Alibaba Cloud OSS
`hw_obs`: Huawei Cloud OBS
`Qiniu_kodo`: Qiniu Kodo
`Others`: Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @return OriginCompany Third-party object storage service vendor
This field is required when `OriginType=third-party`.
Values:
`aws_s3`: AWS S3
`ali_oss`: Alibaba Cloud OSS
`hw_obs`: Huawei Cloud OBS
`Qiniu_kodo`: Qiniu Kodo
`Others`: Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public String getOriginCompany() {
return this.OriginCompany;
}
/**
* Set Third-party object storage service vendor
This field is required when `OriginType=third-party`.
Values:
`aws_s3`: AWS S3
`ali_oss`: Alibaba Cloud OSS
`hw_obs`: Huawei Cloud OBS
`Qiniu_kodo`: Qiniu Kodo
`Others`: Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.
Note: This field may return `null`, indicating that no valid values can be obtained.
* @param OriginCompany Third-party object storage service vendor
This field is required when `OriginType=third-party`.
Values:
`aws_s3`: AWS S3
`ali_oss`: Alibaba Cloud OSS
`hw_obs`: Huawei Cloud OBS
`Qiniu_kodo`: Qiniu Kodo
`Others`: Other object storage service vendors. Only AWS signature-compatible object storage services are supported, such as Tencent Cloud COS for Finance Zone.
Note: This field may return `null`, indicating that no valid values can be obtained.
*/
public void setOriginCompany(String OriginCompany) {
this.OriginCompany = OriginCompany;
}
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.OriginType != null) {
this.OriginType = new String(source.OriginType);
}
if (source.ServerName != null) {
this.ServerName = new String(source.ServerName);
}
if (source.CosPrivateAccess != null) {
this.CosPrivateAccess = new String(source.CosPrivateAccess);
}
if (source.OriginPullProtocol != null) {
this.OriginPullProtocol = new String(source.OriginPullProtocol);
}
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.BackupOriginType != null) {
this.BackupOriginType = new String(source.BackupOriginType);
}
if (source.BackupServerName != null) {
this.BackupServerName = new String(source.BackupServerName);
}
if (source.BasePath != null) {
this.BasePath = new String(source.BasePath);
}
if (source.PathRules != null) {
this.PathRules = new PathRule[source.PathRules.length];
for (int i = 0; i < source.PathRules.length; i++) {
this.PathRules[i] = new PathRule(source.PathRules[i]);
}
}
if (source.PathBasedOrigin != null) {
this.PathBasedOrigin = new PathBasedOriginRule[source.PathBasedOrigin.length];
for (int i = 0; i < source.PathBasedOrigin.length; i++) {
this.PathBasedOrigin[i] = new PathBasedOriginRule(source.PathBasedOrigin[i]);
}
}
if (source.Sni != null) {
this.Sni = new OriginSni(source.Sni);
}
if (source.AdvanceHttps != null) {
this.AdvanceHttps = new AdvanceHttps(source.AdvanceHttps);
}
if (source.OriginCompany != null) {
this.OriginCompany = new String(source.OriginCompany);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "Origins.", this.Origins);
this.setParamSimple(map, prefix + "OriginType", this.OriginType);
this.setParamSimple(map, prefix + "ServerName", this.ServerName);
this.setParamSimple(map, prefix + "CosPrivateAccess", this.CosPrivateAccess);
this.setParamSimple(map, prefix + "OriginPullProtocol", this.OriginPullProtocol);
this.setParamArraySimple(map, prefix + "BackupOrigins.", this.BackupOrigins);
this.setParamSimple(map, prefix + "BackupOriginType", this.BackupOriginType);
this.setParamSimple(map, prefix + "BackupServerName", this.BackupServerName);
this.setParamSimple(map, prefix + "BasePath", this.BasePath);
this.setParamArrayObj(map, prefix + "PathRules.", this.PathRules);
this.setParamArrayObj(map, prefix + "PathBasedOrigin.", this.PathBasedOrigin);
this.setParamObj(map, prefix + "Sni.", this.Sni);
this.setParamObj(map, prefix + "AdvanceHttps.", this.AdvanceHttps);
this.setParamSimple(map, prefix + "OriginCompany", this.OriginCompany);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy