|
| 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.alloydb.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Observability Instance specific configuration. |
| 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 AlloyDB 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 ObservabilityInstanceConfig extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Observability feature status for an instance. This flag is turned "off" by default. |
| 34 | + * The value may be {@code null}. |
| 35 | + */ |
| 36 | + @com.google.api.client.util.Key |
| 37 | + private java.lang.Boolean enabled; |
| 38 | + |
| 39 | + /** |
| 40 | + * Query string length. The default value is 10k. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.Integer maxQueryStringLength; |
| 45 | + |
| 46 | + /** |
| 47 | + * Preserve comments in query string for an instance. This flag is turned "off" by default. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private java.lang.Boolean preserveComments; |
| 52 | + |
| 53 | + /** |
| 54 | + * Number of query execution plans captured by Insights per minute for all queries combined. The |
| 55 | + * default value is 200. Any integer between 0 to 200 is considered valid. |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.Integer queryPlansPerMinute; |
| 60 | + |
| 61 | + /** |
| 62 | + * Record application tags for an instance. This flag is turned "off" by default. |
| 63 | + * The value may be {@code null}. |
| 64 | + */ |
| 65 | + @com.google.api.client.util.Key |
| 66 | + private java.lang.Boolean recordApplicationTags; |
| 67 | + |
| 68 | + /** |
| 69 | + * Track actively running queries on the instance. If not set, this flag is "off" by default. |
| 70 | + * The value may be {@code null}. |
| 71 | + */ |
| 72 | + @com.google.api.client.util.Key |
| 73 | + private java.lang.Boolean trackActiveQueries; |
| 74 | + |
| 75 | + /** |
| 76 | + * Output only. Track wait event types during query execution for an instance. This flag is turned |
| 77 | + * "on" by default but tracking is enabled only after observability enabled flag is also turned |
| 78 | + * on. This is read-only flag and only modifiable by internal API. |
| 79 | + * The value may be {@code null}. |
| 80 | + */ |
| 81 | + @com.google.api.client.util.Key |
| 82 | + private java.lang.Boolean trackWaitEventTypes; |
| 83 | + |
| 84 | + /** |
| 85 | + * Track wait events during query execution for an instance. This flag is turned "on" by default |
| 86 | + * but tracking is enabled only after observability enabled flag is also turned on. |
| 87 | + * The value may be {@code null}. |
| 88 | + */ |
| 89 | + @com.google.api.client.util.Key |
| 90 | + private java.lang.Boolean trackWaitEvents; |
| 91 | + |
| 92 | + /** |
| 93 | + * Observability feature status for an instance. This flag is turned "off" by default. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public java.lang.Boolean getEnabled() { |
| 97 | + return enabled; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Observability feature status for an instance. This flag is turned "off" by default. |
| 102 | + * @param enabled enabled or {@code null} for none |
| 103 | + */ |
| 104 | + public ObservabilityInstanceConfig setEnabled(java.lang.Boolean enabled) { |
| 105 | + this.enabled = enabled; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Query string length. The default value is 10k. |
| 111 | + * @return value or {@code null} for none |
| 112 | + */ |
| 113 | + public java.lang.Integer getMaxQueryStringLength() { |
| 114 | + return maxQueryStringLength; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Query string length. The default value is 10k. |
| 119 | + * @param maxQueryStringLength maxQueryStringLength or {@code null} for none |
| 120 | + */ |
| 121 | + public ObservabilityInstanceConfig setMaxQueryStringLength(java.lang.Integer maxQueryStringLength) { |
| 122 | + this.maxQueryStringLength = maxQueryStringLength; |
| 123 | + return this; |
| 124 | + } |
| 125 | + |
| 126 | + /** |
| 127 | + * Preserve comments in query string for an instance. This flag is turned "off" by default. |
| 128 | + * @return value or {@code null} for none |
| 129 | + */ |
| 130 | + public java.lang.Boolean getPreserveComments() { |
| 131 | + return preserveComments; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Preserve comments in query string for an instance. This flag is turned "off" by default. |
| 136 | + * @param preserveComments preserveComments or {@code null} for none |
| 137 | + */ |
| 138 | + public ObservabilityInstanceConfig setPreserveComments(java.lang.Boolean preserveComments) { |
| 139 | + this.preserveComments = preserveComments; |
| 140 | + return this; |
| 141 | + } |
| 142 | + |
| 143 | + /** |
| 144 | + * Number of query execution plans captured by Insights per minute for all queries combined. The |
| 145 | + * default value is 200. Any integer between 0 to 200 is considered valid. |
| 146 | + * @return value or {@code null} for none |
| 147 | + */ |
| 148 | + public java.lang.Integer getQueryPlansPerMinute() { |
| 149 | + return queryPlansPerMinute; |
| 150 | + } |
| 151 | + |
| 152 | + /** |
| 153 | + * Number of query execution plans captured by Insights per minute for all queries combined. The |
| 154 | + * default value is 200. Any integer between 0 to 200 is considered valid. |
| 155 | + * @param queryPlansPerMinute queryPlansPerMinute or {@code null} for none |
| 156 | + */ |
| 157 | + public ObservabilityInstanceConfig setQueryPlansPerMinute(java.lang.Integer queryPlansPerMinute) { |
| 158 | + this.queryPlansPerMinute = queryPlansPerMinute; |
| 159 | + return this; |
| 160 | + } |
| 161 | + |
| 162 | + /** |
| 163 | + * Record application tags for an instance. This flag is turned "off" by default. |
| 164 | + * @return value or {@code null} for none |
| 165 | + */ |
| 166 | + public java.lang.Boolean getRecordApplicationTags() { |
| 167 | + return recordApplicationTags; |
| 168 | + } |
| 169 | + |
| 170 | + /** |
| 171 | + * Record application tags for an instance. This flag is turned "off" by default. |
| 172 | + * @param recordApplicationTags recordApplicationTags or {@code null} for none |
| 173 | + */ |
| 174 | + public ObservabilityInstanceConfig setRecordApplicationTags(java.lang.Boolean recordApplicationTags) { |
| 175 | + this.recordApplicationTags = recordApplicationTags; |
| 176 | + return this; |
| 177 | + } |
| 178 | + |
| 179 | + /** |
| 180 | + * Track actively running queries on the instance. If not set, this flag is "off" by default. |
| 181 | + * @return value or {@code null} for none |
| 182 | + */ |
| 183 | + public java.lang.Boolean getTrackActiveQueries() { |
| 184 | + return trackActiveQueries; |
| 185 | + } |
| 186 | + |
| 187 | + /** |
| 188 | + * Track actively running queries on the instance. If not set, this flag is "off" by default. |
| 189 | + * @param trackActiveQueries trackActiveQueries or {@code null} for none |
| 190 | + */ |
| 191 | + public ObservabilityInstanceConfig setTrackActiveQueries(java.lang.Boolean trackActiveQueries) { |
| 192 | + this.trackActiveQueries = trackActiveQueries; |
| 193 | + return this; |
| 194 | + } |
| 195 | + |
| 196 | + /** |
| 197 | + * Output only. Track wait event types during query execution for an instance. This flag is turned |
| 198 | + * "on" by default but tracking is enabled only after observability enabled flag is also turned |
| 199 | + * on. This is read-only flag and only modifiable by internal API. |
| 200 | + * @return value or {@code null} for none |
| 201 | + */ |
| 202 | + public java.lang.Boolean getTrackWaitEventTypes() { |
| 203 | + return trackWaitEventTypes; |
| 204 | + } |
| 205 | + |
| 206 | + /** |
| 207 | + * Output only. Track wait event types during query execution for an instance. This flag is turned |
| 208 | + * "on" by default but tracking is enabled only after observability enabled flag is also turned |
| 209 | + * on. This is read-only flag and only modifiable by internal API. |
| 210 | + * @param trackWaitEventTypes trackWaitEventTypes or {@code null} for none |
| 211 | + */ |
| 212 | + public ObservabilityInstanceConfig setTrackWaitEventTypes(java.lang.Boolean trackWaitEventTypes) { |
| 213 | + this.trackWaitEventTypes = trackWaitEventTypes; |
| 214 | + return this; |
| 215 | + } |
| 216 | + |
| 217 | + /** |
| 218 | + * Track wait events during query execution for an instance. This flag is turned "on" by default |
| 219 | + * but tracking is enabled only after observability enabled flag is also turned on. |
| 220 | + * @return value or {@code null} for none |
| 221 | + */ |
| 222 | + public java.lang.Boolean getTrackWaitEvents() { |
| 223 | + return trackWaitEvents; |
| 224 | + } |
| 225 | + |
| 226 | + /** |
| 227 | + * Track wait events during query execution for an instance. This flag is turned "on" by default |
| 228 | + * but tracking is enabled only after observability enabled flag is also turned on. |
| 229 | + * @param trackWaitEvents trackWaitEvents or {@code null} for none |
| 230 | + */ |
| 231 | + public ObservabilityInstanceConfig setTrackWaitEvents(java.lang.Boolean trackWaitEvents) { |
| 232 | + this.trackWaitEvents = trackWaitEvents; |
| 233 | + return this; |
| 234 | + } |
| 235 | + |
| 236 | + @Override |
| 237 | + public ObservabilityInstanceConfig set(String fieldName, Object value) { |
| 238 | + return (ObservabilityInstanceConfig) super.set(fieldName, value); |
| 239 | + } |
| 240 | + |
| 241 | + @Override |
| 242 | + public ObservabilityInstanceConfig clone() { |
| 243 | + return (ObservabilityInstanceConfig) super.clone(); |
| 244 | + } |
| 245 | + |
| 246 | +} |
0 commit comments