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

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

There is a newer version: 3.0.1076
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 L4ProxyRemoteAuth extends AbstractModel {

    /**
    * Whether to enable L4 remote authentication. Valid values:
  • on: Enable;
  • off: Disable.
  • */ @SerializedName("Switch") @Expose private String Switch; /** * Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888. */ @SerializedName("Address") @Expose private String Address; /** * Default origin-pull behavior based on L4 forwarding rules after the remote authentication service is disabled. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • */ @SerializedName("ServerFaultyBehavior") @Expose private String ServerFaultyBehavior; /** * Get Whether to enable L4 remote authentication. Valid values:
  • on: Enable;
  • off: Disable.
  • * @return Switch Whether to enable L4 remote authentication. Valid values:
  • on: Enable;
  • off: Disable.
  • */ public String getSwitch() { return this.Switch; } /** * Set Whether to enable L4 remote authentication. Valid values:
  • on: Enable;
  • off: Disable.
  • * @param Switch Whether to enable L4 remote authentication. Valid values:
  • on: Enable;
  • off: Disable.
  • */ public void setSwitch(String Switch) { this.Switch = Switch; } /** * Get Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888. * @return Address Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888. */ public String getAddress() { return this.Address; } /** * Set Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888. * @param Address Remote authentication service address, in the format of domain/ip:port, such as example.auth.com:8888. */ public void setAddress(String Address) { this.Address = Address; } /** * Get Default origin-pull behavior based on L4 forwarding rules after the remote authentication service is disabled. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • * @return ServerFaultyBehavior Default origin-pull behavior based on L4 forwarding rules after the remote authentication service is disabled. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • */ public String getServerFaultyBehavior() { return this.ServerFaultyBehavior; } /** * Set Default origin-pull behavior based on L4 forwarding rules after the remote authentication service is disabled. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • * @param ServerFaultyBehavior Default origin-pull behavior based on L4 forwarding rules after the remote authentication service is disabled. Valid values:
  • reject: Block and deny access;
  • allow: Allow access.
  • */ public void setServerFaultyBehavior(String ServerFaultyBehavior) { this.ServerFaultyBehavior = ServerFaultyBehavior; } public L4ProxyRemoteAuth() { } /** * 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 L4ProxyRemoteAuth(L4ProxyRemoteAuth source) { if (source.Switch != null) { this.Switch = new String(source.Switch); } if (source.Address != null) { this.Address = new String(source.Address); } if (source.ServerFaultyBehavior != null) { this.ServerFaultyBehavior = new String(source.ServerFaultyBehavior); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Switch", this.Switch); this.setParamSimple(map, prefix + "Address", this.Address); this.setParamSimple(map, prefix + "ServerFaultyBehavior", this.ServerFaultyBehavior); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy