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

com.infobip.model.CallsCreateStaticSipTrunkResponse Maven / Gradle / Ivy

/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * Represents CallsCreateStaticSipTrunkResponse model.
 */
public class CallsCreateStaticSipTrunkResponse extends CallsCreateSipTrunkResponse {

    private List sourceHosts = null;

    private List destinationHosts = null;

    private CallsSelectionStrategy strategy;

    private CallsSipOptions sipOptions;

    /**
     * Constructs a new {@link CallsCreateStaticSipTrunkResponse} instance.
     */
    public CallsCreateStaticSipTrunkResponse() {
        super("STATIC");
    }

    /**
     * Sets sourceHosts.
     * 

* Field description: * List of source hosts. * * @param sourceHosts * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse sourceHosts(List sourceHosts) { this.sourceHosts = sourceHosts; return this; } /** * Adds and item into sourceHosts. *

* Field description: * List of source hosts. * * @param sourceHostsItem The item to be added to the list. * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse addSourceHostsItem(String sourceHostsItem) { if (this.sourceHosts == null) { this.sourceHosts = new ArrayList<>(); } this.sourceHosts.add(sourceHostsItem); return this; } /** * Returns sourceHosts. *

* Field description: * List of source hosts. * * @return sourceHosts */ @JsonProperty("sourceHosts") public List getSourceHosts() { return sourceHosts; } /** * Sets sourceHosts. *

* Field description: * List of source hosts. * * @param sourceHosts */ @JsonProperty("sourceHosts") public void setSourceHosts(List sourceHosts) { this.sourceHosts = sourceHosts; } /** * Sets destinationHosts. *

* Field description: * List of destination hosts. * * @param destinationHosts * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse destinationHosts(List destinationHosts) { this.destinationHosts = destinationHosts; return this; } /** * Adds and item into destinationHosts. *

* Field description: * List of destination hosts. * * @param destinationHostsItem The item to be added to the list. * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse addDestinationHostsItem(String destinationHostsItem) { if (this.destinationHosts == null) { this.destinationHosts = new ArrayList<>(); } this.destinationHosts.add(destinationHostsItem); return this; } /** * Returns destinationHosts. *

* Field description: * List of destination hosts. * * @return destinationHosts */ @JsonProperty("destinationHosts") public List getDestinationHosts() { return destinationHosts; } /** * Sets destinationHosts. *

* Field description: * List of destination hosts. * * @param destinationHosts */ @JsonProperty("destinationHosts") public void setDestinationHosts(List destinationHosts) { this.destinationHosts = destinationHosts; } /** * Sets strategy. * * @param strategy * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse strategy(CallsSelectionStrategy strategy) { this.strategy = strategy; return this; } /** * Returns strategy. * * @return strategy */ @JsonProperty("strategy") public CallsSelectionStrategy getStrategy() { return strategy; } /** * Sets strategy. * * @param strategy */ @JsonProperty("strategy") public void setStrategy(CallsSelectionStrategy strategy) { this.strategy = strategy; } /** * Sets sipOptions. * * @param sipOptions * @return This {@link CallsCreateStaticSipTrunkResponse instance}. */ public CallsCreateStaticSipTrunkResponse sipOptions(CallsSipOptions sipOptions) { this.sipOptions = sipOptions; return this; } /** * Returns sipOptions. * * @return sipOptions */ @JsonProperty("sipOptions") public CallsSipOptions getSipOptions() { return sipOptions; } /** * Sets sipOptions. * * @param sipOptions */ @JsonProperty("sipOptions") public void setSipOptions(CallsSipOptions sipOptions) { this.sipOptions = sipOptions; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CallsCreateStaticSipTrunkResponse callsCreateStaticSipTrunkResponse = (CallsCreateStaticSipTrunkResponse) o; return Objects.equals(this.sourceHosts, callsCreateStaticSipTrunkResponse.sourceHosts) && Objects.equals(this.destinationHosts, callsCreateStaticSipTrunkResponse.destinationHosts) && Objects.equals(this.strategy, callsCreateStaticSipTrunkResponse.strategy) && Objects.equals(this.sipOptions, callsCreateStaticSipTrunkResponse.sipOptions) && super.equals(o); } @Override public int hashCode() { return Objects.hash(sourceHosts, destinationHosts, strategy, sipOptions, super.hashCode()); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class CallsCreateStaticSipTrunkResponse {") .append(newLine) .append(" ") .append(toIndentedString(super.toString())) .append(newLine) .append(" sourceHosts: ") .append(toIndentedString(sourceHosts)) .append(newLine) .append(" destinationHosts: ") .append(toIndentedString(destinationHosts)) .append(newLine) .append(" strategy: ") .append(toIndentedString(strategy)) .append(newLine) .append(" sipOptions: ") .append(toIndentedString(sipOptions)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy