All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.teo.v20220901.models.OriginDetail 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.v20220901.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 OriginDetail extends AbstractModel {

    /**
    * The origin type. Values:
  • `IP_DOMAIN`: IPv4/IPv6 address or domain name
  • `COS`: COS bucket address
  • `ORIGIN_GROUP`: Origin group
  • `AWS_S3`: AWS S3 bucket address
  • */ @SerializedName("OriginType") @Expose private String OriginType; /** * The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`. */ @SerializedName("Origin") @Expose private String Origin; /** * ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used. */ @SerializedName("BackupOrigin") @Expose private String BackupOrigin; /** * Name of the primary origin group (valid when `OriginType=ORIGIN_GROUP`). */ @SerializedName("OriginGroupName") @Expose private String OriginGroupName; /** * Name of the secondary origin group (valid when `OriginType=ORIGIN_GROUP` and `BackupOrigin` is specified). */ @SerializedName("BackOriginGroupName") @Expose private String BackOriginGroupName; /** * Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
  • `on`: Enable private authentication.
  • `off`: Disable private authentication.
  • If this field is not specified, the default value `off` is used. */ @SerializedName("PrivateAccess") @Expose private String PrivateAccess; /** * The private authentication parameters. This field is valid when `PrivateAccess=on`. Note: This field may return null, indicating that no valid values can be obtained. */ @SerializedName("PrivateParameters") @Expose private PrivateParameter [] PrivateParameters; /** * Get The origin type. Values:
  • `IP_DOMAIN`: IPv4/IPv6 address or domain name
  • `COS`: COS bucket address
  • `ORIGIN_GROUP`: Origin group
  • `AWS_S3`: AWS S3 bucket address
  • * @return OriginType The origin type. Values:
  • `IP_DOMAIN`: IPv4/IPv6 address or domain name
  • `COS`: COS bucket address
  • `ORIGIN_GROUP`: Origin group
  • `AWS_S3`: AWS S3 bucket address
  • */ public String getOriginType() { return this.OriginType; } /** * Set The origin type. Values:
  • `IP_DOMAIN`: IPv4/IPv6 address or domain name
  • `COS`: COS bucket address
  • `ORIGIN_GROUP`: Origin group
  • `AWS_S3`: AWS S3 bucket address
  • * @param OriginType The origin type. Values:
  • `IP_DOMAIN`: IPv4/IPv6 address or domain name
  • `COS`: COS bucket address
  • `ORIGIN_GROUP`: Origin group
  • `AWS_S3`: AWS S3 bucket address
  • */ public void setOriginType(String OriginType) { this.OriginType = OriginType; } /** * Get The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`. * @return Origin The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`. */ public String getOrigin() { return this.Origin; } /** * Set The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`. * @param Origin The origin address. Enter the origin group ID if `OriginType=ORIGIN_GROUP`. */ public void setOrigin(String Origin) { this.Origin = Origin; } /** * Get ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used. * @return BackupOrigin ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used. */ public String getBackupOrigin() { return this.BackupOrigin; } /** * Set ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used. * @param BackupOrigin ID of the secondary origin group (valid when `OriginType=ORIGIN_GROUP`). If it’s not specified, it indicates that secondary origins are not used. */ public void setBackupOrigin(String BackupOrigin) { this.BackupOrigin = BackupOrigin; } /** * Get Name of the primary origin group (valid when `OriginType=ORIGIN_GROUP`). * @return OriginGroupName Name of the primary origin group (valid when `OriginType=ORIGIN_GROUP`). */ public String getOriginGroupName() { return this.OriginGroupName; } /** * Set Name of the primary origin group (valid when `OriginType=ORIGIN_GROUP`). * @param OriginGroupName Name of the primary origin group (valid when `OriginType=ORIGIN_GROUP`). */ public void setOriginGroupName(String OriginGroupName) { this.OriginGroupName = OriginGroupName; } /** * Get Name of the secondary origin group (valid when `OriginType=ORIGIN_GROUP` and `BackupOrigin` is specified). * @return BackOriginGroupName Name of the secondary origin group (valid when `OriginType=ORIGIN_GROUP` and `BackupOrigin` is specified). */ public String getBackOriginGroupName() { return this.BackOriginGroupName; } /** * Set Name of the secondary origin group (valid when `OriginType=ORIGIN_GROUP` and `BackupOrigin` is specified). * @param BackOriginGroupName Name of the secondary origin group (valid when `OriginType=ORIGIN_GROUP` and `BackupOrigin` is specified). */ public void setBackOriginGroupName(String BackOriginGroupName) { this.BackOriginGroupName = BackOriginGroupName; } /** * Get Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
  • `on`: Enable private authentication.
  • `off`: Disable private authentication.
  • If this field is not specified, the default value `off` is used. * @return PrivateAccess Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
  • `on`: Enable private authentication.
  • `off`: Disable private authentication.
  • If this field is not specified, the default value `off` is used. */ public String getPrivateAccess() { return this.PrivateAccess; } /** * Set Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
  • `on`: Enable private authentication.
  • `off`: Disable private authentication.
  • If this field is not specified, the default value `off` is used. * @param PrivateAccess Whether to authenticate access to the private object storage origin (valid when `OriginType=COS/AWS_S3`). Values:
  • `on`: Enable private authentication.
  • `off`: Disable private authentication.
  • If this field is not specified, the default value `off` is used. */ public void setPrivateAccess(String PrivateAccess) { this.PrivateAccess = PrivateAccess; } /** * Get The private authentication parameters. This field is valid when `PrivateAccess=on`. Note: This field may return null, indicating that no valid values can be obtained. * @return PrivateParameters The private authentication parameters. This field is valid when `PrivateAccess=on`. Note: This field may return null, indicating that no valid values can be obtained. */ public PrivateParameter [] getPrivateParameters() { return this.PrivateParameters; } /** * Set The private authentication parameters. This field is valid when `PrivateAccess=on`. Note: This field may return null, indicating that no valid values can be obtained. * @param PrivateParameters The private authentication parameters. This field is valid when `PrivateAccess=on`. Note: This field may return null, indicating that no valid values can be obtained. */ public void setPrivateParameters(PrivateParameter [] PrivateParameters) { this.PrivateParameters = PrivateParameters; } public OriginDetail() { } /** * 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 OriginDetail(OriginDetail source) { if (source.OriginType != null) { this.OriginType = new String(source.OriginType); } if (source.Origin != null) { this.Origin = new String(source.Origin); } if (source.BackupOrigin != null) { this.BackupOrigin = new String(source.BackupOrigin); } if (source.OriginGroupName != null) { this.OriginGroupName = new String(source.OriginGroupName); } if (source.BackOriginGroupName != null) { this.BackOriginGroupName = new String(source.BackOriginGroupName); } if (source.PrivateAccess != null) { this.PrivateAccess = new String(source.PrivateAccess); } if (source.PrivateParameters != null) { this.PrivateParameters = new PrivateParameter[source.PrivateParameters.length]; for (int i = 0; i < source.PrivateParameters.length; i++) { this.PrivateParameters[i] = new PrivateParameter(source.PrivateParameters[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "OriginType", this.OriginType); this.setParamSimple(map, prefix + "Origin", this.Origin); this.setParamSimple(map, prefix + "BackupOrigin", this.BackupOrigin); this.setParamSimple(map, prefix + "OriginGroupName", this.OriginGroupName); this.setParamSimple(map, prefix + "BackOriginGroupName", this.BackOriginGroupName); this.setParamSimple(map, prefix + "PrivateAccess", this.PrivateAccess); this.setParamArrayObj(map, prefix + "PrivateParameters.", this.PrivateParameters); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy