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

com.google.api.services.datamigration.v1.model.PrivateConnection Maven / Gradle / Ivy

There is a newer version: v1-rev20241211-2.0.0
Show 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.
 */
/*
 * 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;

/**
 * The PrivateConnection resource is used to establish private connectivity with the customer's
 * network.
 *
 * 

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 PrivateConnection extends com.google.api.client.json.GenericJson { /** * Output only. The create time of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private String createTime; /** * The private connection display name. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * Output only. The error details in case of state FAILED. * The value may be {@code null}. */ @com.google.api.client.util.Key private Status error; /** * The resource labels for private connections to use to annotate any related underlying resources * such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: `{ * "name": "wrench", "mass": "1.3kg", "count": "3" }`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map labels; /** * The name of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Output only. The state of the private connection. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String state; /** * Output only. The last update time of the resource. * The value may be {@code null}. */ @com.google.api.client.util.Key private String updateTime; /** * VPC peering configuration. * The value may be {@code null}. */ @com.google.api.client.util.Key private VpcPeeringConfig vpcPeeringConfig; /** * Output only. The create time of the resource. * @return value or {@code null} for none */ public String getCreateTime() { return createTime; } /** * Output only. The create time of the resource. * @param createTime createTime or {@code null} for none */ public PrivateConnection setCreateTime(String createTime) { this.createTime = createTime; return this; } /** * The private connection display name. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * The private connection display name. * @param displayName displayName or {@code null} for none */ public PrivateConnection setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * Output only. The error details in case of state FAILED. * @return value or {@code null} for none */ public Status getError() { return error; } /** * Output only. The error details in case of state FAILED. * @param error error or {@code null} for none */ public PrivateConnection setError(Status error) { this.error = error; return this; } /** * The resource labels for private connections to use to annotate any related underlying resources * such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: `{ * "name": "wrench", "mass": "1.3kg", "count": "3" }`. * @return value or {@code null} for none */ public java.util.Map getLabels() { return labels; } /** * The resource labels for private connections to use to annotate any related underlying resources * such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: `{ * "name": "wrench", "mass": "1.3kg", "count": "3" }`. * @param labels labels or {@code null} for none */ public PrivateConnection setLabels(java.util.Map labels) { this.labels = labels; return this; } /** * The name of the resource. * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * The name of the resource. * @param name name or {@code null} for none */ public PrivateConnection setName(java.lang.String name) { this.name = name; return this; } /** * Output only. The state of the private connection. * @return value or {@code null} for none */ public java.lang.String getState() { return state; } /** * Output only. The state of the private connection. * @param state state or {@code null} for none */ public PrivateConnection setState(java.lang.String state) { this.state = state; return this; } /** * Output only. The last update time of the resource. * @return value or {@code null} for none */ public String getUpdateTime() { return updateTime; } /** * Output only. The last update time of the resource. * @param updateTime updateTime or {@code null} for none */ public PrivateConnection setUpdateTime(String updateTime) { this.updateTime = updateTime; return this; } /** * VPC peering configuration. * @return value or {@code null} for none */ public VpcPeeringConfig getVpcPeeringConfig() { return vpcPeeringConfig; } /** * VPC peering configuration. * @param vpcPeeringConfig vpcPeeringConfig or {@code null} for none */ public PrivateConnection setVpcPeeringConfig(VpcPeeringConfig vpcPeeringConfig) { this.vpcPeeringConfig = vpcPeeringConfig; return this; } @Override public PrivateConnection set(String fieldName, Object value) { return (PrivateConnection) super.set(fieldName, value); } @Override public PrivateConnection clone() { return (PrivateConnection) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy