|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.workstations.v1beta.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * A Persistent Directory backed by a Compute Engine Hyperdisk Balanced High Availability Disk. This |
| 21 | + * is a high-availability block storage solution that offers a balance between performance and cost |
| 22 | + * for most general-purpose workloads. |
| 23 | + * |
| 24 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 25 | + * transmitted over HTTP when working with the Cloud Workstations API. For a detailed explanation |
| 26 | + * see: |
| 27 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 28 | + * </p> |
| 29 | + * |
| 30 | + * @author Google, Inc. |
| 31 | + */ |
| 32 | +@SuppressWarnings("javadoc") |
| 33 | +public final class GceHyperdiskBalancedHighAvailability extends com.google.api.client.json.GenericJson { |
| 34 | + |
| 35 | + /** |
| 36 | + * Optional. Number of seconds to wait after initially creating or subsequently shutting down the |
| 37 | + * workstation before converting its disk into a snapshot. This generally saves costs at the |
| 38 | + * expense of greater startup time on next workstation start, as the service will need to create a |
| 39 | + * disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be |
| 40 | + * archived. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private String archiveTimeout; |
| 45 | + |
| 46 | + /** |
| 47 | + * Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid |
| 48 | + * values are `DELETE` and `RETAIN`. Defaults to `DELETE`. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.lang.String reclaimPolicy; |
| 53 | + |
| 54 | + /** |
| 55 | + * Optional. The GB capacity of a persistent home directory for each workstation created with this |
| 56 | + * configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`, |
| 57 | + * `200`, `500`, or `1000`. Defaults to `200`. |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.Integer sizeGb; |
| 62 | + |
| 63 | + /** |
| 64 | + * Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be |
| 65 | + * empty. Must be formatted as ext4 file system with no partitions. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.lang.String sourceSnapshot; |
| 70 | + |
| 71 | + /** |
| 72 | + * Optional. Number of seconds to wait after initially creating or subsequently shutting down the |
| 73 | + * workstation before converting its disk into a snapshot. This generally saves costs at the |
| 74 | + * expense of greater startup time on next workstation start, as the service will need to create a |
| 75 | + * disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be |
| 76 | + * archived. |
| 77 | + * @return value or {@code null} for none |
| 78 | + */ |
| 79 | + public String getArchiveTimeout() { |
| 80 | + return archiveTimeout; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Optional. Number of seconds to wait after initially creating or subsequently shutting down the |
| 85 | + * workstation before converting its disk into a snapshot. This generally saves costs at the |
| 86 | + * expense of greater startup time on next workstation start, as the service will need to create a |
| 87 | + * disk from the archival snapshot. A value of `"0s"` indicates that the disk will never be |
| 88 | + * archived. |
| 89 | + * @param archiveTimeout archiveTimeout or {@code null} for none |
| 90 | + */ |
| 91 | + public GceHyperdiskBalancedHighAvailability setArchiveTimeout(String archiveTimeout) { |
| 92 | + this.archiveTimeout = archiveTimeout; |
| 93 | + return this; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid |
| 98 | + * values are `DELETE` and `RETAIN`. Defaults to `DELETE`. |
| 99 | + * @return value or {@code null} for none |
| 100 | + */ |
| 101 | + public java.lang.String getReclaimPolicy() { |
| 102 | + return reclaimPolicy; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid |
| 107 | + * values are `DELETE` and `RETAIN`. Defaults to `DELETE`. |
| 108 | + * @param reclaimPolicy reclaimPolicy or {@code null} for none |
| 109 | + */ |
| 110 | + public GceHyperdiskBalancedHighAvailability setReclaimPolicy(java.lang.String reclaimPolicy) { |
| 111 | + this.reclaimPolicy = reclaimPolicy; |
| 112 | + return this; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Optional. The GB capacity of a persistent home directory for each workstation created with this |
| 117 | + * configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`, |
| 118 | + * `200`, `500`, or `1000`. Defaults to `200`. |
| 119 | + * @return value or {@code null} for none |
| 120 | + */ |
| 121 | + public java.lang.Integer getSizeGb() { |
| 122 | + return sizeGb; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Optional. The GB capacity of a persistent home directory for each workstation created with this |
| 127 | + * configuration. Must be empty if source_snapshot is set. Valid values are `10`, `50`, `100`, |
| 128 | + * `200`, `500`, or `1000`. Defaults to `200`. |
| 129 | + * @param sizeGb sizeGb or {@code null} for none |
| 130 | + */ |
| 131 | + public GceHyperdiskBalancedHighAvailability setSizeGb(java.lang.Integer sizeGb) { |
| 132 | + this.sizeGb = sizeGb; |
| 133 | + return this; |
| 134 | + } |
| 135 | + |
| 136 | + /** |
| 137 | + * Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be |
| 138 | + * empty. Must be formatted as ext4 file system with no partitions. |
| 139 | + * @return value or {@code null} for none |
| 140 | + */ |
| 141 | + public java.lang.String getSourceSnapshot() { |
| 142 | + return sourceSnapshot; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * Optional. Name of the snapshot to use as the source for the disk. If set, size_gb must be |
| 147 | + * empty. Must be formatted as ext4 file system with no partitions. |
| 148 | + * @param sourceSnapshot sourceSnapshot or {@code null} for none |
| 149 | + */ |
| 150 | + public GceHyperdiskBalancedHighAvailability setSourceSnapshot(java.lang.String sourceSnapshot) { |
| 151 | + this.sourceSnapshot = sourceSnapshot; |
| 152 | + return this; |
| 153 | + } |
| 154 | + |
| 155 | + @Override |
| 156 | + public GceHyperdiskBalancedHighAvailability set(String fieldName, Object value) { |
| 157 | + return (GceHyperdiskBalancedHighAvailability) super.set(fieldName, value); |
| 158 | + } |
| 159 | + |
| 160 | + @Override |
| 161 | + public GceHyperdiskBalancedHighAvailability clone() { |
| 162 | + return (GceHyperdiskBalancedHighAvailability) super.clone(); |
| 163 | + } |
| 164 | + |
| 165 | +} |
0 commit comments