com.criteo.marketing.model.PolicyRouteInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing.java-client Show documentation
Show all versions of marketing.java-client Show documentation
Criteo Marketing SDK for Java
/*
* Marketing API v.1.0
* IMPORTANT: This swagger links to Criteo production environment. Any test applied here will thus impact real campaigns.
*
* The version of the OpenAPI document: v.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.criteo.marketing.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* PolicyRouteInfo
*/
public class PolicyRouteInfo {
public static final String SERIALIZED_NAME_ROUTE = "route";
@SerializedName(SERIALIZED_NAME_ROUTE)
private String route;
public static final String SERIALIZED_NAME_METHOD = "method";
@SerializedName(SERIALIZED_NAME_METHOD)
private String method;
public static final String SERIALIZED_NAME_CONTROLLER_NAME = "controllerName";
@SerializedName(SERIALIZED_NAME_CONTROLLER_NAME)
private String controllerName;
public static final String SERIALIZED_NAME_ACTION_NAME = "actionName";
@SerializedName(SERIALIZED_NAME_ACTION_NAME)
private String actionName;
public PolicyRouteInfo route(String route) {
this.route = route;
return this;
}
/**
* Get route
* @return route
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getRoute() {
return route;
}
public void setRoute(String route) {
this.route = route;
}
public PolicyRouteInfo method(String method) {
this.method = method;
return this;
}
/**
* Get method
* @return method
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public PolicyRouteInfo controllerName(String controllerName) {
this.controllerName = controllerName;
return this;
}
/**
* Get controllerName
* @return controllerName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getControllerName() {
return controllerName;
}
public void setControllerName(String controllerName) {
this.controllerName = controllerName;
}
public PolicyRouteInfo actionName(String actionName) {
this.actionName = actionName;
return this;
}
/**
* Get actionName
* @return actionName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getActionName() {
return actionName;
}
public void setActionName(String actionName) {
this.actionName = actionName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PolicyRouteInfo policyRouteInfo = (PolicyRouteInfo) o;
return Objects.equals(this.route, policyRouteInfo.route) &&
Objects.equals(this.method, policyRouteInfo.method) &&
Objects.equals(this.controllerName, policyRouteInfo.controllerName) &&
Objects.equals(this.actionName, policyRouteInfo.actionName);
}
@Override
public int hashCode() {
return Objects.hash(route, method, controllerName, actionName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PolicyRouteInfo {\n");
sb.append(" route: ").append(toIndentedString(route)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
sb.append(" controllerName: ").append(toIndentedString(controllerName)).append("\n");
sb.append(" actionName: ").append(toIndentedString(actionName)).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 - 2025 Weber Informatics LLC | Privacy Policy