/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Phone Property details.
 */
public class Phone {
    /**
     * CountryCode of the detected Phone number.
     */
    @JsonProperty(value = "CountryCode")
    private String countryCode;

    /**
     * Detected Phone number.
     */
    @JsonProperty(value = "Text")
    private String text;

    /**
     * Index(Location) of the Phone number in the input text content.
     */
    @JsonProperty(value = "Index")
    private Integer index;

    /**
     * Get the countryCode value.
     *
     * @return the countryCode value
     */
    public String countryCode() {
        return this.countryCode;
    }

    /**
     * Set the countryCode value.
     *
     * @param countryCode the countryCode value to set
     * @return the Phone object itself.
     */
    public Phone withCountryCode(String countryCode) {
        this.countryCode = countryCode;
        return this;
    }

    /**
     * Get the text value.
     *
     * @return the text value
     */
    public String text() {
        return this.text;
    }

    /**
     * Set the text value.
     *
     * @param text the text value to set
     * @return the Phone object itself.
     */
    public Phone withText(String text) {
        this.text = text;
        return this;
    }

    /**
     * Get the index value.
     *
     * @return the index value
     */
    public Integer index() {
        return this.index;
    }

    /**
     * Set the index value.
     *
     * @param index the index value to set
     * @return the Phone object itself.
     */
    public Phone withIndex(Integer index) {
        this.index = index;
        return this;
    }

}
