// Copyright 2016 Google Inc. 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License 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. package com.google.api.ads.adwords.jaxws.v201609.rm; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * * Operand containing user list id and members to be added or removed. * * * <p>Java class for MutateMembersOperand complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="MutateMembersOperand"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="userListId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="dataType" type="{https://adwords.google.com/api/adwords/rm/v201609}MutateMembersOperand.DataType" minOccurs="0"/> * <element name="removeAll" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="members" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MutateMembersOperand", propOrder = { "userListId", "dataType", "removeAll", "members" }) public class MutateMembersOperand { protected Long userListId; @XmlSchemaType(name = "string") protected MutateMembersOperandDataType dataType; protected Boolean removeAll; protected List<String> members; /** * Gets the value of the userListId property. * * @return * possible object is * {@link Long } * */ public Long getUserListId() { return userListId; } /** * Sets the value of the userListId property. * * @param value * allowed object is * {@link Long } * */ public void setUserListId(Long value) { this.userListId = value; } /** * Gets the value of the dataType property. * * @return * possible object is * {@link MutateMembersOperandDataType } * */ public MutateMembersOperandDataType getDataType() { return dataType; } /** * Sets the value of the dataType property. * * @param value * allowed object is * {@link MutateMembersOperandDataType } * */ public void setDataType(MutateMembersOperandDataType value) { this.dataType = value; } /** * Gets the value of the removeAll property. * * @return * possible object is * {@link Boolean } * */ public Boolean isRemoveAll() { return removeAll; } /** * Sets the value of the removeAll property. * * @param value * allowed object is * {@link Boolean } * */ public void setRemoveAll(Boolean value) { this.removeAll = value; } /** * Gets the value of the members property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the members property. * * <p> * For example, to add a new item, do as follows: * <pre> * getMembers().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getMembers() { if (members == null) { members = new ArrayList<String>(); } return this.members; } }