com.google.api.services.spectrum.model.DeviceValidity Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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/google/apis-client-generator/
* (build: 2016-05-04 15:59:39 UTC)
* on 2016-05-18 at 06:28:13 UTC
* Modify at your own risk.
*/
package com.google.api.services.spectrum.model;
/**
* The device validity element describes whether a particular device is valid to operate in the
* regulatory domain.
*
* 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 Google Spectrum Database 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 DeviceValidity extends com.google.api.client.json.GenericJson {
/**
* The descriptor of the device for which the validity check was requested. It will always be
* present.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DeviceDescriptor deviceDesc;
/**
* The validity status: true if the device is valid for operation, false otherwise. It will always
* be present.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean isValid;
/**
* If the device identifier is not valid, the database may include a reason. The reason may be in
* any language. The length of the value should not exceed 128 characters.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String reason;
/**
* The descriptor of the device for which the validity check was requested. It will always be
* present.
* @return value or {@code null} for none
*/
public DeviceDescriptor getDeviceDesc() {
return deviceDesc;
}
/**
* The descriptor of the device for which the validity check was requested. It will always be
* present.
* @param deviceDesc deviceDesc or {@code null} for none
*/
public DeviceValidity setDeviceDesc(DeviceDescriptor deviceDesc) {
this.deviceDesc = deviceDesc;
return this;
}
/**
* The validity status: true if the device is valid for operation, false otherwise. It will always
* be present.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIsValid() {
return isValid;
}
/**
* The validity status: true if the device is valid for operation, false otherwise. It will always
* be present.
* @param isValid isValid or {@code null} for none
*/
public DeviceValidity setIsValid(java.lang.Boolean isValid) {
this.isValid = isValid;
return this;
}
/**
* If the device identifier is not valid, the database may include a reason. The reason may be in
* any language. The length of the value should not exceed 128 characters.
* @return value or {@code null} for none
*/
public java.lang.String getReason() {
return reason;
}
/**
* If the device identifier is not valid, the database may include a reason. The reason may be in
* any language. The length of the value should not exceed 128 characters.
* @param reason reason or {@code null} for none
*/
public DeviceValidity setReason(java.lang.String reason) {
this.reason = reason;
return this;
}
@Override
public DeviceValidity set(String fieldName, Object value) {
return (DeviceValidity) super.set(fieldName, value);
}
@Override
public DeviceValidity clone() {
return (DeviceValidity) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy