com.aliyuncs.oceanbasepro.model.v20190901.CreateMySqlDataSourceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-oceanbasepro Show documentation
Show all versions of aliyun-java-sdk-oceanbasepro Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
/*
* 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.aliyuncs.oceanbasepro.model.v20190901;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.oceanbasepro.Endpoint;
/**
* @author auto create
* @version
*/
public class CreateMySqlDataSourceRequest extends RpcAcsRequest {
private String schema;
private String description;
private String type;
private Boolean useSsl;
private String password;
private String dgInstanceId;
private String ip;
private String instanceId;
private Integer port;
private String vpcId;
private String name;
private String userName;
public CreateMySqlDataSourceRequest() {
super("OceanBasePro", "2019-09-01", "CreateMySqlDataSource", "oceanbase");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getSchema() {
return this.schema;
}
public void setSchema(String schema) {
this.schema = schema;
if(schema != null){
putBodyParameter("Schema", schema);
}
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
if(description != null){
putBodyParameter("Description", description);
}
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
if(type != null){
putBodyParameter("Type", type);
}
}
public Boolean getUseSsl() {
return this.useSsl;
}
public void setUseSsl(Boolean useSsl) {
this.useSsl = useSsl;
if(useSsl != null){
putBodyParameter("UseSsl", useSsl.toString());
}
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
if(password != null){
putBodyParameter("Password", password);
}
}
public String getDgInstanceId() {
return this.dgInstanceId;
}
public void setDgInstanceId(String dgInstanceId) {
this.dgInstanceId = dgInstanceId;
if(dgInstanceId != null){
putBodyParameter("DgInstanceId", dgInstanceId);
}
}
public String getIp() {
return this.ip;
}
public void setIp(String ip) {
this.ip = ip;
if(ip != null){
putBodyParameter("Ip", ip);
}
}
public String getInstanceId() {
return this.instanceId;
}
public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
if(instanceId != null){
putBodyParameter("InstanceId", instanceId);
}
}
public Integer getPort() {
return this.port;
}
public void setPort(Integer port) {
this.port = port;
if(port != null){
putBodyParameter("Port", port.toString());
}
}
public String getVpcId() {
return this.vpcId;
}
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
if(vpcId != null){
putBodyParameter("VpcId", vpcId);
}
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
if(name != null){
putBodyParameter("Name", name);
}
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
if(userName != null){
putBodyParameter("UserName", userName);
}
}
@Override
public Class getResponseClass() {
return CreateMySqlDataSourceResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy