|
| 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.gkebackup.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * BackupConfigDetails defines the configuration of Backups created via this BackupPlan. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Backup for GKE API. For a detailed explanation see: |
| 24 | + * <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> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class BackupConfigDetails extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Output only. If True, include all namespaced resources |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.Boolean allNamespaces; |
| 38 | + |
| 39 | + /** |
| 40 | + * Output only. This defines a customer managed encryption key that will be used to encrypt the |
| 41 | + * "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): |
| 42 | + * Config backup artifacts will not be encrypted. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private EncryptionKey encryptionKey; |
| 47 | + |
| 48 | + /** |
| 49 | + * Output only. This flag specifies whether Kubernetes Secret resources should be included when |
| 50 | + * they fall into the scope of Backups. Default: False |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.Boolean includeSecrets; |
| 55 | + |
| 56 | + /** |
| 57 | + * Output only. This flag specifies whether volume data should be backed up when PVCs are included |
| 58 | + * in the scope of a Backup. Default: False |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private java.lang.Boolean includeVolumeData; |
| 63 | + |
| 64 | + /** |
| 65 | + * Output only. If set, include just the resources referenced by the listed ProtectedApplications. |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private NamespacedNames selectedApplications; |
| 70 | + |
| 71 | + /** |
| 72 | + * Output only. If set, include just the resources in the listed namespaces. |
| 73 | + * The value may be {@code null}. |
| 74 | + */ |
| 75 | + @com.google.api.client.util.Key |
| 76 | + private Namespaces selectedNamespaces; |
| 77 | + |
| 78 | + /** |
| 79 | + * Output only. If True, include all namespaced resources |
| 80 | + * @return value or {@code null} for none |
| 81 | + */ |
| 82 | + public java.lang.Boolean getAllNamespaces() { |
| 83 | + return allNamespaces; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Output only. If True, include all namespaced resources |
| 88 | + * @param allNamespaces allNamespaces or {@code null} for none |
| 89 | + */ |
| 90 | + public BackupConfigDetails setAllNamespaces(java.lang.Boolean allNamespaces) { |
| 91 | + this.allNamespaces = allNamespaces; |
| 92 | + return this; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * Output only. This defines a customer managed encryption key that will be used to encrypt the |
| 97 | + * "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): |
| 98 | + * Config backup artifacts will not be encrypted. |
| 99 | + * @return value or {@code null} for none |
| 100 | + */ |
| 101 | + public EncryptionKey getEncryptionKey() { |
| 102 | + return encryptionKey; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * Output only. This defines a customer managed encryption key that will be used to encrypt the |
| 107 | + * "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): |
| 108 | + * Config backup artifacts will not be encrypted. |
| 109 | + * @param encryptionKey encryptionKey or {@code null} for none |
| 110 | + */ |
| 111 | + public BackupConfigDetails setEncryptionKey(EncryptionKey encryptionKey) { |
| 112 | + this.encryptionKey = encryptionKey; |
| 113 | + return this; |
| 114 | + } |
| 115 | + |
| 116 | + /** |
| 117 | + * Output only. This flag specifies whether Kubernetes Secret resources should be included when |
| 118 | + * they fall into the scope of Backups. Default: False |
| 119 | + * @return value or {@code null} for none |
| 120 | + */ |
| 121 | + public java.lang.Boolean getIncludeSecrets() { |
| 122 | + return includeSecrets; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Output only. This flag specifies whether Kubernetes Secret resources should be included when |
| 127 | + * they fall into the scope of Backups. Default: False |
| 128 | + * @param includeSecrets includeSecrets or {@code null} for none |
| 129 | + */ |
| 130 | + public BackupConfigDetails setIncludeSecrets(java.lang.Boolean includeSecrets) { |
| 131 | + this.includeSecrets = includeSecrets; |
| 132 | + return this; |
| 133 | + } |
| 134 | + |
| 135 | + /** |
| 136 | + * Output only. This flag specifies whether volume data should be backed up when PVCs are included |
| 137 | + * in the scope of a Backup. Default: False |
| 138 | + * @return value or {@code null} for none |
| 139 | + */ |
| 140 | + public java.lang.Boolean getIncludeVolumeData() { |
| 141 | + return includeVolumeData; |
| 142 | + } |
| 143 | + |
| 144 | + /** |
| 145 | + * Output only. This flag specifies whether volume data should be backed up when PVCs are included |
| 146 | + * in the scope of a Backup. Default: False |
| 147 | + * @param includeVolumeData includeVolumeData or {@code null} for none |
| 148 | + */ |
| 149 | + public BackupConfigDetails setIncludeVolumeData(java.lang.Boolean includeVolumeData) { |
| 150 | + this.includeVolumeData = includeVolumeData; |
| 151 | + return this; |
| 152 | + } |
| 153 | + |
| 154 | + /** |
| 155 | + * Output only. If set, include just the resources referenced by the listed ProtectedApplications. |
| 156 | + * @return value or {@code null} for none |
| 157 | + */ |
| 158 | + public NamespacedNames getSelectedApplications() { |
| 159 | + return selectedApplications; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Output only. If set, include just the resources referenced by the listed ProtectedApplications. |
| 164 | + * @param selectedApplications selectedApplications or {@code null} for none |
| 165 | + */ |
| 166 | + public BackupConfigDetails setSelectedApplications(NamespacedNames selectedApplications) { |
| 167 | + this.selectedApplications = selectedApplications; |
| 168 | + return this; |
| 169 | + } |
| 170 | + |
| 171 | + /** |
| 172 | + * Output only. If set, include just the resources in the listed namespaces. |
| 173 | + * @return value or {@code null} for none |
| 174 | + */ |
| 175 | + public Namespaces getSelectedNamespaces() { |
| 176 | + return selectedNamespaces; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Output only. If set, include just the resources in the listed namespaces. |
| 181 | + * @param selectedNamespaces selectedNamespaces or {@code null} for none |
| 182 | + */ |
| 183 | + public BackupConfigDetails setSelectedNamespaces(Namespaces selectedNamespaces) { |
| 184 | + this.selectedNamespaces = selectedNamespaces; |
| 185 | + return this; |
| 186 | + } |
| 187 | + |
| 188 | + @Override |
| 189 | + public BackupConfigDetails set(String fieldName, Object value) { |
| 190 | + return (BackupConfigDetails) super.set(fieldName, value); |
| 191 | + } |
| 192 | + |
| 193 | + @Override |
| 194 | + public BackupConfigDetails clone() { |
| 195 | + return (BackupConfigDetails) super.clone(); |
| 196 | + } |
| 197 | + |
| 198 | +} |
0 commit comments