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

io.deepsense.neptune.apiclient.model.ActionInvocation Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * Neptune API
 * Neptune API
 *
 * OpenAPI spec version: 1.4_c9e4693-SNAPSHOT
 * 
 *
 * 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.
 *
 * 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.
 */


package io.deepsense.neptune.apiclient.model;

import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import io.deepsense.neptune.apiclient.model.ActionEventType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;


/**
 * ActionInvocation
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-12-13T15:34:20.025+01:00")
public class ActionInvocation   {
  @SerializedName("actionName")
  private String actionName = null;

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

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

  @SerializedName("started")
  private OffsetDateTime started = null;

  @SerializedName("finished")
  private OffsetDateTime finished = null;

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

  @SerializedName("actionInvocationState")
  private ActionEventType actionInvocationState = null;

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

  public ActionInvocation actionName(String actionName) {
    this.actionName = actionName;
    return this;
  }

   /**
   * Get actionName
   * @return actionName
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getActionName() {
    return actionName;
  }

  public void setActionName(String actionName) {
    this.actionName = actionName;
  }

  public ActionInvocation actionId(String actionId) {
    this.actionId = actionId;
    return this;
  }

   /**
   * Get actionId
   * @return actionId
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getActionId() {
    return actionId;
  }

  public void setActionId(String actionId) {
    this.actionId = actionId;
  }

  public ActionInvocation actionInvocationId(String actionInvocationId) {
    this.actionInvocationId = actionInvocationId;
    return this;
  }

   /**
   * Get actionInvocationId
   * @return actionInvocationId
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getActionInvocationId() {
    return actionInvocationId;
  }

  public void setActionInvocationId(String actionInvocationId) {
    this.actionInvocationId = actionInvocationId;
  }

  public ActionInvocation started(OffsetDateTime started) {
    this.started = started;
    return this;
  }

   /**
   * Get started
   * @return started
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public OffsetDateTime getStarted() {
    return started;
  }

  public void setStarted(OffsetDateTime started) {
    this.started = started;
  }

  public ActionInvocation finished(OffsetDateTime finished) {
    this.finished = finished;
    return this;
  }

   /**
   * Get finished
   * @return finished
  **/
  @ApiModelProperty(example = "null", value = "")
  public OffsetDateTime getFinished() {
    return finished;
  }

  public void setFinished(OffsetDateTime finished) {
    this.finished = finished;
  }

  public ActionInvocation argument(String argument) {
    this.argument = argument;
    return this;
  }

   /**
   * Get argument
   * @return argument
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public String getArgument() {
    return argument;
  }

  public void setArgument(String argument) {
    this.argument = argument;
  }

  public ActionInvocation actionInvocationState(ActionEventType actionInvocationState) {
    this.actionInvocationState = actionInvocationState;
    return this;
  }

   /**
   * Get actionInvocationState
   * @return actionInvocationState
  **/
  @ApiModelProperty(example = "null", required = true, value = "")
  public ActionEventType getActionInvocationState() {
    return actionInvocationState;
  }

  public void setActionInvocationState(ActionEventType actionInvocationState) {
    this.actionInvocationState = actionInvocationState;
  }

  public ActionInvocation result(String result) {
    this.result = result;
    return this;
  }

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

  public void setResult(String result) {
    this.result = result;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ActionInvocation actionInvocation = (ActionInvocation) o;
    return Objects.equals(this.actionName, actionInvocation.actionName) &&
        Objects.equals(this.actionId, actionInvocation.actionId) &&
        Objects.equals(this.actionInvocationId, actionInvocation.actionInvocationId) &&
        Objects.equals(this.started, actionInvocation.started) &&
        Objects.equals(this.finished, actionInvocation.finished) &&
        Objects.equals(this.argument, actionInvocation.argument) &&
        Objects.equals(this.actionInvocationState, actionInvocation.actionInvocationState) &&
        Objects.equals(this.result, actionInvocation.result);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionName, actionId, actionInvocationId, started, finished, argument, actionInvocationState, result);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ActionInvocation {\n");
    
    sb.append("    actionName: ").append(toIndentedString(actionName)).append("\n");
    sb.append("    actionId: ").append(toIndentedString(actionId)).append("\n");
    sb.append("    actionInvocationId: ").append(toIndentedString(actionInvocationId)).append("\n");
    sb.append("    started: ").append(toIndentedString(started)).append("\n");
    sb.append("    finished: ").append(toIndentedString(finished)).append("\n");
    sb.append("    argument: ").append(toIndentedString(argument)).append("\n");
    sb.append("    actionInvocationState: ").append(toIndentedString(actionInvocationState)).append("\n");
    sb.append("    result: ").append(toIndentedString(result)).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