|
| 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.alloydb.v1beta.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * BackupDRMetadata contains information about the backup and disaster recovery metadata of a |
| 21 | + * database resource. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the AlloyDB API. For a detailed explanation see: |
| 25 | + * <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> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class StorageDatabasecenterPartnerapiV1mainBackupDRMetadata extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Backup configuration for this instance. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private StorageDatabasecenterPartnerapiV1mainBackupConfiguration backupConfiguration; |
| 39 | + |
| 40 | + /** |
| 41 | + * Latest backup run information for this instance. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private StorageDatabasecenterPartnerapiV1mainBackupRun backupRun; |
| 46 | + |
| 47 | + /** |
| 48 | + * BackupDR configuration for this instance. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration backupdrConfiguration; |
| 53 | + |
| 54 | + /** |
| 55 | + * Required. Full resource name of this instance. |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.String fullResourceName; |
| 60 | + |
| 61 | + /** |
| 62 | + * Required. Last time backup configuration was refreshed. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private String lastRefreshTime; |
| 67 | + |
| 68 | + /** |
| 69 | + * Required. Database resource id. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private StorageDatabasecenterPartnerapiV1mainDatabaseResourceId resourceId; |
| 74 | + |
| 75 | + /** |
| 76 | + * Backup configuration for this instance. |
| 77 | + * @return value or {@code null} for none |
| 78 | + */ |
| 79 | + public StorageDatabasecenterPartnerapiV1mainBackupConfiguration getBackupConfiguration() { |
| 80 | + return backupConfiguration; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Backup configuration for this instance. |
| 85 | + * @param backupConfiguration backupConfiguration or {@code null} for none |
| 86 | + */ |
| 87 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setBackupConfiguration(StorageDatabasecenterPartnerapiV1mainBackupConfiguration backupConfiguration) { |
| 88 | + this.backupConfiguration = backupConfiguration; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Latest backup run information for this instance. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public StorageDatabasecenterPartnerapiV1mainBackupRun getBackupRun() { |
| 97 | + return backupRun; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Latest backup run information for this instance. |
| 102 | + * @param backupRun backupRun or {@code null} for none |
| 103 | + */ |
| 104 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setBackupRun(StorageDatabasecenterPartnerapiV1mainBackupRun backupRun) { |
| 105 | + this.backupRun = backupRun; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * BackupDR configuration for this instance. |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration getBackupdrConfiguration() { |
| 114 | + return backupdrConfiguration; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * BackupDR configuration for this instance. |
| 119 | + * @param backupdrConfiguration backupdrConfiguration or {@code null} for none |
| 120 | + */ |
| 121 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setBackupdrConfiguration(StorageDatabasecenterPartnerapiV1mainBackupDRConfiguration backupdrConfiguration) { |
| 122 | + this.backupdrConfiguration = backupdrConfiguration; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * Required. Full resource name of this instance. |
| 128 | + * @return value or {@code null} for none |
| 129 | + */ |
| 130 | + public java.lang.String getFullResourceName() { |
| 131 | + return fullResourceName; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Required. Full resource name of this instance. |
| 136 | + * @param fullResourceName fullResourceName or {@code null} for none |
| 137 | + */ |
| 138 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setFullResourceName(java.lang.String fullResourceName) { |
| 139 | + this.fullResourceName = fullResourceName; |
| 140 | + return this; |
| 141 | + } |
| 142 | + |
| 143 | + /** |
| 144 | + * Required. Last time backup configuration was refreshed. |
| 145 | + * @return value or {@code null} for none |
| 146 | + */ |
| 147 | + public String getLastRefreshTime() { |
| 148 | + return lastRefreshTime; |
| 149 | + } |
| 150 | + |
| 151 | + /** |
| 152 | + * Required. Last time backup configuration was refreshed. |
| 153 | + * @param lastRefreshTime lastRefreshTime or {@code null} for none |
| 154 | + */ |
| 155 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setLastRefreshTime(String lastRefreshTime) { |
| 156 | + this.lastRefreshTime = lastRefreshTime; |
| 157 | + return this; |
| 158 | + } |
| 159 | + |
| 160 | + /** |
| 161 | + * Required. Database resource id. |
| 162 | + * @return value or {@code null} for none |
| 163 | + */ |
| 164 | + public StorageDatabasecenterPartnerapiV1mainDatabaseResourceId getResourceId() { |
| 165 | + return resourceId; |
| 166 | + } |
| 167 | + |
| 168 | + /** |
| 169 | + * Required. Database resource id. |
| 170 | + * @param resourceId resourceId or {@code null} for none |
| 171 | + */ |
| 172 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata setResourceId(StorageDatabasecenterPartnerapiV1mainDatabaseResourceId resourceId) { |
| 173 | + this.resourceId = resourceId; |
| 174 | + return this; |
| 175 | + } |
| 176 | + |
| 177 | + @Override |
| 178 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata set(String fieldName, Object value) { |
| 179 | + return (StorageDatabasecenterPartnerapiV1mainBackupDRMetadata) super.set(fieldName, value); |
| 180 | + } |
| 181 | + |
| 182 | + @Override |
| 183 | + public StorageDatabasecenterPartnerapiV1mainBackupDRMetadata clone() { |
| 184 | + return (StorageDatabasecenterPartnerapiV1mainBackupDRMetadata) super.clone(); |
| 185 | + } |
| 186 | + |
| 187 | +} |
0 commit comments