本文整理汇总了Java中com.fasterxml.jackson.annotation.JsonProperty类的典型用法代码示例。如果您正苦于以下问题:Java JsonProperty类的具体用法?Java JsonProperty怎么用?Java JsonProperty使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonProperty类属于com.fasterxml.jackson.annotation包,在下文中一共展示了JsonProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GenerateBatchPositionResults
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public GenerateBatchPositionResults(@JsonProperty("buildingIdentifier") Long buildingIdentifier,
@JsonProperty("evaluationFile") Long evalFileIdentifier,
@JsonProperty(value = "projectIdentifier", required = false) long projectIdentifier,
@JsonProperty("radioMapFiles") long[] radioMapFileIdentifiers,
@JsonProperty("algorithmType") String algorithmType,
@JsonProperty("projectParameters") Set<SaveNewProjectParameters> projectParameters,
@JsonProperty("withPixelPosition") boolean withPixelPosition) {
this.buildingIdentifier = buildingIdentifier;
this.evalFileIdentifier = evalFileIdentifier;
this.projectIdentifier = projectIdentifier;
this.radioMapFileIdentifiers = radioMapFileIdentifiers;
this.algorithmType = algorithmType;
this.projectParameters = projectParameters;
this.withPixelPosition = withPixelPosition;
}
示例2: MultipleMirrorConfig
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
MultipleMirrorConfig(
@JsonProperty("enabled") Boolean enabled,
@JsonProperty("defaultSchedule") String defaultSchedule,
@JsonProperty(value = "defaultDirection", required = true) MirrorDirection defaultDirection,
@JsonProperty("defaultLocalPath") String defaultLocalPath,
@JsonProperty(value = "includes", required = true)
@JsonDeserialize(contentAs = MirrorInclude.class)
Iterable<MirrorInclude> includes,
@JsonProperty("excludes")
@JsonDeserialize(contentAs = Pattern.class)
Iterable<Pattern> excludes) {
super(firstNonNull(enabled, true));
this.defaultSchedule = cronParser.parse(firstNonNull(defaultSchedule, DEFAULT_SCHEDULE));
this.defaultDirection = requireNonNull(defaultDirection, "defaultDirection");
this.defaultLocalPath = firstNonNull(defaultLocalPath, "/");
this.includes = ImmutableList.copyOf(requireNonNullElements(includes, "includes"));
if (excludes != null) {
this.excludes = ImmutableList.copyOf(requireNonNullElements(excludes, "excludes"));
} else {
this.excludes = Collections.emptyList();
}
}
示例3: ProblemResponse
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
@Builder(toBuilder = true)
public ProblemResponse(
@JsonProperty("title") String title,
@JsonProperty("detail") String detail,
@JsonProperty("status") int status,
@JsonProperty("incidentReferenceId") String incidentReferenceId,
@JsonProperty("suggestedUserMessageInDetail") boolean suggestedUserMessageInDetail,
@JsonProperty("type") String type,
@Singular("context") @JsonProperty("context") Map<String, String> context)
{
this.title = title;
this.detail = detail;
this.status = status;
this.incidentReferenceId = incidentReferenceId;
this.suggestedUserMessageInDetail = suggestedUserMessageInDetail;
this.type = type;
this.context = context;
}
示例4: getOngoingUpdates
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
* @return the ongoingUpdates
*/
@JsonProperty("ongoingUpdates")
public BlockingQueue<Update> getOngoingUpdates() {
this.rLock.lock();
try {
return this.ongoingUpdates;
} finally {
this.rLock.unlock();
}
}
示例5: getActions
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("actions")
public Link getActions() {
return actions;
}
示例6: getAvailableSwapSpace
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("availableSwapSpace")
public Integer getAvailableSwapSpace() {
return availableSwapSpace;
}
示例7: Contact
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
* @param phoneNumber
* Contact's phone number
* @param firstName
* Contact's first name
* @param lastName
* Optional. Contact's last name
* @param userID
* Optional. Contact's user identifier in Telegram
*/
public Contact(
@JsonProperty("phone_number") String phoneNumber,
@JsonProperty("first_name") String firstName,
@JsonProperty("last_name") String lastName,
@JsonProperty("user_id") Long userID) {
Preconditions.notEmptyString(phoneNumber, "Phone number should be provided.");
this.phoneNumber = phoneNumber;
Preconditions.notEmptyString(phoneNumber, "First name should be provided.");
this.firstName = firstName;
this.lastName = lastName;
this.userID = userID;
}
示例8: ConfigValueInfo
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public ConfigValueInfo(
@JsonProperty("name") String name,
@JsonProperty("value") String value,
@JsonProperty("recommended_values") List<String> recommendedValues,
@JsonProperty("errors") List<String> errors,
@JsonProperty("visible") boolean visible) {
this.name = name;
this.value = value;
this.recommendedValues = recommendedValues;
this.errors = errors;
this.visible = visible;
}
示例9: getIconClassName
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("iconClassName")
public String getIconClassName() {
return iconClassName;
}
示例10: TiDBInfo
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public TiDBInfo(
@JsonProperty("id") long id,
@JsonProperty("db_name") CIStr name,
@JsonProperty("charset") String charset,
@JsonProperty("collate") String collate,
@JsonProperty("-") List<TiTableInfo> tables,
@JsonProperty("state") int schemaState) {
this.id = id;
this.name = name.getL();
this.charset = charset;
this.collate = collate;
this.tables = tables;
this.schemaState = SchemaState.fromValue(schemaState);
}
示例11: getPropertyClass
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("_class")
public String getPropertyClass() {
return propertyClass;
}
示例12: HBaseStoragePluginConfig
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public HBaseStoragePluginConfig(@JsonProperty("config") Map<String, String> props, @JsonProperty("size.calculator.enabled") Boolean sizeCalculatorEnabled) {
this.config = props;
if (config == null) {
config = Maps.newHashMap();
}
logger.debug("Initializing HBase StoragePlugin configuration with zookeeper quorum '{}', port '{}'.",
config.get(HConstants.ZOOKEEPER_QUORUM), config.get(HBASE_ZOOKEEPER_PORT));
if (sizeCalculatorEnabled == null) {
this.sizeCalculatorEnabled = false;
} else {
this.sizeCalculatorEnabled = sizeCalculatorEnabled;
}
}
示例13: S3
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
@JsonCreator
public S3(
@JsonProperty("bucket") String bucket,
@JsonProperty("region") String region,
@JsonProperty("accessKey") String accessKey,
@JsonProperty("secretKey") String secretKey,
@JsonProperty("minimumSegmentSize") int minimumSegmentSize) {
this.bucket = bucket;
this.region = region;
this.accessKey = accessKey;
this.secretKey = secretKey;
this.minimumSegmentSize = minimumSegmentSize;
}
示例14: getLastUnstableBuild
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("lastUnstableBuild")
public String getLastUnstableBuild() {
return lastUnstableBuild;
}
示例15: getWeatherScore
import com.fasterxml.jackson.annotation.JsonProperty; //导入依赖的package包/类
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("weatherScore")
public Integer getWeatherScore() {
return weatherScore;
}