/*
 * 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.networksecurity.v1beta1.model;

/**
 * UrlList proto helps users to set reusable, independently manageable lists of hosts, host
 * patterns, URLs, URL patterns.
 *
 * <p> 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 Network Security API. For a detailed explanation see:
 * <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>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class UrlList extends com.google.api.client.json.GenericJson {

  /**
   * Output only. Time when the security policy was created.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String createTime;

  /**
   * Optional. Free-text description of the resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Required. Name of the resource provided by the user. Name is of the form
   * projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the
   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Output only. Time when the security policy was updated.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String updateTime;

  /**
   * Required. FQDNs and URLs.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<java.lang.String> values;

  /**
   * Output only. Time when the security policy was created.
   * @return value or {@code null} for none
   */
  public String getCreateTime() {
    return createTime;
  }

  /**
   * Output only. Time when the security policy was created.
   * @param createTime createTime or {@code null} for none
   */
  public UrlList setCreateTime(String createTime) {
    this.createTime = createTime;
    return this;
  }

  /**
   * Optional. Free-text description of the resource.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * Optional. Free-text description of the resource.
   * @param description description or {@code null} for none
   */
  public UrlList setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * Required. Name of the resource provided by the user. Name is of the form
   * projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the
   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * Required. Name of the resource provided by the user. Name is of the form
   * projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the
   * pattern:(^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$).
   * @param name name or {@code null} for none
   */
  public UrlList setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Output only. Time when the security policy was updated.
   * @return value or {@code null} for none
   */
  public String getUpdateTime() {
    return updateTime;
  }

  /**
   * Output only. Time when the security policy was updated.
   * @param updateTime updateTime or {@code null} for none
   */
  public UrlList setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
    return this;
  }

  /**
   * Required. FQDNs and URLs.
   * @return value or {@code null} for none
   */
  public java.util.List<java.lang.String> getValues() {
    return values;
  }

  /**
   * Required. FQDNs and URLs.
   * @param values values or {@code null} for none
   */
  public UrlList setValues(java.util.List<java.lang.String> values) {
    this.values = values;
    return this;
  }

  @Override
  public UrlList set(String fieldName, Object value) {
    return (UrlList) super.set(fieldName, value);
  }

  @Override
  public UrlList clone() {
    return (UrlList) super.clone();
  }

}
