|
| 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.dlp.v2.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Target used to match against for discovery with Cloud Storage buckets. |
| 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 Sensitive Data Protection (DLP). For a detailed |
| 24 | + * 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 GooglePrivacyDlpV2CloudStorageDiscoveryTarget extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. In addition to matching the filter, these conditions must be true before a profile is |
| 35 | + * generated. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private GooglePrivacyDlpV2DiscoveryFileStoreConditions conditions; |
| 40 | + |
| 41 | + /** |
| 42 | + * Optional. Disable profiling for buckets that match this filter. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private GooglePrivacyDlpV2Disabled disabled; |
| 47 | + |
| 48 | + /** |
| 49 | + * Required. The buckets the generation_cadence applies to. The first target with a matching |
| 50 | + * filter will be the one to apply to a bucket. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private GooglePrivacyDlpV2DiscoveryCloudStorageFilter filter; |
| 55 | + |
| 56 | + /** |
| 57 | + * Optional. How often and when to update profiles. New buckets that match both the filter and |
| 58 | + * conditions are scanned as quickly as possible depending on system capacity. |
| 59 | + * The value may be {@code null}. |
| 60 | + */ |
| 61 | + @com.google.api.client.util.Key |
| 62 | + private GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence generationCadence; |
| 63 | + |
| 64 | + /** |
| 65 | + * Optional. In addition to matching the filter, these conditions must be true before a profile is |
| 66 | + * generated. |
| 67 | + * @return value or {@code null} for none |
| 68 | + */ |
| 69 | + public GooglePrivacyDlpV2DiscoveryFileStoreConditions getConditions() { |
| 70 | + return conditions; |
| 71 | + } |
| 72 | + |
| 73 | + /** |
| 74 | + * Optional. In addition to matching the filter, these conditions must be true before a profile is |
| 75 | + * generated. |
| 76 | + * @param conditions conditions or {@code null} for none |
| 77 | + */ |
| 78 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setConditions(GooglePrivacyDlpV2DiscoveryFileStoreConditions conditions) { |
| 79 | + this.conditions = conditions; |
| 80 | + return this; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Optional. Disable profiling for buckets that match this filter. |
| 85 | + * @return value or {@code null} for none |
| 86 | + */ |
| 87 | + public GooglePrivacyDlpV2Disabled getDisabled() { |
| 88 | + return disabled; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * Optional. Disable profiling for buckets that match this filter. |
| 93 | + * @param disabled disabled or {@code null} for none |
| 94 | + */ |
| 95 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setDisabled(GooglePrivacyDlpV2Disabled disabled) { |
| 96 | + this.disabled = disabled; |
| 97 | + return this; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Required. The buckets the generation_cadence applies to. The first target with a matching |
| 102 | + * filter will be the one to apply to a bucket. |
| 103 | + * @return value or {@code null} for none |
| 104 | + */ |
| 105 | + public GooglePrivacyDlpV2DiscoveryCloudStorageFilter getFilter() { |
| 106 | + return filter; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Required. The buckets the generation_cadence applies to. The first target with a matching |
| 111 | + * filter will be the one to apply to a bucket. |
| 112 | + * @param filter filter or {@code null} for none |
| 113 | + */ |
| 114 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setFilter(GooglePrivacyDlpV2DiscoveryCloudStorageFilter filter) { |
| 115 | + this.filter = filter; |
| 116 | + return this; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Optional. How often and when to update profiles. New buckets that match both the filter and |
| 121 | + * conditions are scanned as quickly as possible depending on system capacity. |
| 122 | + * @return value or {@code null} for none |
| 123 | + */ |
| 124 | + public GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence getGenerationCadence() { |
| 125 | + return generationCadence; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Optional. How often and when to update profiles. New buckets that match both the filter and |
| 130 | + * conditions are scanned as quickly as possible depending on system capacity. |
| 131 | + * @param generationCadence generationCadence or {@code null} for none |
| 132 | + */ |
| 133 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget setGenerationCadence(GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence generationCadence) { |
| 134 | + this.generationCadence = generationCadence; |
| 135 | + return this; |
| 136 | + } |
| 137 | + |
| 138 | + @Override |
| 139 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget set(String fieldName, Object value) { |
| 140 | + return (GooglePrivacyDlpV2CloudStorageDiscoveryTarget) super.set(fieldName, value); |
| 141 | + } |
| 142 | + |
| 143 | + @Override |
| 144 | + public GooglePrivacyDlpV2CloudStorageDiscoveryTarget clone() { |
| 145 | + return (GooglePrivacyDlpV2CloudStorageDiscoveryTarget) super.clone(); |
| 146 | + } |
| 147 | + |
| 148 | +} |
0 commit comments