com.google.api.services.certificatemanager.v1.model.DnsAuthorization 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.certificatemanager.v1.model;
/**
* A DnsAuthorization resource describes a way to perform domain authorization for certificate
* issuance.
*
* 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 Certificate Manager 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 DnsAuthorization extends com.google.api.client.json.GenericJson {
/**
* Output only. The creation timestamp of a DnsAuthorization.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;
/**
* One or more paragraphs of text description of a DnsAuthorization.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String description;
/**
* Output only. DNS Resource Record that needs to be added to DNS configuration.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DnsResourceRecord dnsResourceRecord;
/**
* Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a
* single domain and its wildcard, e.g. authorization for `example.com` can be used to issue
* certificates for `example.com` and `*.example.com`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String domain;
/**
* Set of labels associated with a DnsAuthorization.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map labels;
/**
* A user-defined name of the dns authorization. DnsAuthorization names must be unique globally
* and match pattern `projects/locations/dnsAuthorizations`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;
/**
* Immutable. Type of DnsAuthorization. If unset during resource creation the following default
* will be used: - in location global: FIXED_RECORD.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;
/**
* Output only. The last update timestamp of a DnsAuthorization.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;
/**
* Output only. The creation timestamp of a DnsAuthorization.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}
/**
* Output only. The creation timestamp of a DnsAuthorization.
* @param createTime createTime or {@code null} for none
*/
public DnsAuthorization setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* One or more paragraphs of text description of a DnsAuthorization.
* @return value or {@code null} for none
*/
public java.lang.String getDescription() {
return description;
}
/**
* One or more paragraphs of text description of a DnsAuthorization.
* @param description description or {@code null} for none
*/
public DnsAuthorization setDescription(java.lang.String description) {
this.description = description;
return this;
}
/**
* Output only. DNS Resource Record that needs to be added to DNS configuration.
* @return value or {@code null} for none
*/
public DnsResourceRecord getDnsResourceRecord() {
return dnsResourceRecord;
}
/**
* Output only. DNS Resource Record that needs to be added to DNS configuration.
* @param dnsResourceRecord dnsResourceRecord or {@code null} for none
*/
public DnsAuthorization setDnsResourceRecord(DnsResourceRecord dnsResourceRecord) {
this.dnsResourceRecord = dnsResourceRecord;
return this;
}
/**
* Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a
* single domain and its wildcard, e.g. authorization for `example.com` can be used to issue
* certificates for `example.com` and `*.example.com`.
* @return value or {@code null} for none
*/
public java.lang.String getDomain() {
return domain;
}
/**
* Required. Immutable. A domain that is being authorized. A DnsAuthorization resource covers a
* single domain and its wildcard, e.g. authorization for `example.com` can be used to issue
* certificates for `example.com` and `*.example.com`.
* @param domain domain or {@code null} for none
*/
public DnsAuthorization setDomain(java.lang.String domain) {
this.domain = domain;
return this;
}
/**
* Set of labels associated with a DnsAuthorization.
* @return value or {@code null} for none
*/
public java.util.Map getLabels() {
return labels;
}
/**
* Set of labels associated with a DnsAuthorization.
* @param labels labels or {@code null} for none
*/
public DnsAuthorization setLabels(java.util.Map labels) {
this.labels = labels;
return this;
}
/**
* A user-defined name of the dns authorization. DnsAuthorization names must be unique globally
* and match pattern `projects/locations/dnsAuthorizations`.
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}
/**
* A user-defined name of the dns authorization. DnsAuthorization names must be unique globally
* and match pattern `projects/locations/dnsAuthorizations`.
* @param name name or {@code null} for none
*/
public DnsAuthorization setName(java.lang.String name) {
this.name = name;
return this;
}
/**
* Immutable. Type of DnsAuthorization. If unset during resource creation the following default
* will be used: - in location global: FIXED_RECORD.
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}
/**
* Immutable. Type of DnsAuthorization. If unset during resource creation the following default
* will be used: - in location global: FIXED_RECORD.
* @param type type or {@code null} for none
*/
public DnsAuthorization setType(java.lang.String type) {
this.type = type;
return this;
}
/**
* Output only. The last update timestamp of a DnsAuthorization.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}
/**
* Output only. The last update timestamp of a DnsAuthorization.
* @param updateTime updateTime or {@code null} for none
*/
public DnsAuthorization setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}
@Override
public DnsAuthorization set(String fieldName, Object value) {
return (DnsAuthorization) super.set(fieldName, value);
}
@Override
public DnsAuthorization clone() {
return (DnsAuthorization) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy