com.google.api.services.cloudidentity.v1beta1.model.CreateDeviceRequest 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.cloudidentity.v1beta1.model;
/**
* Request message for creating a Company Owned device.
*
* 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 Identity 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 CreateDeviceRequest extends com.google.api.client.json.GenericJson {
/**
* Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use `customers/my_customer` If you're using
* this API to manage another organization, use `customers/{customer_id}`, where customer_id is
* the customer to whom the device belongs.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String customer;
/**
* Required. The device to be created. The name field within this device is ignored in the create
* method. A new name is created by the method, and returned within the response. Only the fields
* `device_type`, `serial_number` and `asset_tag` (if present) are used to create the
* device.`device_type` and `serial_number` are required.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Device device;
/**
* Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use `customers/my_customer` If you're using
* this API to manage another organization, use `customers/{customer_id}`, where customer_id is
* the customer to whom the device belongs.
* @return value or {@code null} for none
*/
public java.lang.String getCustomer() {
return customer;
}
/**
* Required. [Resource name](https://cloud.google.com/apis/design/resource_names) of the customer.
* If you're using this API for your own organization, use `customers/my_customer` If you're using
* this API to manage another organization, use `customers/{customer_id}`, where customer_id is
* the customer to whom the device belongs.
* @param customer customer or {@code null} for none
*/
public CreateDeviceRequest setCustomer(java.lang.String customer) {
this.customer = customer;
return this;
}
/**
* Required. The device to be created. The name field within this device is ignored in the create
* method. A new name is created by the method, and returned within the response. Only the fields
* `device_type`, `serial_number` and `asset_tag` (if present) are used to create the
* device.`device_type` and `serial_number` are required.
* @return value or {@code null} for none
*/
public Device getDevice() {
return device;
}
/**
* Required. The device to be created. The name field within this device is ignored in the create
* method. A new name is created by the method, and returned within the response. Only the fields
* `device_type`, `serial_number` and `asset_tag` (if present) are used to create the
* device.`device_type` and `serial_number` are required.
* @param device device or {@code null} for none
*/
public CreateDeviceRequest setDevice(Device device) {
this.device = device;
return this;
}
@Override
public CreateDeviceRequest set(String fieldName, Object value) {
return (CreateDeviceRequest) super.set(fieldName, value);
}
@Override
public CreateDeviceRequest clone() {
return (CreateDeviceRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy