com.amazonservices.mws.sellers.model.Message Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright 2009-2014 Amazon Services. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*******************************************************************************
* Message
* API Version: 2011-07-01
* Library Version: 2014-09-30
* Generated: Mon Sep 15 19:38:38 GMT 2014
*/
package com.amazonservices.mws.sellers.model;
import com.amazonservices.mws.client.AbstractMwsObject;
import com.amazonservices.mws.client.MwsReader;
import com.amazonservices.mws.client.MwsWriter;
import javax.xml.bind.annotation.*;
/**
* Message complex type.
*
* XML schema:
*
*
* <complexType name="Message">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Locale" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="Message", propOrder={
"locale",
"text"
})
@XmlRootElement(name = "Message")
public class Message extends AbstractMwsObject {
@XmlElement(name="Locale")
private String locale;
@XmlElement(name="Text")
private String text;
/**
* Get the value of Locale.
*
* @return The value of Locale.
*/
public String getLocale() {
return locale;
}
/**
* Set the value of Locale.
*
* @param locale
* The new value to set.
*/
public void setLocale(String locale) {
this.locale = locale;
}
/**
* Check to see if Locale is set.
*
* @return true if Locale is set.
*/
public boolean isSetLocale() {
return locale != null;
}
/**
* Set the value of Locale, return this.
*
* @param locale
* The new value to set.
*
* @return This instance.
*/
public Message withLocale(String locale) {
this.locale = locale;
return this;
}
/**
* Get the value of Text.
*
* @return The value of Text.
*/
public String getText() {
return text;
}
/**
* Set the value of Text.
*
* @param text
* The new value to set.
*/
public void setText(String text) {
this.text = text;
}
/**
* Check to see if Text is set.
*
* @return true if Text is set.
*/
public boolean isSetText() {
return text != null;
}
/**
* Set the value of Text, return this.
*
* @param text
* The new value to set.
*
* @return This instance.
*/
public Message withText(String text) {
this.text = text;
return this;
}
/**
* Read members from a MwsReader.
*
* @param r
* The reader to read from.
*/
@Override
public void readFragmentFrom(MwsReader r) {
locale = r.read("Locale", String.class);
text = r.read("Text", String.class);
}
/**
* Write members to a MwsWriter.
*
* @param w
* The writer to write to.
*/
@Override
public void writeFragmentTo(MwsWriter w) {
w.write("Locale", locale);
w.write("Text", text);
}
/**
* Write tag, xmlns and members to a MwsWriter.
*
* @param w
* The Writer to write to.
*/
@Override
public void writeTo(MwsWriter w) {
w.write("https://mws.amazonservices.com/Sellers/2011-07-01", "Message",this);
}
/** Value constructor. */
public Message(String locale,String text) {
this.locale = locale;
this.text = text;
}
/** Default constructor. */
public Message() {
super();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy