|
| 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.alertcenter.v1beta1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Alerts for when a user is restricted from syncing content from clients such as Drive for Desktop. |
| 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 Google Workspace Alert Center 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 DriveSyncStateChanged extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Email of the user affected. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String email; |
| 39 | + |
| 40 | + /** |
| 41 | + * Time at which sync was paused. |
| 42 | + * The value may be {@code null}. |
| 43 | + */ |
| 44 | + @com.google.api.client.util.Key |
| 45 | + private String syncPauseStartTime; |
| 46 | + |
| 47 | + /** |
| 48 | + * The current sync state. |
| 49 | + * The value may be {@code null}. |
| 50 | + */ |
| 51 | + @com.google.api.client.util.Key |
| 52 | + private java.lang.String syncState; |
| 53 | + |
| 54 | + /** |
| 55 | + * The reason for the sync state change. |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.String syncStateChangeReason; |
| 60 | + |
| 61 | + /** |
| 62 | + * Email of the user affected. |
| 63 | + * @return value or {@code null} for none |
| 64 | + */ |
| 65 | + public java.lang.String getEmail() { |
| 66 | + return email; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * Email of the user affected. |
| 71 | + * @param email email or {@code null} for none |
| 72 | + */ |
| 73 | + public DriveSyncStateChanged setEmail(java.lang.String email) { |
| 74 | + this.email = email; |
| 75 | + return this; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * Time at which sync was paused. |
| 80 | + * @return value or {@code null} for none |
| 81 | + */ |
| 82 | + public String getSyncPauseStartTime() { |
| 83 | + return syncPauseStartTime; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * Time at which sync was paused. |
| 88 | + * @param syncPauseStartTime syncPauseStartTime or {@code null} for none |
| 89 | + */ |
| 90 | + public DriveSyncStateChanged setSyncPauseStartTime(String syncPauseStartTime) { |
| 91 | + this.syncPauseStartTime = syncPauseStartTime; |
| 92 | + return this; |
| 93 | + } |
| 94 | + |
| 95 | + /** |
| 96 | + * The current sync state. |
| 97 | + * @return value or {@code null} for none |
| 98 | + */ |
| 99 | + public java.lang.String getSyncState() { |
| 100 | + return syncState; |
| 101 | + } |
| 102 | + |
| 103 | + /** |
| 104 | + * The current sync state. |
| 105 | + * @param syncState syncState or {@code null} for none |
| 106 | + */ |
| 107 | + public DriveSyncStateChanged setSyncState(java.lang.String syncState) { |
| 108 | + this.syncState = syncState; |
| 109 | + return this; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * The reason for the sync state change. |
| 114 | + * @return value or {@code null} for none |
| 115 | + */ |
| 116 | + public java.lang.String getSyncStateChangeReason() { |
| 117 | + return syncStateChangeReason; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * The reason for the sync state change. |
| 122 | + * @param syncStateChangeReason syncStateChangeReason or {@code null} for none |
| 123 | + */ |
| 124 | + public DriveSyncStateChanged setSyncStateChangeReason(java.lang.String syncStateChangeReason) { |
| 125 | + this.syncStateChangeReason = syncStateChangeReason; |
| 126 | + return this; |
| 127 | + } |
| 128 | + |
| 129 | + @Override |
| 130 | + public DriveSyncStateChanged set(String fieldName, Object value) { |
| 131 | + return (DriveSyncStateChanged) super.set(fieldName, value); |
| 132 | + } |
| 133 | + |
| 134 | + @Override |
| 135 | + public DriveSyncStateChanged clone() { |
| 136 | + return (DriveSyncStateChanged) super.clone(); |
| 137 | + } |
| 138 | + |
| 139 | +} |
0 commit comments