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

cn.com.antcloud.api.catronus.v1_0.request.AddStrategyRequest Maven / Gradle / Ivy

Go to download

Ant Chain API SDK For Java Copyright (c) 2020-present antgroup.com, https://www.antgroup.com

The newest version!
//
//  Copyright (c) 2020-present antgroup.com, https://www.antgroup.com
//
//  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 cn.com.antcloud.api.catronus.v1_0.request;

import cn.com.antcloud.api.catronus.v1_0.model.Strategy;
import cn.com.antcloud.api.catronus.v1_0.response.AddStrategyResponse;
import cn.com.antcloud.api.product.AntCloudProdRequest;
import java.lang.String;
import java.util.List;
import javax.validation.constraints.NotNull;

/**
 * 设置安全策略 */
public class AddStrategyRequest extends AntCloudProdRequest {
  private String strategyId;

  @NotNull
  private Strategy content;

  private List clusterId;

  private String _prod_code = "CATRONUS";

  public AddStrategyRequest(String productInstanceId) {
    super("antcloud.catronus.strategy.add", "1.0", "Java-SDK-20230525", productInstanceId);
  }

  public AddStrategyRequest() {
    super("antcloud.catronus.strategy.add", "1.0", null);
    this.setSdkVersion("Java-SDK-20230525");
  }

  /**
   * Product code */
  public String get_prod_code() {
    return this._prod_code;
  }

  /**
   * Product code */
  public void set_prod_code(String _prod_code) {
    this._prod_code = _prod_code;
  }

  /**
   * 策略id */
  public String getStrategyId() {
    return this.strategyId;
  }

  /**
   * 策略id */
  public void setStrategyId(String strategyId) {
    this.strategyId = strategyId;
  }

  /**
   * 策略内容 */
  public Strategy getContent() {
    return this.content;
  }

  /**
   * 策略内容 */
  public void setContent(Strategy content) {
    this.content = content;
  }

  /**
   * 绑定的集群id */
  public List getClusterId() {
    return this.clusterId;
  }

  /**
   * 绑定的集群id */
  public void setClusterId(List clusterId) {
    this.clusterId = clusterId;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy