|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.androidmanagement.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Controls the device's private DNS settings. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Android Management API. For a detailed explanation |
| 24 | + * see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class PrivateDnsSettings extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. The hostname of the DNS server. This must be set if and only if private_dns_mode is |
| 35 | + * set to PRIVATE_DNS_SPECIFIED_HOST. Supported on Android 10 and above on fully managed devices. |
| 36 | + * A NonComplianceDetail with MANAGEMENT_MODE is reported on other management modes. A |
| 37 | + * NonComplianceDetail with API_LEVEL is reported if the Android version is less than 10. A |
| 38 | + * NonComplianceDetail with PENDING is reported if the device is not connected to a network. A |
| 39 | + * NonComplianceDetail with nonComplianceReason INVALID_VALUE and specificNonComplianceReason |
| 40 | + * PRIVATE_DNS_HOST_NOT_SERVING is reported if the specified host is not a DNS server or not |
| 41 | + * supported on Android. A NonComplianceReason with nonComplianceReason INVALID_VALUE is reported |
| 42 | + * if applying this setting fails for any other reason. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String privateDnsHost; |
| 47 | + |
| 48 | + /** |
| 49 | + * Optional. The configuration mode for device's global private DNS settings. If this is set to |
| 50 | + * PRIVATE_DNS_SPECIFIED_HOST, then private_dns_host must be set. |
| 51 | + * The value may be {@code null}. |
| 52 | + */ |
| 53 | + @com.google.api.client.util.Key |
| 54 | + private java.lang.String privateDnsMode; |
| 55 | + |
| 56 | + /** |
| 57 | + * Optional. The hostname of the DNS server. This must be set if and only if private_dns_mode is |
| 58 | + * set to PRIVATE_DNS_SPECIFIED_HOST. Supported on Android 10 and above on fully managed devices. |
| 59 | + * A NonComplianceDetail with MANAGEMENT_MODE is reported on other management modes. A |
| 60 | + * NonComplianceDetail with API_LEVEL is reported if the Android version is less than 10. A |
| 61 | + * NonComplianceDetail with PENDING is reported if the device is not connected to a network. A |
| 62 | + * NonComplianceDetail with nonComplianceReason INVALID_VALUE and specificNonComplianceReason |
| 63 | + * PRIVATE_DNS_HOST_NOT_SERVING is reported if the specified host is not a DNS server or not |
| 64 | + * supported on Android. A NonComplianceReason with nonComplianceReason INVALID_VALUE is reported |
| 65 | + * if applying this setting fails for any other reason. |
| 66 | + * @return value or {@code null} for none |
| 67 | + */ |
| 68 | + public java.lang.String getPrivateDnsHost() { |
| 69 | + return privateDnsHost; |
| 70 | + } |
| 71 | + |
| 72 | + /** |
| 73 | + * Optional. The hostname of the DNS server. This must be set if and only if private_dns_mode is |
| 74 | + * set to PRIVATE_DNS_SPECIFIED_HOST. Supported on Android 10 and above on fully managed devices. |
| 75 | + * A NonComplianceDetail with MANAGEMENT_MODE is reported on other management modes. A |
| 76 | + * NonComplianceDetail with API_LEVEL is reported if the Android version is less than 10. A |
| 77 | + * NonComplianceDetail with PENDING is reported if the device is not connected to a network. A |
| 78 | + * NonComplianceDetail with nonComplianceReason INVALID_VALUE and specificNonComplianceReason |
| 79 | + * PRIVATE_DNS_HOST_NOT_SERVING is reported if the specified host is not a DNS server or not |
| 80 | + * supported on Android. A NonComplianceReason with nonComplianceReason INVALID_VALUE is reported |
| 81 | + * if applying this setting fails for any other reason. |
| 82 | + * @param privateDnsHost privateDnsHost or {@code null} for none |
| 83 | + */ |
| 84 | + public PrivateDnsSettings setPrivateDnsHost(java.lang.String privateDnsHost) { |
| 85 | + this.privateDnsHost = privateDnsHost; |
| 86 | + return this; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Optional. The configuration mode for device's global private DNS settings. If this is set to |
| 91 | + * PRIVATE_DNS_SPECIFIED_HOST, then private_dns_host must be set. |
| 92 | + * @return value or {@code null} for none |
| 93 | + */ |
| 94 | + public java.lang.String getPrivateDnsMode() { |
| 95 | + return privateDnsMode; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Optional. The configuration mode for device's global private DNS settings. If this is set to |
| 100 | + * PRIVATE_DNS_SPECIFIED_HOST, then private_dns_host must be set. |
| 101 | + * @param privateDnsMode privateDnsMode or {@code null} for none |
| 102 | + */ |
| 103 | + public PrivateDnsSettings setPrivateDnsMode(java.lang.String privateDnsMode) { |
| 104 | + this.privateDnsMode = privateDnsMode; |
| 105 | + return this; |
| 106 | + } |
| 107 | + |
| 108 | + @Override |
| 109 | + public PrivateDnsSettings set(String fieldName, Object value) { |
| 110 | + return (PrivateDnsSettings) super.set(fieldName, value); |
| 111 | + } |
| 112 | + |
| 113 | + @Override |
| 114 | + public PrivateDnsSettings clone() { |
| 115 | + return (PrivateDnsSettings) super.clone(); |
| 116 | + } |
| 117 | + |
| 118 | +} |
0 commit comments