|
| 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.securitycenter.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Details about data retention deletion violations, in which the data is non-compliant based on |
| 21 | + * their retention or deletion time, as defined in the applicable data security policy. The Data |
| 22 | + * Retention Deletion (DRD) control is a control of the DSPM (Data Security Posture Management) |
| 23 | + * suite that enables organizations to manage data retention and deletion policies in compliance |
| 24 | + * with regulations, such as GDPR and CRPA. DRD supports two primary policy types: maximum storage |
| 25 | + * length (max TTL) and minimum storage length (min TTL). Both are aimed at helping organizations |
| 26 | + * meet regulatory and data management commitments. |
| 27 | + * |
| 28 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 29 | + * transmitted over HTTP when working with the Security Command Center API. For a detailed |
| 30 | + * explanation see: |
| 31 | + * <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> |
| 32 | + * </p> |
| 33 | + * |
| 34 | + * @author Google, Inc. |
| 35 | + */ |
| 36 | +@SuppressWarnings("javadoc") |
| 37 | +public final class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent extends com.google.api.client.json.GenericJson { |
| 38 | + |
| 39 | + /** |
| 40 | + * Number of objects that violated the policy for this resource. If the number is less than 1,000, |
| 41 | + * then the value of this field is the exact number. If the number of objects that violated the |
| 42 | + * policy is greater than or equal to 1,000, then the value of this field is 1000. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key @com.google.api.client.json.JsonString |
| 46 | + private java.lang.Long dataObjectCount; |
| 47 | + |
| 48 | + /** |
| 49 | + * Timestamp indicating when the event was detected. |
| 50 | + * The value may be {@code null}. |
| 51 | + */ |
| 52 | + @com.google.api.client.util.Key |
| 53 | + private String eventDetectionTime; |
| 54 | + |
| 55 | + /** |
| 56 | + * Type of the DRD event. |
| 57 | + * The value may be {@code null}. |
| 58 | + */ |
| 59 | + @com.google.api.client.util.Key |
| 60 | + private java.lang.String eventType; |
| 61 | + |
| 62 | + /** |
| 63 | + * Maximum duration of retention allowed from the DRD control. This comes from the DRD control |
| 64 | + * where users set a max TTL for their data. For example, suppose that a user set the max TTL for |
| 65 | + * a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this |
| 66 | + * case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the |
| 67 | + * max_retention_allowed is 90 days. |
| 68 | + * The value may be {@code null}. |
| 69 | + */ |
| 70 | + @com.google.api.client.util.Key |
| 71 | + private String maxRetentionAllowed; |
| 72 | + |
| 73 | + /** |
| 74 | + * Number of objects that violated the policy for this resource. If the number is less than 1,000, |
| 75 | + * then the value of this field is the exact number. If the number of objects that violated the |
| 76 | + * policy is greater than or equal to 1,000, then the value of this field is 1000. |
| 77 | + * @return value or {@code null} for none |
| 78 | + */ |
| 79 | + public java.lang.Long getDataObjectCount() { |
| 80 | + return dataObjectCount; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * Number of objects that violated the policy for this resource. If the number is less than 1,000, |
| 85 | + * then the value of this field is the exact number. If the number of objects that violated the |
| 86 | + * policy is greater than or equal to 1,000, then the value of this field is 1000. |
| 87 | + * @param dataObjectCount dataObjectCount or {@code null} for none |
| 88 | + */ |
| 89 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setDataObjectCount(java.lang.Long dataObjectCount) { |
| 90 | + this.dataObjectCount = dataObjectCount; |
| 91 | + return this; |
| 92 | + } |
| 93 | + |
| 94 | + /** |
| 95 | + * Timestamp indicating when the event was detected. |
| 96 | + * @return value or {@code null} for none |
| 97 | + */ |
| 98 | + public String getEventDetectionTime() { |
| 99 | + return eventDetectionTime; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Timestamp indicating when the event was detected. |
| 104 | + * @param eventDetectionTime eventDetectionTime or {@code null} for none |
| 105 | + */ |
| 106 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setEventDetectionTime(String eventDetectionTime) { |
| 107 | + this.eventDetectionTime = eventDetectionTime; |
| 108 | + return this; |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Type of the DRD event. |
| 113 | + * @return value or {@code null} for none |
| 114 | + */ |
| 115 | + public java.lang.String getEventType() { |
| 116 | + return eventType; |
| 117 | + } |
| 118 | + |
| 119 | + /** |
| 120 | + * Type of the DRD event. |
| 121 | + * @param eventType eventType or {@code null} for none |
| 122 | + */ |
| 123 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setEventType(java.lang.String eventType) { |
| 124 | + this.eventType = eventType; |
| 125 | + return this; |
| 126 | + } |
| 127 | + |
| 128 | + /** |
| 129 | + * Maximum duration of retention allowed from the DRD control. This comes from the DRD control |
| 130 | + * where users set a max TTL for their data. For example, suppose that a user set the max TTL for |
| 131 | + * a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this |
| 132 | + * case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the |
| 133 | + * max_retention_allowed is 90 days. |
| 134 | + * @return value or {@code null} for none |
| 135 | + */ |
| 136 | + public String getMaxRetentionAllowed() { |
| 137 | + return maxRetentionAllowed; |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Maximum duration of retention allowed from the DRD control. This comes from the DRD control |
| 142 | + * where users set a max TTL for their data. For example, suppose that a user set the max TTL for |
| 143 | + * a Cloud Storage bucket to 90 days. However, an object in that bucket is 100 days old. In this |
| 144 | + * case, a DataRetentionDeletionEvent will be generated for that Cloud Storage bucket, and the |
| 145 | + * max_retention_allowed is 90 days. |
| 146 | + * @param maxRetentionAllowed maxRetentionAllowed or {@code null} for none |
| 147 | + */ |
| 148 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent setMaxRetentionAllowed(String maxRetentionAllowed) { |
| 149 | + this.maxRetentionAllowed = maxRetentionAllowed; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
| 153 | + @Override |
| 154 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent set(String fieldName, Object value) { |
| 155 | + return (GoogleCloudSecuritycenterV2DataRetentionDeletionEvent) super.set(fieldName, value); |
| 156 | + } |
| 157 | + |
| 158 | + @Override |
| 159 | + public GoogleCloudSecuritycenterV2DataRetentionDeletionEvent clone() { |
| 160 | + return (GoogleCloudSecuritycenterV2DataRetentionDeletionEvent) super.clone(); |
| 161 | + } |
| 162 | + |
| 163 | +} |
0 commit comments