@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LabelSchema extends Object implements Serializable, Cloneable, StructuredPojo
The label schema.
Constructor and Description |
---|
LabelSchema() |
Modifier and Type | Method and Description |
---|---|
LabelSchema |
addLabelMapperEntry(String key,
List<String> value) |
LabelSchema |
clearLabelMapperEntries()
Removes all the entries added into LabelMapper.
|
LabelSchema |
clone() |
boolean |
equals(Object obj) |
String |
getLabelKey()
The label key.
|
Map<String,List<String>> |
getLabelMapper()
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLabelKey(String labelKey)
The label key.
|
void |
setLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels.
|
String |
toString()
Returns a string representation of this object.
|
LabelSchema |
withLabelKey(String labelKey)
The label key.
|
LabelSchema |
withLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels.
|
public void setLabelKey(String labelKey)
The label key.
labelKey
- The label key.public String getLabelKey()
The label key.
public LabelSchema withLabelKey(String labelKey)
The label key.
labelKey
- The label key.public Map<String,List<String>> getLabelMapper()
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For example, if
"FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels, this mapper could be:
{"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the mapper is
a list, because you may have multiple variants for a single Amazon Fraud Detector label.
"FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels,
this mapper could be: {"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the
mapper is a list, because you may have multiple variants for a single Amazon Fraud Detector label.public void setLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For example, if
"FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels, this mapper could be:
{"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the mapper is
a list, because you may have multiple variants for a single Amazon Fraud Detector label.
labelMapper
- The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For
example, if "FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels, this
mapper could be: {"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the
mapper is a list, because you may have multiple variants for a single Amazon Fraud Detector label.public LabelSchema withLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For example, if
"FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels, this mapper could be:
{"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the mapper is
a list, because you may have multiple variants for a single Amazon Fraud Detector label.
labelMapper
- The label mapper maps the Amazon Fraud Detector supported label to the appropriate source labels. For
example, if "FRAUD"
and "LEGIT"
are Amazon Fraud Detector supported labels, this
mapper could be: {"FRAUD" => ["0"]
, "LEGIT" => ["1"]} or
{"FRAUD" => ["false"], "LEGIT" => ["true"]}
or
{"FRAUD" => ["fraud", "abuse"], "LEGIT" => ["legit", "safe"]}
. The value part of the
mapper is a list, because you may have multiple variants for a single Amazon Fraud Detector label.public LabelSchema addLabelMapperEntry(String key, List<String> value)
public LabelSchema clearLabelMapperEntries()
public String toString()
toString
in class Object
Object.toString()
public LabelSchema clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.