public final class ContentMatcher
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ContentMatcher() |
| Modifier and Type | Method and Description |
|---|---|
ContentMatcher |
clone() |
String |
getContent()
String, regex or JSON content to match.
|
JsonPathMatcher |
getJsonPathMatcher()
Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH
|
String |
getMatcher()
The type of content matcher that will be applied to the server output, compared to the content
string when the check is run.
|
ContentMatcher |
set(String fieldName,
Object value) |
ContentMatcher |
setContent(String content)
String, regex or JSON content to match.
|
ContentMatcher |
setJsonPathMatcher(JsonPathMatcher jsonPathMatcher)
Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH
|
ContentMatcher |
setMatcher(String matcher)
The type of content matcher that will be applied to the server output, compared to the content
string when the check is run.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getContent()
null for nonepublic ContentMatcher setContent(String content)
content - content or null for nonepublic JsonPathMatcher getJsonPathMatcher()
null for nonepublic ContentMatcher setJsonPathMatcher(JsonPathMatcher jsonPathMatcher)
jsonPathMatcher - jsonPathMatcher or null for nonepublic String getMatcher()
null for nonepublic ContentMatcher setMatcher(String matcher)
matcher - matcher or null for nonepublic ContentMatcher set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic ContentMatcher clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.