com.google.api.services.file.v1.model.Instance 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.file.v1.model;
/**
* A Filestore instance.
*
* 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 Cloud Filestore 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 Instance extends com.google.api.client.json.GenericJson {
/**
* Output only. Indicates whether this instance's performance is configurable. If enabled, adjust
* it using the 'performance_config' field.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean configurablePerformanceEnabled;
/**
* Output only. The time when the instance was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* Optional. Indicates whether the instance is protected against deletion.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean deletionProtectionEnabled;
/**
* Optional. The reason for enabling deletion protection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String deletionProtectionReason;
/**
* The description of the instance (2048 characters or less).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Server-specified ETag for the instance resource to prevent simultaneous updates from
* overwriting each other.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String etag;
/**
* File system shares on the instance. For this version, only a single file share is supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List fileShares;
static {
// hack to force ProGuard to consider FileShareConfig 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(FileShareConfig.class);
}
/**
* KMS key name used for data encryption.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kmsKeyName;
/**
* Resource labels to represent user provided metadata.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* Output only. The resource name of the instance, in the format
* `projects/{project}/locations/{location}/instances/{instance}`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* VPC networks to which the instance is connected. For this version, only a single network is
* supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List networks;
/**
* Optional. Used to configure performance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PerformanceConfig performanceConfig;
/**
* Output only. Used for getting performance limits.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private PerformanceLimits performanceLimits;
/**
* Immutable. The protocol indicates the access protocol for all shares in the instance. This
* field is immutable and it cannot be changed after the instance has been created. Default value:
* `NFS_V3`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String protocol;
/**
* Optional. Replication configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Replication replication;
/**
* Output only. Reserved for future use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean satisfiesPzi;
/**
* Output only. Reserved for future use.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean satisfiesPzs;
/**
* Output only. The instance state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String state;
/**
* Output only. Additional information about the instance state, if available.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String statusMessage;
/**
* Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List suspensionReasons;
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map tags;
/**
* The service tier of the instance.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String tier;
/**
* Output only. Indicates whether this instance's performance is configurable. If enabled, adjust
* it using the 'performance_config' field.
* @return value or {@code null} for none
*/
public java.lang.Boolean getConfigurablePerformanceEnabled() {
return configurablePerformanceEnabled;
}
/**
* Output only. Indicates whether this instance's performance is configurable. If enabled, adjust
* it using the 'performance_config' field.
* @param configurablePerformanceEnabled configurablePerformanceEnabled or {@code null} for none
*/
public Instance setConfigurablePerformanceEnabled(java.lang.Boolean configurablePerformanceEnabled) {
this.configurablePerformanceEnabled = configurablePerformanceEnabled;
return this;
}
/**
* Output only. The time when the instance was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The time when the instance was created.
* @param createTime createTime or {@code null} for none
*/
public Instance setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* Optional. Indicates whether the instance is protected against deletion.
* @return value or {@code null} for none
*/
public java.lang.Boolean getDeletionProtectionEnabled() {
return deletionProtectionEnabled;
}
/**
* Optional. Indicates whether the instance is protected against deletion.
* @param deletionProtectionEnabled deletionProtectionEnabled or {@code null} for none
*/
public Instance setDeletionProtectionEnabled(java.lang.Boolean deletionProtectionEnabled) {
this.deletionProtectionEnabled = deletionProtectionEnabled;
return this;
}
/**
* Optional. The reason for enabling deletion protection.
* @return value or {@code null} for none
*/
public java.lang.String getDeletionProtectionReason() {
return deletionProtectionReason;
}
/**
* Optional. The reason for enabling deletion protection.
* @param deletionProtectionReason deletionProtectionReason or {@code null} for none
*/
public Instance setDeletionProtectionReason(java.lang.String deletionProtectionReason) {
this.deletionProtectionReason = deletionProtectionReason;
return this;
}
/**
* The description of the instance (2048 characters or less).
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* The description of the instance (2048 characters or less).
* @param description description or {@code null} for none
*/
public Instance setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Server-specified ETag for the instance resource to prevent simultaneous updates from
* overwriting each other.
* @return value or {@code null} for none
*/
public java.lang.String getEtag() {
return etag;
}
/**
* Server-specified ETag for the instance resource to prevent simultaneous updates from
* overwriting each other.
* @param etag etag or {@code null} for none
*/
public Instance setEtag(java.lang.String etag) {
this.etag = etag;
return this;
}
/**
* File system shares on the instance. For this version, only a single file share is supported.
* @return value or {@code null} for none
*/
public java.util.List getFileShares() {
return fileShares;
}
/**
* File system shares on the instance. For this version, only a single file share is supported.
* @param fileShares fileShares or {@code null} for none
*/
public Instance setFileShares(java.util.List fileShares) {
this.fileShares = fileShares;
return this;
}
/**
* KMS key name used for data encryption.
* @return value or {@code null} for none
*/
public java.lang.String getKmsKeyName() {
return kmsKeyName;
}
/**
* KMS key name used for data encryption.
* @param kmsKeyName kmsKeyName or {@code null} for none
*/
public Instance setKmsKeyName(java.lang.String kmsKeyName) {
this.kmsKeyName = kmsKeyName;
return this;
}
/**
* Resource labels to represent user provided metadata.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Resource labels to represent user provided metadata.
* @param labels labels or {@code null} for none
*/
public Instance setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* Output only. The resource name of the instance, in the format
* `projects/{project}/locations/{location}/instances/{instance}`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* Output only. The resource name of the instance, in the format
* `projects/{project}/locations/{location}/instances/{instance}`.
* @param name name or {@code null} for none
*/
public Instance setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* VPC networks to which the instance is connected. For this version, only a single network is
* supported.
* @return value or {@code null} for none
*/
public java.util.List getNetworks() {
return networks;
}
/**
* VPC networks to which the instance is connected. For this version, only a single network is
* supported.
* @param networks networks or {@code null} for none
*/
public Instance setNetworks(java.util.List networks) {
this.networks = networks;
return this;
}
/**
* Optional. Used to configure performance.
* @return value or {@code null} for none
*/
public PerformanceConfig getPerformanceConfig() {
return performanceConfig;
}
/**
* Optional. Used to configure performance.
* @param performanceConfig performanceConfig or {@code null} for none
*/
public Instance setPerformanceConfig(PerformanceConfig performanceConfig) {
this.performanceConfig = performanceConfig;
return this;
}
/**
* Output only. Used for getting performance limits.
* @return value or {@code null} for none
*/
public PerformanceLimits getPerformanceLimits() {
return performanceLimits;
}
/**
* Output only. Used for getting performance limits.
* @param performanceLimits performanceLimits or {@code null} for none
*/
public Instance setPerformanceLimits(PerformanceLimits performanceLimits) {
this.performanceLimits = performanceLimits;
return this;
}
/**
* Immutable. The protocol indicates the access protocol for all shares in the instance. This
* field is immutable and it cannot be changed after the instance has been created. Default value:
* `NFS_V3`.
* @return value or {@code null} for none
*/
public java.lang.String getProtocol() {
return protocol;
}
/**
* Immutable. The protocol indicates the access protocol for all shares in the instance. This
* field is immutable and it cannot be changed after the instance has been created. Default value:
* `NFS_V3`.
* @param protocol protocol or {@code null} for none
*/
public Instance setProtocol(java.lang.String protocol) {
this.protocol = protocol;
return this;
}
/**
* Optional. Replication configuration.
* @return value or {@code null} for none
*/
public Replication getReplication() {
return replication;
}
/**
* Optional. Replication configuration.
* @param replication replication or {@code null} for none
*/
public Instance setReplication(Replication replication) {
this.replication = replication;
return this;
}
/**
* Output only. Reserved for future use.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSatisfiesPzi() {
return satisfiesPzi;
}
/**
* Output only. Reserved for future use.
* @param satisfiesPzi satisfiesPzi or {@code null} for none
*/
public Instance setSatisfiesPzi(java.lang.Boolean satisfiesPzi) {
this.satisfiesPzi = satisfiesPzi;
return this;
}
/**
* Output only. Reserved for future use.
* @return value or {@code null} for none
*/
public java.lang.Boolean getSatisfiesPzs() {
return satisfiesPzs;
}
/**
* Output only. Reserved for future use.
* @param satisfiesPzs satisfiesPzs or {@code null} for none
*/
public Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) {
this.satisfiesPzs = satisfiesPzs;
return this;
}
/**
* Output only. The instance state.
* @return value or {@code null} for none
*/
public java.lang.String getState() {
return state;
}
/**
* Output only. The instance state.
* @param state state or {@code null} for none
*/
public Instance setState(java.lang.String state) {
this.state = state;
return this;
}
/**
* Output only. Additional information about the instance state, if available.
* @return value or {@code null} for none
*/
public java.lang.String getStatusMessage() {
return statusMessage;
}
/**
* Output only. Additional information about the instance state, if available.
* @param statusMessage statusMessage or {@code null} for none
*/
public Instance setStatusMessage(java.lang.String statusMessage) {
this.statusMessage = statusMessage;
return this;
}
/**
* Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
* @return value or {@code null} for none
*/
public java.util.List getSuspensionReasons() {
return suspensionReasons;
}
/**
* Output only. Field indicates all the reasons the instance is in "SUSPENDED" state.
* @param suspensionReasons suspensionReasons or {@code null} for none
*/
public Instance setSuspensionReasons(java.util.List suspensionReasons) {
this.suspensionReasons = suspensionReasons;
return this;
}
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* @return value or {@code null} for none
*/
public java.util.Map getTags() {
return tags;
}
/**
* Optional. Input only. Immutable. Tag key-value pairs are bound to this resource. For example:
* "123/environment": "production", "123/costCenter": "marketing"
* @param tags tags or {@code null} for none
*/
public Instance setTags(java.util.Map tags) {
this.tags = tags;
return this;
}
/**
* The service tier of the instance.
* @return value or {@code null} for none
*/
public java.lang.String getTier() {
return tier;
}
/**
* The service tier of the instance.
* @param tier tier or {@code null} for none
*/
public Instance setTier(java.lang.String tier) {
this.tier = tier;
return this;
}
@Override
public Instance set(String fieldName, Object value) {
return (Instance) super.set(fieldName, value);
}
@Override
public Instance clone() {
return (Instance) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy