com.amazonservices.mws.subscriptions.model.SubscriptionList 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.
*******************************************************************************
* Subscription List
* API Version: 2013-07-01
* Library Version: 2014-09-30
* Generated: Tue Sep 16 08:58:06 PDT 2014
*/
package com.amazonservices.mws.subscriptions.model;
import com.amazonservices.mws.client.AbstractMwsObject;
import com.amazonservices.mws.client.MwsReader;
import com.amazonservices.mws.client.MwsWriter;
import java.util.ArrayList;
import java.util.List;
/**
* SubscriptionList complex type.
*
* XML schema:
*
*
* <complexType name="SubscriptionList">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="member" type="{http://mws.amazonservices.com/schema/Subscriptions/2013-07-01}Subscription" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*/
public class SubscriptionList extends AbstractMwsObject {
private List member;
/**
* Get the value of member.
*
* @return The value of member.
*/
public List getMember() {
if (member==null) {
member = new ArrayList();
}
return member;
}
/**
* Set the value of member.
*
* @param member
* The new value to set.
*/
public void setMember(List member) {
this.member = member;
}
/**
* Clear member.
*/
public void unsetMember() {
this.member = null;
}
/**
* Check to see if member is set.
*
* @return true if member is set.
*/
public boolean isSetMember() {
return member != null && !member.isEmpty();
}
/**
* Add values for member, return this.
*
* @param values
* New values to add.
*
* @return This instance.
*/
public SubscriptionList withMember(Subscription... values) {
List list = getMember();
for (Subscription value : values) {
list.add(value);
}
return this;
}
/**
* Read members from a MwsReader.
*
* @param r
* The reader to read from.
*/
@Override
public void readFragmentFrom(MwsReader r) {
member = r.readList("member", Subscription.class);
}
/**
* Write members to a MwsWriter.
*
* @param w
* The writer to write to.
*/
@Override
public void writeFragmentTo(MwsWriter w) {
w.writeList("member", member);
}
/**
* Write tag, xmlns and members to a MwsWriter.
*
* @param w
* The Writer to write to.
*/
@Override
public void writeTo(MwsWriter w) {
w.write("http://mws.amazonservices.com/schema/Subscriptions/2013-07-01", "SubscriptionList",this);
}
/** Value constructor. */
public SubscriptionList(List member) {
this.member = member;
}
/** Default constructor. */
public SubscriptionList() {
super();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy