com.sccl.attech.modules.sms.request.SmsRequest.java Source code

Java tutorial

Introduction

Here is the source code for com.sccl.attech.modules.sms.request.SmsRequest.java

Source

/**
 * @(#)SmsRequest.java     1.0 12:41:51
 * Copyright 2015 bjth, Inc. All rights reserved.
 * attech PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.sccl.attech.modules.sms.request;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * The Class SmsRequest.
 * 
 * @author zzz
 * @version 1.0,12:41:51
 * @see com.sccl.attech.modules.sms.request
 * @since JDK1.7
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class SmsRequest {

    /** The ID. */
    @XmlElement(required = true)
    private String requestId;

    /** The . */
    @XmlElement(required = true)
    private String type;

    /** The ??. */
    @XmlElement(required = true)
    private String userName;

    /** The ??. */
    @XmlElement(required = true)
    private String password;

    /** The ??. */
    @XmlElement(required = true)
    private String mobiles;

    /** The . */
    @XmlElement(required = true)
    private String content;

    /**
     * ? the ID.
     * 
     * @return the ID
     */
    public String getRequestId() {
        return requestId;
    }

    /**
     *  the ID.
     * 
     * @param requestId the new ID
     */
    public SmsRequest setRequestId(String requestId) {
        this.requestId = requestId;
        return this;
    }

    /**
     * ? the .
     * 
     * @return the 
     */
    public String getType() {
        return type;
    }

    /**
     *  the .
     * 
     * @param type the new 
     */
    public SmsRequest setType(String type) {
        this.type = type;
        return this;
    }

    /**
     * ? the ??.
     * 
     * @return the ??
     */
    public String getUserName() {
        return userName;
    }

    /**
     *  the ??.
     * 
     * @param userName the new ??
     */
    public SmsRequest setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    /**
     * ? the ??.
     * 
     * @return the ??
     */
    public String getPassword() {
        return password;
    }

    /**
     *  the ??.
     * 
     * @param password the new ??
     */
    public SmsRequest setPassword(String password) {
        this.password = password;
        return this;
    }

    /**
     * ? the ??.
     * 
     * @return the ??
     */
    public String getMobiles() {
        return mobiles;
    }

    /**
     *  the ??.
     * 
     * @param mobiles the new ??
     */
    public SmsRequest setMobiles(String mobiles) {
        this.mobiles = mobiles;
        return this;
    }

    /**
     * ? the .
     * 
     * @return the 
     */
    public String getContent() {
        return content;
    }

    /**
     *  the .
     * 
     * @param content the new 
     */
    public SmsRequest setContent(String content) {
        this.content = content;
        return this;
    }

    /**
     * @see java.lang.Object#toString()
     */
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.DEFAULT_STYLE).append("type", this.type)
                .append("content", this.content).append("mobiles", this.mobiles).append("requestId", this.requestId)
                .append("password", this.password).append("userName", this.userName).toString();
    }

}