com.google.api.services.datamigration.v1.model.SqlIpConfig Maven / Gradle / Ivy
/*
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.datamigration.v1.model;
/**
* IP Management configuration.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Database Migration API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class SqlIpConfig extends com.google.api.client.json.GenericJson {
/**
* Optional. The name of the allocated IP address range for the private IP Cloud SQL instance.
* This name refers to an already allocated IP range address. If set, the instance IP address will
* be created in the allocated range. Note that this IP address range can't be modified after the
* instance is created. If you change the VPC when configuring connectivity settings for the
* migration job, this field is not relevant.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String allocatedIpRange;
/**
* The list of external networks that are allowed to connect to the instance using the IP. See
* https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g.
* `192.168.100.0/24`).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List authorizedNetworks;
static {
// hack to force ProGuard to consider SqlAclEntry used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(SqlAclEntry.class);
}
/**
* Whether the instance should be assigned an IPv4 address or not.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean enableIpv4;
/**
* The resource link for the VPC network from which the Cloud SQL instance is accessible for
* private IP. For example, `projects/myProject/global/networks/default`. This setting can be
* updated, but it cannot be removed after it is set.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String privateNetwork;
/**
* Whether SSL connections over IP should be enforced or not.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean requireSsl;
/**
* Optional. The name of the allocated IP address range for the private IP Cloud SQL instance.
* This name refers to an already allocated IP range address. If set, the instance IP address will
* be created in the allocated range. Note that this IP address range can't be modified after the
* instance is created. If you change the VPC when configuring connectivity settings for the
* migration job, this field is not relevant.
* @return value or {@code null} for none
*/
public java.lang.String getAllocatedIpRange() {
return allocatedIpRange;
}
/**
* Optional. The name of the allocated IP address range for the private IP Cloud SQL instance.
* This name refers to an already allocated IP range address. If set, the instance IP address will
* be created in the allocated range. Note that this IP address range can't be modified after the
* instance is created. If you change the VPC when configuring connectivity settings for the
* migration job, this field is not relevant.
* @param allocatedIpRange allocatedIpRange or {@code null} for none
*/
public SqlIpConfig setAllocatedIpRange(java.lang.String allocatedIpRange) {
this.allocatedIpRange = allocatedIpRange;
return this;
}
/**
* The list of external networks that are allowed to connect to the instance using the IP. See
* https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g.
* `192.168.100.0/24`).
* @return value or {@code null} for none
*/
public java.util.List getAuthorizedNetworks() {
return authorizedNetworks;
}
/**
* The list of external networks that are allowed to connect to the instance using the IP. See
* https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g.
* `192.168.100.0/24`).
* @param authorizedNetworks authorizedNetworks or {@code null} for none
*/
public SqlIpConfig setAuthorizedNetworks(java.util.List authorizedNetworks) {
this.authorizedNetworks = authorizedNetworks;
return this;
}
/**
* Whether the instance should be assigned an IPv4 address or not.
* @return value or {@code null} for none
*/
public java.lang.Boolean getEnableIpv4() {
return enableIpv4;
}
/**
* Whether the instance should be assigned an IPv4 address or not.
* @param enableIpv4 enableIpv4 or {@code null} for none
*/
public SqlIpConfig setEnableIpv4(java.lang.Boolean enableIpv4) {
this.enableIpv4 = enableIpv4;
return this;
}
/**
* The resource link for the VPC network from which the Cloud SQL instance is accessible for
* private IP. For example, `projects/myProject/global/networks/default`. This setting can be
* updated, but it cannot be removed after it is set.
* @return value or {@code null} for none
*/
public java.lang.String getPrivateNetwork() {
return privateNetwork;
}
/**
* The resource link for the VPC network from which the Cloud SQL instance is accessible for
* private IP. For example, `projects/myProject/global/networks/default`. This setting can be
* updated, but it cannot be removed after it is set.
* @param privateNetwork privateNetwork or {@code null} for none
*/
public SqlIpConfig setPrivateNetwork(java.lang.String privateNetwork) {
this.privateNetwork = privateNetwork;
return this;
}
/**
* Whether SSL connections over IP should be enforced or not.
* @return value or {@code null} for none
*/
public java.lang.Boolean getRequireSsl() {
return requireSsl;
}
/**
* Whether SSL connections over IP should be enforced or not.
* @param requireSsl requireSsl or {@code null} for none
*/
public SqlIpConfig setRequireSsl(java.lang.Boolean requireSsl) {
this.requireSsl = requireSsl;
return this;
}
@Override
public SqlIpConfig set(String fieldName, Object value) {
return (SqlIpConfig) super.set(fieldName, value);
}
@Override
public SqlIpConfig clone() {
return (SqlIpConfig) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy