public final class BasicAuthentication
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 Stackdriver 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.Flags| Constructor and Description |
|---|
BasicAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
BasicAuthentication |
clone() |
java.lang.String |
getPassword()
The password to authenticate.
|
java.lang.String |
getUsername()
The username to authenticate.
|
BasicAuthentication |
set(java.lang.String fieldName,
java.lang.Object value) |
BasicAuthentication |
setPassword(java.lang.String password)
The password to authenticate.
|
BasicAuthentication |
setUsername(java.lang.String username)
The username to authenticate.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getPassword()
null for nonepublic BasicAuthentication setPassword(java.lang.String password)
password - password or null for nonepublic java.lang.String getUsername()
null for nonepublic BasicAuthentication setUsername(java.lang.String username)
username - username or null for nonepublic BasicAuthentication set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic BasicAuthentication clone()
clone in class com.google.api.client.json.GenericJson