|
| 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.storagebatchoperations.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Describes options for object retention update. |
| 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 Storage Batch Operations API. 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 ObjectRetention extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Required. The time when the object will be retained until. UNSET will clear the retention. Must |
| 35 | + * be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String retainUntilTime; |
| 40 | + |
| 41 | + /** |
| 42 | + * Required. The retention mode of the object. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String retentionMode; |
| 47 | + |
| 48 | + /** |
| 49 | + * Required. The time when the object will be retained until. UNSET will clear the retention. Must |
| 50 | + * be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'. |
| 51 | + * @return value or {@code null} for none |
| 52 | + */ |
| 53 | + public java.lang.String getRetainUntilTime() { |
| 54 | + return retainUntilTime; |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Required. The time when the object will be retained until. UNSET will clear the retention. Must |
| 59 | + * be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'. |
| 60 | + * @param retainUntilTime retainUntilTime or {@code null} for none |
| 61 | + */ |
| 62 | + public ObjectRetention setRetainUntilTime(java.lang.String retainUntilTime) { |
| 63 | + this.retainUntilTime = retainUntilTime; |
| 64 | + return this; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * Required. The retention mode of the object. |
| 69 | + * @return value or {@code null} for none |
| 70 | + */ |
| 71 | + public java.lang.String getRetentionMode() { |
| 72 | + return retentionMode; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * Required. The retention mode of the object. |
| 77 | + * @param retentionMode retentionMode or {@code null} for none |
| 78 | + */ |
| 79 | + public ObjectRetention setRetentionMode(java.lang.String retentionMode) { |
| 80 | + this.retentionMode = retentionMode; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + @Override |
| 85 | + public ObjectRetention set(String fieldName, Object value) { |
| 86 | + return (ObjectRetention) super.set(fieldName, value); |
| 87 | + } |
| 88 | + |
| 89 | + @Override |
| 90 | + public ObjectRetention clone() { |
| 91 | + return (ObjectRetention) super.clone(); |
| 92 | + } |
| 93 | + |
| 94 | +} |
0 commit comments