|
| 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.monitoring.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Annotation configuration for one event type on a dashboard |
| 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 Cloud Monitoring 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 EventAnnotation extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Solely for UI display. Should not be used programmatically. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.String displayName; |
| 38 | + |
| 39 | + /** |
| 40 | + * Whether or not to show the events on the dashboard by default |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.Boolean enabled; |
| 45 | + |
| 46 | + /** |
| 47 | + * The type of event to display. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.String eventType; |
| 52 | + |
| 53 | + /** |
| 54 | + * string filtering the events - event dependant. Example values: "resource.labels.pod_name = |
| 55 | + * 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'" |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.String filter; |
| 60 | + |
| 61 | + /** |
| 62 | + * Per annotation level override for the names of logging resources to search for events. |
| 63 | + * Currently only projects are supported. If both this field and the per annotation field is |
| 64 | + * empty, it will default to the host project. Limit: 50 projects. For example: “projects/another- |
| 65 | + * project-id” |
| 66 | + * The value may be {@code null}. |
| 67 | + */ |
| 68 | + @com.google.api.client.util.Key |
| 69 | + private java.util.List<java.lang.String> resourceNames; |
| 70 | + |
| 71 | + /** |
| 72 | + * Solely for UI display. Should not be used programmatically. |
| 73 | + * @return value or {@code null} for none |
| 74 | + */ |
| 75 | + public java.lang.String getDisplayName() { |
| 76 | + return displayName; |
| 77 | + } |
| 78 | + |
| 79 | + /** |
| 80 | + * Solely for UI display. Should not be used programmatically. |
| 81 | + * @param displayName displayName or {@code null} for none |
| 82 | + */ |
| 83 | + public EventAnnotation setDisplayName(java.lang.String displayName) { |
| 84 | + this.displayName = displayName; |
| 85 | + return this; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * Whether or not to show the events on the dashboard by default |
| 90 | + * @return value or {@code null} for none |
| 91 | + */ |
| 92 | + public java.lang.Boolean getEnabled() { |
| 93 | + return enabled; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * Whether or not to show the events on the dashboard by default |
| 98 | + * @param enabled enabled or {@code null} for none |
| 99 | + */ |
| 100 | + public EventAnnotation setEnabled(java.lang.Boolean enabled) { |
| 101 | + this.enabled = enabled; |
| 102 | + return this; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * The type of event to display. |
| 107 | + * @return value or {@code null} for none |
| 108 | + */ |
| 109 | + public java.lang.String getEventType() { |
| 110 | + return eventType; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * The type of event to display. |
| 115 | + * @param eventType eventType or {@code null} for none |
| 116 | + */ |
| 117 | + public EventAnnotation setEventType(java.lang.String eventType) { |
| 118 | + this.eventType = eventType; |
| 119 | + return this; |
| 120 | + } |
| 121 | + |
| 122 | + /** |
| 123 | + * string filtering the events - event dependant. Example values: "resource.labels.pod_name = |
| 124 | + * 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'" |
| 125 | + * @return value or {@code null} for none |
| 126 | + */ |
| 127 | + public java.lang.String getFilter() { |
| 128 | + return filter; |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * string filtering the events - event dependant. Example values: "resource.labels.pod_name = |
| 133 | + * 'pod-1'" "protoPayload.authenticationInfo.principalEmail='[email protected]'" |
| 134 | + * @param filter filter or {@code null} for none |
| 135 | + */ |
| 136 | + public EventAnnotation setFilter(java.lang.String filter) { |
| 137 | + this.filter = filter; |
| 138 | + return this; |
| 139 | + } |
| 140 | + |
| 141 | + /** |
| 142 | + * Per annotation level override for the names of logging resources to search for events. |
| 143 | + * Currently only projects are supported. If both this field and the per annotation field is |
| 144 | + * empty, it will default to the host project. Limit: 50 projects. For example: “projects/another- |
| 145 | + * project-id” |
| 146 | + * @return value or {@code null} for none |
| 147 | + */ |
| 148 | + public java.util.List<java.lang.String> getResourceNames() { |
| 149 | + return resourceNames; |
| 150 | + } |
| 151 | + |
| 152 | + /** |
| 153 | + * Per annotation level override for the names of logging resources to search for events. |
| 154 | + * Currently only projects are supported. If both this field and the per annotation field is |
| 155 | + * empty, it will default to the host project. Limit: 50 projects. For example: “projects/another- |
| 156 | + * project-id” |
| 157 | + * @param resourceNames resourceNames or {@code null} for none |
| 158 | + */ |
| 159 | + public EventAnnotation setResourceNames(java.util.List<java.lang.String> resourceNames) { |
| 160 | + this.resourceNames = resourceNames; |
| 161 | + return this; |
| 162 | + } |
| 163 | + |
| 164 | + @Override |
| 165 | + public EventAnnotation set(String fieldName, Object value) { |
| 166 | + return (EventAnnotation) super.set(fieldName, value); |
| 167 | + } |
| 168 | + |
| 169 | + @Override |
| 170 | + public EventAnnotation clone() { |
| 171 | + return (EventAnnotation) super.clone(); |
| 172 | + } |
| 173 | + |
| 174 | +} |
0 commit comments