public class CustomAffinity extends Object
Java class for CustomAffinity complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CustomAffinity">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="status" type="{https://adwords.google.com/api/adwords/rm/v201809}CustomAffinityStatus" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="type" type="{https://adwords.google.com/api/adwords/rm/v201809}CustomAffinityType" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="tokens" type="{https://adwords.google.com/api/adwords/rm/v201809}CustomAffinityToken" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected Long |
id |
protected String |
name |
protected CustomAffinityStatus |
status |
protected List<CustomAffinityToken> |
tokens |
protected CustomAffinityType |
type |
| Constructor and Description |
|---|
CustomAffinity() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the value of the description property.
|
Long |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
CustomAffinityStatus |
getStatus()
Gets the value of the status property.
|
List<CustomAffinityToken> |
getTokens()
Gets the value of the tokens property.
|
CustomAffinityType |
getType()
Gets the value of the type property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setStatus(CustomAffinityStatus value)
Sets the value of the status property.
|
void |
setType(CustomAffinityType value)
Sets the value of the type property.
|
protected Long id
protected CustomAffinityStatus status
protected String name
protected CustomAffinityType type
protected String description
protected List<CustomAffinityToken> tokens
public void setId(Long value)
value - allowed object is
Longpublic CustomAffinityStatus getStatus()
CustomAffinityStatuspublic void setStatus(CustomAffinityStatus value)
value - allowed object is
CustomAffinityStatuspublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic CustomAffinityType getType()
CustomAffinityTypepublic void setType(CustomAffinityType value)
value - allowed object is
CustomAffinityTypepublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic List<CustomAffinityToken> getTokens()
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 set method for the tokens property.
For example, to add a new item, do as follows:
getTokens().add(newItem);
Objects of the following type(s) are allowed in the list
CustomAffinityToken
Copyright © 2023. All rights reserved.