All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blackducksoftware.integration.hub.model.PolicyRuleView Maven / Gradle / Ivy

There is a newer version: 3.4.2.1
Show newest version
/**
 * hub-model-common
 *
 * Copyright (C) 2017 Black Duck Software, Inc.
 * http://www.blackducksoftware.com/
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you 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.
 */
/*
 * 
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * 
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.blackducksoftware.integration.hub.model;

import java.util.Objects;

import com.blackducksoftware.integration.hub.model.HubView;
import com.blackducksoftware.integration.hub.model.MetadataView;
import com.blackducksoftware.integration.hub.model.PolicyRuleExpressionSet;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import org.joda.time.DateTime;

/**
 * PolicyRuleView
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-02-02T14:22:10.992-05:00")
public class PolicyRuleView extends HubView {
  @SerializedName("createdAt")
  private DateTime createdAt = null;

  @SerializedName("createdBy")
  private String createdBy = null;

  @SerializedName("createdByUser")
  private String createdByUser = null;

  @SerializedName("description")
  private String description = null;

  @SerializedName("enabled")
  private Boolean enabled = null;

  @SerializedName("expression")
  private PolicyRuleExpressionSet expression = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("overridable")
  private Boolean overridable = null;

  @SerializedName("updatedAt")
  private DateTime updatedAt = null;

  @SerializedName("updatedBy")
  private String updatedBy = null;

  @SerializedName("updatedByUser")
  private String updatedByUser = null;

  public PolicyRuleView createdAt(DateTime createdAt) {
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getCreatedAt() {
    return createdAt;
  }

  public void setCreatedAt(DateTime createdAt) {
    this.createdAt = createdAt;
  }

  public PolicyRuleView createdBy(String createdBy) {
    this.createdBy = createdBy;
    return this;
  }

   /**
   * Get createdBy
   * @return createdBy
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getCreatedBy() {
    return createdBy;
  }

  public void setCreatedBy(String createdBy) {
    this.createdBy = createdBy;
  }

  public PolicyRuleView createdByUser(String createdByUser) {
    this.createdByUser = createdByUser;
    return this;
  }

   /**
   * URL where more information on the creating user can be found
   * @return createdByUser
  **/
  @ApiModelProperty(example = "null", value = "URL where more information on the creating user can be found")
  public String getCreatedByUser() {
    return createdByUser;
  }

  public void setCreatedByUser(String createdByUser) {
    this.createdByUser = createdByUser;
  }

  public PolicyRuleView description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public PolicyRuleView enabled(Boolean enabled) {
    this.enabled = enabled;
    return this;
  }

   /**
   * Get enabled
   * @return enabled
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getEnabled() {
    return enabled;
  }

  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }

  public PolicyRuleView expression(PolicyRuleExpressionSet expression) {
    this.expression = expression;
    return this;
  }

   /**
   * Get expression
   * @return expression
  **/
  @ApiModelProperty(example = "null", value = "")
  public PolicyRuleExpressionSet getExpression() {
    return expression;
  }

  public void setExpression(PolicyRuleExpressionSet expression) {
    this.expression = expression;
  }

  public PolicyRuleView name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public PolicyRuleView overridable(Boolean overridable) {
    this.overridable = overridable;
    return this;
  }

   /**
   * Get overridable
   * @return overridable
  **/
  @ApiModelProperty(example = "null", value = "")
  public Boolean getOverridable() {
    return overridable;
  }

  public void setOverridable(Boolean overridable) {
    this.overridable = overridable;
  }

  public PolicyRuleView updatedAt(DateTime updatedAt) {
    this.updatedAt = updatedAt;
    return this;
  }

   /**
   * Get updatedAt
   * @return updatedAt
  **/
  @ApiModelProperty(example = "null", value = "")
  public DateTime getUpdatedAt() {
    return updatedAt;
  }

  public void setUpdatedAt(DateTime updatedAt) {
    this.updatedAt = updatedAt;
  }

  public PolicyRuleView updatedBy(String updatedBy) {
    this.updatedBy = updatedBy;
    return this;
  }

   /**
   * Get updatedBy
   * @return updatedBy
  **/
  @ApiModelProperty(example = "null", value = "")
  public String getUpdatedBy() {
    return updatedBy;
  }

  public void setUpdatedBy(String updatedBy) {
    this.updatedBy = updatedBy;
  }

  public PolicyRuleView updatedByUser(String updatedByUser) {
    this.updatedByUser = updatedByUser;
    return this;
  }

   /**
   * URL where more information on the last user to update the policy can be found
   * @return updatedByUser
  **/
  @ApiModelProperty(example = "null", value = "URL where more information on the last user to update the policy can be found")
  public String getUpdatedByUser() {
    return updatedByUser;
  }

  public void setUpdatedByUser(String updatedByUser) {
    this.updatedByUser = updatedByUser;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PolicyRuleView policyRuleView = (PolicyRuleView) o;
    return Objects.equals(this.createdAt, policyRuleView.createdAt) &&
        Objects.equals(this.createdBy, policyRuleView.createdBy) &&
        Objects.equals(this.createdByUser, policyRuleView.createdByUser) &&
        Objects.equals(this.description, policyRuleView.description) &&
        Objects.equals(this.enabled, policyRuleView.enabled) &&
        Objects.equals(this.expression, policyRuleView.expression) &&
        Objects.equals(this.name, policyRuleView.name) &&
        Objects.equals(this.overridable, policyRuleView.overridable) &&
        Objects.equals(this.updatedAt, policyRuleView.updatedAt) &&
        Objects.equals(this.updatedBy, policyRuleView.updatedBy) &&
        Objects.equals(this.updatedByUser, policyRuleView.updatedByUser) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(createdAt, createdBy, createdByUser, description, enabled, expression, name, overridable, updatedAt, updatedBy, updatedByUser, super.hashCode());
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PolicyRuleView {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    createdBy: ").append(toIndentedString(createdBy)).append("\n");
    sb.append("    createdByUser: ").append(toIndentedString(createdByUser)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
    sb.append("    expression: ").append(toIndentedString(expression)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    overridable: ").append(toIndentedString(overridable)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
    sb.append("    updatedBy: ").append(toIndentedString(updatedBy)).append("\n");
    sb.append("    updatedByUser: ").append(toIndentedString(updatedByUser)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
  
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy