cn.com.antcloud.api.catronus.v1_0.request.CreateRuntimePolicyRequest Maven / Gradle / Ivy
//
// 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.response.CreateRuntimePolicyResponse;
import cn.com.antcloud.api.product.AntCloudProdRequest;
import java.lang.String;
import javax.validation.constraints.NotNull;
/**
* 创建运行时策略 */
public class CreateRuntimePolicyRequest extends AntCloudProdRequest {
@NotNull
private String clusterId;
@NotNull
private String namespace;
@NotNull
private String name;
@NotNull
private String content;
private String _prod_code = "CATRONUS";
public CreateRuntimePolicyRequest(String productInstanceId) {
super("antcloud.catronus.runtime.policy.create", "1.0", "Java-SDK-20230525", productInstanceId);
}
public CreateRuntimePolicyRequest() {
super("antcloud.catronus.runtime.policy.create", "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 getClusterId() {
return this.clusterId;
}
/**
* 集群ID */
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
}
/**
* 命名空间 */
public String getNamespace() {
return this.namespace;
}
/**
* 命名空间 */
public void setNamespace(String namespace) {
this.namespace = namespace;
}
/**
* 名称 */
public String getName() {
return this.name;
}
/**
* 名称 */
public void setName(String name) {
this.name = name;
}
/**
* 运行时策略yaml文件内容 */
public String getContent() {
return this.content;
}
/**
* 运行时策略yaml文件内容 */
public void setContent(String content) {
this.content = content;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy