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

org.zendesk.client.v2.model.targets.UrlTarget Maven / Gradle / Ivy

package org.zendesk.client.v2.model.targets;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author adavidson
 */
public class UrlTarget extends Target {
   private String targetUrl;
   private String method;
   private String attribute;
   private String username;
   private String password;

   @Override
   public String getType() {
      return "url_target";
   }
   
   @JsonProperty("target_url")
   public String getTargetUrl() {
      return targetUrl;
   }

   public void setTargetUrl(String targetUrl) {
      this.targetUrl = targetUrl;
   }

   public String getMethod() {
      return method;
   }

   public void setMethod(String method) {
      this.method = method;
   }

   public String getAttribute() {
      return attribute;
   }

   public void setAttribute(String attribute) {
      this.attribute = attribute;
   }

   public String getUsername() {
      return username;
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public String getPassword() {
      return password;
   }

   public void setPassword(String password) {
      this.password = password;
   }

   @Override
   public String toString() {
      final StringBuilder sb = new StringBuilder();
      sb.append("UrlTarget");
      sb.append("{id=").append(getId());
      sb.append(", title=").append(getTitle());
      sb.append(", type=").append(getType());
      sb.append(", active=").append(isActive());
      sb.append(", createdAt=").append(getCreatedAt());
      sb.append(", targetUrl=").append(targetUrl);
      sb.append(", method=").append(method);
      sb.append(", attribute=").append(attribute);
      sb.append(", username=").append(username);
      sb.append(", password=").append(password);
      sb.append('}');
      return sb.toString();
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy