类 AttributeDefinition
- java.lang.Object
-
- com.baidubce.services.moladb.model.AttributeDefinition
-
public class AttributeDefinition extends Object
Represents an attribute with name and value type for a table.
-
-
构造器概要
构造器 构造器 说明 AttributeDefinition()Constructs a new AttributeDefinition object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAttributeName()The method get the attribute name of a new attribute.StringgetAttributeType()The method get the attribute value type of a new attribute.voidsetAttributeName(String name)The method set the attribute name for a new attribute.voidsetAttributeType(String type)The method set the attribute value type for a new attribute.protected ObjecttoJsonObj()AttributeDefinitionwithAttributeName(String name)The method set the attribute name for a new attribute.AttributeDefinitionwithAttributeType(String type)The method set the attribute value type for a new attribute.
-
-
-
方法详细资料
-
setAttributeName
public void setAttributeName(String name)
The method set the attribute name for a new attribute.- 参数:
name- The name of the attribute.
-
withAttributeName
public AttributeDefinition withAttributeName(String name)
The method set the attribute name for a new attribute.- 参数:
name- The name of the attribute.
-
getAttributeName
public String getAttributeName()
The method get the attribute name of a new attribute.- 返回:
- The name of the attribute.
-
setAttributeType
public void setAttributeType(String type)
The method set the attribute value type for a new attribute.- 参数:
type- The value type of the attribute, the value is "N","S", or "B".
-
withAttributeType
public AttributeDefinition withAttributeType(String type)
The method set the attribute value type for a new attribute.- 参数:
type- The value type of the attribute, the value is "N","S", or "B".
-
getAttributeType
public String getAttributeType()
The method get the attribute value type of a new attribute.- 返回:
- The value type of the attribute, the value is "N","S", or "B".
-
toJsonObj
protected Object toJsonObj()
-
-