public class Resource
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Resource.Builder
RecordBuilder for Resource instances.
|
Modifier and Type | Field and Description |
---|---|
boolean |
channelSubscribable
Deprecated.
|
CharSequence |
contentType
Deprecated.
|
Map<CharSequence,CharSequence> |
customData
Deprecated.
|
int |
hasChildren
Deprecated.
|
long |
lastChanged
Deprecated.
|
CharSequence |
name
Deprecated.
|
boolean |
objectNotifiable
Deprecated.
|
CharSequence |
resourceType
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
CharSequence |
uri
Deprecated.
|
CharSequence |
uuid
Deprecated.
|
Constructor and Description |
---|
Resource()
Default constructor.
|
Resource(CharSequence uri,
CharSequence contentType,
CharSequence name,
Boolean channelSubscribable,
Map<CharSequence,CharSequence> customData,
CharSequence resourceType,
Integer hasChildren,
CharSequence uuid,
Long lastChanged,
Boolean objectNotifiable)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
Boolean |
getChannelSubscribable()
Gets the value of the 'channelSubscribable' field.
|
static org.apache.avro.Schema |
getClassSchema() |
CharSequence |
getContentType()
Gets the value of the 'contentType' field.
|
Map<CharSequence,CharSequence> |
getCustomData()
Gets the value of the 'customData' field.
|
Integer |
getHasChildren()
Gets the value of the 'hasChildren' field.
|
Long |
getLastChanged()
Gets the value of the 'lastChanged' field.
|
CharSequence |
getName()
Gets the value of the 'name' field.
|
Boolean |
getObjectNotifiable()
Gets the value of the 'objectNotifiable' field.
|
CharSequence |
getResourceType()
Gets the value of the 'resourceType' field.
|
org.apache.avro.Schema |
getSchema() |
CharSequence |
getUri()
Gets the value of the 'uri' field.
|
CharSequence |
getUuid()
Gets the value of the 'uuid' field.
|
static Resource.Builder |
newBuilder()
Creates a new Resource RecordBuilder
|
static Resource.Builder |
newBuilder(Resource.Builder other)
Creates a new Resource RecordBuilder by copying an existing Builder
|
static Resource.Builder |
newBuilder(Resource other)
Creates a new Resource RecordBuilder by copying an existing Resource instance
|
void |
put(int field$,
Object value$) |
void |
setChannelSubscribable(Boolean value)
Sets the value of the 'channelSubscribable' field.
|
void |
setContentType(CharSequence value)
Sets the value of the 'contentType' field.
|
void |
setCustomData(Map<CharSequence,CharSequence> value)
Sets the value of the 'customData' field.
|
void |
setHasChildren(Integer value)
Sets the value of the 'hasChildren' field.
|
void |
setLastChanged(Long value)
Sets the value of the 'lastChanged' field.
|
void |
setName(CharSequence value)
Sets the value of the 'name' field.
|
void |
setObjectNotifiable(Boolean value)
Sets the value of the 'objectNotifiable' field.
|
void |
setResourceType(CharSequence value)
Sets the value of the 'resourceType' field.
|
void |
setUri(CharSequence value)
Sets the value of the 'uri' field.
|
void |
setUuid(CharSequence value)
Sets the value of the 'uuid' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public CharSequence uri
@Deprecated public CharSequence contentType
@Deprecated public CharSequence name
@Deprecated public boolean channelSubscribable
@Deprecated public Map<CharSequence,CharSequence> customData
@Deprecated public CharSequence resourceType
@Deprecated public int hasChildren
@Deprecated public CharSequence uuid
@Deprecated public long lastChanged
@Deprecated public boolean objectNotifiable
public Resource()
newBuilder()
.public Resource(CharSequence uri, CharSequence contentType, CharSequence name, Boolean channelSubscribable, Map<CharSequence,CharSequence> customData, CharSequence resourceType, Integer hasChildren, CharSequence uuid, Long lastChanged, Boolean objectNotifiable)
public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public CharSequence getUri()
public void setUri(CharSequence value)
value
- the value to set.public CharSequence getContentType()
public void setContentType(CharSequence value)
value
- the value to set.public CharSequence getName()
public void setName(CharSequence value)
value
- the value to set.public Boolean getChannelSubscribable()
public void setChannelSubscribable(Boolean value)
value
- the value to set.public Map<CharSequence,CharSequence> getCustomData()
public void setCustomData(Map<CharSequence,CharSequence> value)
value
- the value to set.public CharSequence getResourceType()
public void setResourceType(CharSequence value)
value
- the value to set.public Integer getHasChildren()
public void setHasChildren(Integer value)
value
- the value to set.public CharSequence getUuid()
public void setUuid(CharSequence value)
value
- the value to set.public Long getLastChanged()
public void setLastChanged(Long value)
value
- the value to set.public Boolean getObjectNotifiable()
public void setObjectNotifiable(Boolean value)
value
- the value to set.public static Resource.Builder newBuilder()
public static Resource.Builder newBuilder(Resource.Builder other)
public static Resource.Builder newBuilder(Resource other)
Copyright © 2023 Petroware AS - https://petroware.no