com.shell.apitest.models.CardDetailsResponseNonFuelSetsItems Maven / Gradle / Ivy
/*
* ShellCardManagementAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.shell.apitest.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for CardDetailsResponseNonFuelSetsItems type.
*/
public class CardDetailsResponseNonFuelSetsItems {
private int productRestrictionId;
private String description;
/**
* Default constructor.
*/
public CardDetailsResponseNonFuelSetsItems() {
}
/**
* Initialization constructor.
* @param productRestrictionId int value for productRestrictionId.
* @param description String value for description.
*/
public CardDetailsResponseNonFuelSetsItems(
int productRestrictionId,
String description) {
this.productRestrictionId = productRestrictionId;
this.description = description;
}
/**
* Getter for ProductRestrictionId.
* product restriction identifier
* @return Returns the int
*/
@JsonGetter("ProductRestrictionId")
public int getProductRestrictionId() {
return productRestrictionId;
}
/**
* Setter for ProductRestrictionId.
* product restriction identifier
* @param productRestrictionId Value for int
*/
@JsonSetter("ProductRestrictionId")
public void setProductRestrictionId(int productRestrictionId) {
this.productRestrictionId = productRestrictionId;
}
/**
* Getter for Description.
* product set description.
* @return Returns the String
*/
@JsonGetter("Description")
public String getDescription() {
return description;
}
/**
* Setter for Description.
* product set description.
* @param description Value for String
*/
@JsonSetter("Description")
public void setDescription(String description) {
this.description = description;
}
/**
* Converts this CardDetailsResponseNonFuelSetsItems into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "CardDetailsResponseNonFuelSetsItems [" + "productRestrictionId="
+ productRestrictionId + ", description=" + description + "]";
}
/**
* Builds a new {@link CardDetailsResponseNonFuelSetsItems.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link CardDetailsResponseNonFuelSetsItems.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder(productRestrictionId, description);
return builder;
}
/**
* Class to build instances of {@link CardDetailsResponseNonFuelSetsItems}.
*/
public static class Builder {
private int productRestrictionId;
private String description;
/**
* Initialization constructor.
*/
public Builder() {
}
/**
* Initialization constructor.
* @param productRestrictionId int value for productRestrictionId.
* @param description String value for description.
*/
public Builder(int productRestrictionId, String description) {
this.productRestrictionId = productRestrictionId;
this.description = description;
}
/**
* Setter for productRestrictionId.
* @param productRestrictionId int value for productRestrictionId.
* @return Builder
*/
public Builder productRestrictionId(int productRestrictionId) {
this.productRestrictionId = productRestrictionId;
return this;
}
/**
* Setter for description.
* @param description String value for description.
* @return Builder
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* Builds a new {@link CardDetailsResponseNonFuelSetsItems} object using the set fields.
* @return {@link CardDetailsResponseNonFuelSetsItems}
*/
public CardDetailsResponseNonFuelSetsItems build() {
return new CardDetailsResponseNonFuelSetsItems(productRestrictionId, description);
}
}
}