/*
 * 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.workloadmanager.v1.model;

/**
 * Message describing the result of an execution
 *
 * <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 Workload Manager 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 ExecutionResult extends com.google.api.client.json.GenericJson {

  /**
   * the document url of the rule
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String documentationUrl;

  /**
   * the violate resource
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private Resource resource;

  /**
   * the rule which violate in execution
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String rule;

  /**
   * severity of violation
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String severity;

  /**
   * the details of violation in result
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private ViolationDetails violationDetails;

  /**
   * the violation message of an execution
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String violationMessage;

  /**
   * the document url of the rule
   * @return value or {@code null} for none
   */
  public java.lang.String getDocumentationUrl() {
    return documentationUrl;
  }

  /**
   * the document url of the rule
   * @param documentationUrl documentationUrl or {@code null} for none
   */
  public ExecutionResult setDocumentationUrl(java.lang.String documentationUrl) {
    this.documentationUrl = documentationUrl;
    return this;
  }

  /**
   * the violate resource
   * @return value or {@code null} for none
   */
  public Resource getResource() {
    return resource;
  }

  /**
   * the violate resource
   * @param resource resource or {@code null} for none
   */
  public ExecutionResult setResource(Resource resource) {
    this.resource = resource;
    return this;
  }

  /**
   * the rule which violate in execution
   * @return value or {@code null} for none
   */
  public java.lang.String getRule() {
    return rule;
  }

  /**
   * the rule which violate in execution
   * @param rule rule or {@code null} for none
   */
  public ExecutionResult setRule(java.lang.String rule) {
    this.rule = rule;
    return this;
  }

  /**
   * severity of violation
   * @return value or {@code null} for none
   */
  public java.lang.String getSeverity() {
    return severity;
  }

  /**
   * severity of violation
   * @param severity severity or {@code null} for none
   */
  public ExecutionResult setSeverity(java.lang.String severity) {
    this.severity = severity;
    return this;
  }

  /**
   * the details of violation in result
   * @return value or {@code null} for none
   */
  public ViolationDetails getViolationDetails() {
    return violationDetails;
  }

  /**
   * the details of violation in result
   * @param violationDetails violationDetails or {@code null} for none
   */
  public ExecutionResult setViolationDetails(ViolationDetails violationDetails) {
    this.violationDetails = violationDetails;
    return this;
  }

  /**
   * the violation message of an execution
   * @return value or {@code null} for none
   */
  public java.lang.String getViolationMessage() {
    return violationMessage;
  }

  /**
   * the violation message of an execution
   * @param violationMessage violationMessage or {@code null} for none
   */
  public ExecutionResult setViolationMessage(java.lang.String violationMessage) {
    this.violationMessage = violationMessage;
    return this;
  }

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

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

}
