com.google.api.services.androidmanagement.v1.model.DnsEvent Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.androidmanagement.v1.model;
/**
* A DNS lookup event was initiated through the standard network stack.
*
* 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 Android Management API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DnsEvent extends com.google.api.client.json.GenericJson {
/**
* The hostname that was looked up.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String hostname;
/**
* The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6
* addresses).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List ipAddresses;
/**
* The package name of the UID that performed the DNS lookup.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String packageName;
/**
* The number of IP addresses returned from the DNS lookup event. May be higher than the amount of
* ip_addresses if there were too many addresses to log.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long totalIpAddressesReturned;
/**
* The hostname that was looked up.
* @return value or {@code null} for none
*/
public java.lang.String getHostname() {
return hostname;
}
/**
* The hostname that was looked up.
* @param hostname hostname or {@code null} for none
*/
public DnsEvent setHostname(java.lang.String hostname) {
this.hostname = hostname;
return this;
}
/**
* The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6
* addresses).
* @return value or {@code null} for none
*/
public java.util.List getIpAddresses() {
return ipAddresses;
}
/**
* The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6
* addresses).
* @param ipAddresses ipAddresses or {@code null} for none
*/
public DnsEvent setIpAddresses(java.util.List ipAddresses) {
this.ipAddresses = ipAddresses;
return this;
}
/**
* The package name of the UID that performed the DNS lookup.
* @return value or {@code null} for none
*/
public java.lang.String getPackageName() {
return packageName;
}
/**
* The package name of the UID that performed the DNS lookup.
* @param packageName packageName or {@code null} for none
*/
public DnsEvent setPackageName(java.lang.String packageName) {
this.packageName = packageName;
return this;
}
/**
* The number of IP addresses returned from the DNS lookup event. May be higher than the amount of
* ip_addresses if there were too many addresses to log.
* @return value or {@code null} for none
*/
public java.lang.Long getTotalIpAddressesReturned() {
return totalIpAddressesReturned;
}
/**
* The number of IP addresses returned from the DNS lookup event. May be higher than the amount of
* ip_addresses if there were too many addresses to log.
* @param totalIpAddressesReturned totalIpAddressesReturned or {@code null} for none
*/
public DnsEvent setTotalIpAddressesReturned(java.lang.Long totalIpAddressesReturned) {
this.totalIpAddressesReturned = totalIpAddressesReturned;
return this;
}
@Override
public DnsEvent set(String fieldName, Object value) {
return (DnsEvent) super.set(fieldName, value);
}
@Override
public DnsEvent clone() {
return (DnsEvent) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy