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

com.tencentcloudapi.teo.v20220901.models.CreateAccelerationDomainRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1113
Show newest version
/*
 * 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 CreateAccelerationDomainRequest extends AbstractModel {

    /**
    * ID of the site related with the acceleration domain name.
    */
    @SerializedName("ZoneId")
    @Expose
    private String ZoneId;

    /**
    * Acceleration domain name
    */
    @SerializedName("DomainName")
    @Expose
    private String DomainName;

    /**
    * Details of the origin.
    */
    @SerializedName("OriginInfo")
    @Expose
    private OriginInfo OriginInfo;

    /**
    * Origin-pull protocol configuration. Values:
  • `FOLLOW`: Follow the protocol of origin
  • `HTTP`: Send requests to the origin over HTTP
  • `HTTPS`: Send requests to the origin over HTTPS
  • Default: `FOLLOW`
  • */ @SerializedName("OriginProtocol") @Expose private String OriginProtocol; /** * Ports for HTTP origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTP`. Port 80 is used if it's not specified. */ @SerializedName("HttpOriginPort") @Expose private Long HttpOriginPort; /** * Ports for HTTPS origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTPS`. Port 443 is used if it's not specified. */ @SerializedName("HttpsOriginPort") @Expose private Long HttpsOriginPort; /** * IPv6 status. Values:
  • `follow`: Follow the IPv6 configuration of the site
  • `on`: Enable
  • `off`: Disable
  • Default: `follow`
  • */ @SerializedName("IPv6Status") @Expose private String IPv6Status; /** * Get ID of the site related with the acceleration domain name. * @return ZoneId ID of the site related with the acceleration domain name. */ public String getZoneId() { return this.ZoneId; } /** * Set ID of the site related with the acceleration domain name. * @param ZoneId ID of the site related with the acceleration domain name. */ public void setZoneId(String ZoneId) { this.ZoneId = ZoneId; } /** * Get Acceleration domain name * @return DomainName Acceleration domain name */ public String getDomainName() { return this.DomainName; } /** * Set Acceleration domain name * @param DomainName Acceleration domain name */ public void setDomainName(String DomainName) { this.DomainName = DomainName; } /** * Get Details of the origin. * @return OriginInfo Details of the origin. */ public OriginInfo getOriginInfo() { return this.OriginInfo; } /** * Set Details of the origin. * @param OriginInfo Details of the origin. */ public void setOriginInfo(OriginInfo OriginInfo) { this.OriginInfo = OriginInfo; } /** * Get Origin-pull protocol configuration. Values:
  • `FOLLOW`: Follow the protocol of origin
  • `HTTP`: Send requests to the origin over HTTP
  • `HTTPS`: Send requests to the origin over HTTPS
  • Default: `FOLLOW`
  • * @return OriginProtocol Origin-pull protocol configuration. Values:
  • `FOLLOW`: Follow the protocol of origin
  • `HTTP`: Send requests to the origin over HTTP
  • `HTTPS`: Send requests to the origin over HTTPS
  • Default: `FOLLOW`
  • */ public String getOriginProtocol() { return this.OriginProtocol; } /** * Set Origin-pull protocol configuration. Values:
  • `FOLLOW`: Follow the protocol of origin
  • `HTTP`: Send requests to the origin over HTTP
  • `HTTPS`: Send requests to the origin over HTTPS
  • Default: `FOLLOW`
  • * @param OriginProtocol Origin-pull protocol configuration. Values:
  • `FOLLOW`: Follow the protocol of origin
  • `HTTP`: Send requests to the origin over HTTP
  • `HTTPS`: Send requests to the origin over HTTPS
  • Default: `FOLLOW`
  • */ public void setOriginProtocol(String OriginProtocol) { this.OriginProtocol = OriginProtocol; } /** * Get Ports for HTTP origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTP`. Port 80 is used if it's not specified. * @return HttpOriginPort Ports for HTTP origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTP`. Port 80 is used if it's not specified. */ public Long getHttpOriginPort() { return this.HttpOriginPort; } /** * Set Ports for HTTP origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTP`. Port 80 is used if it's not specified. * @param HttpOriginPort Ports for HTTP origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTP`. Port 80 is used if it's not specified. */ public void setHttpOriginPort(Long HttpOriginPort) { this.HttpOriginPort = HttpOriginPort; } /** * Get Ports for HTTPS origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTPS`. Port 443 is used if it's not specified. * @return HttpsOriginPort Ports for HTTPS origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTPS`. Port 443 is used if it's not specified. */ public Long getHttpsOriginPort() { return this.HttpsOriginPort; } /** * Set Ports for HTTPS origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTPS`. Port 443 is used if it's not specified. * @param HttpsOriginPort Ports for HTTPS origin-pull requests. Range: 1-65535. It takes effect when `OriginProtocol=FOLLOW/HTTPS`. Port 443 is used if it's not specified. */ public void setHttpsOriginPort(Long HttpsOriginPort) { this.HttpsOriginPort = HttpsOriginPort; } /** * Get IPv6 status. Values:
  • `follow`: Follow the IPv6 configuration of the site
  • `on`: Enable
  • `off`: Disable
  • Default: `follow`
  • * @return IPv6Status IPv6 status. Values:
  • `follow`: Follow the IPv6 configuration of the site
  • `on`: Enable
  • `off`: Disable
  • Default: `follow`
  • */ public String getIPv6Status() { return this.IPv6Status; } /** * Set IPv6 status. Values:
  • `follow`: Follow the IPv6 configuration of the site
  • `on`: Enable
  • `off`: Disable
  • Default: `follow`
  • * @param IPv6Status IPv6 status. Values:
  • `follow`: Follow the IPv6 configuration of the site
  • `on`: Enable
  • `off`: Disable
  • Default: `follow`
  • */ public void setIPv6Status(String IPv6Status) { this.IPv6Status = IPv6Status; } public CreateAccelerationDomainRequest() { } /** * 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 CreateAccelerationDomainRequest(CreateAccelerationDomainRequest source) { if (source.ZoneId != null) { this.ZoneId = new String(source.ZoneId); } if (source.DomainName != null) { this.DomainName = new String(source.DomainName); } if (source.OriginInfo != null) { this.OriginInfo = new OriginInfo(source.OriginInfo); } if (source.OriginProtocol != null) { this.OriginProtocol = new String(source.OriginProtocol); } if (source.HttpOriginPort != null) { this.HttpOriginPort = new Long(source.HttpOriginPort); } if (source.HttpsOriginPort != null) { this.HttpsOriginPort = new Long(source.HttpsOriginPort); } if (source.IPv6Status != null) { this.IPv6Status = new String(source.IPv6Status); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "ZoneId", this.ZoneId); this.setParamSimple(map, prefix + "DomainName", this.DomainName); this.setParamObj(map, prefix + "OriginInfo.", this.OriginInfo); this.setParamSimple(map, prefix + "OriginProtocol", this.OriginProtocol); this.setParamSimple(map, prefix + "HttpOriginPort", this.HttpOriginPort); this.setParamSimple(map, prefix + "HttpsOriginPort", this.HttpsOriginPort); this.setParamSimple(map, prefix + "IPv6Status", this.IPv6Status); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy