@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)
Add a single LabelMapper entry
|
LabelSchema |
clearLabelMapperEntries()
Removes all the entries added into LabelMapper.
|
LabelSchema |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getLabelMapper()
The label mapper maps the Amazon Fraud Detector supported model classification labels (
FRAUD ,
LEGIT ) to the appropriate event type labels. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported model classification labels (
FRAUD ,
LEGIT ) to the appropriate event type labels. |
String |
toString()
Returns a string representation of this object.
|
LabelSchema |
withLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported model classification labels (
FRAUD ,
LEGIT ) to the appropriate event type labels. |
public Map<String,List<String>> getLabelMapper()
The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD
,
LEGIT
) to the appropriate event type 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 label variants from your event type for a single Amazon Fraud Detector label.
FRAUD
, LEGIT
) to the appropriate event type 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 label variants from your event type for a
single Amazon Fraud Detector label.public void setLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD
,
LEGIT
) to the appropriate event type 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 label variants from your event type for a single Amazon Fraud Detector label.
labelMapper
- The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD
,
LEGIT
) to the appropriate event type 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 label variants from your event type for a
single Amazon Fraud Detector label.public LabelSchema withLabelMapper(Map<String,List<String>> labelMapper)
The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD
,
LEGIT
) to the appropriate event type 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 label variants from your event type for a single Amazon Fraud Detector label.
labelMapper
- The label mapper maps the Amazon Fraud Detector supported model classification labels (FRAUD
,
LEGIT
) to the appropriate event type 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 label variants from your event type 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.