com.fasterxml.jackson.annotation.JsonProperty Java Examples

The following examples show how to use com.fasterxml.jackson.annotation.JsonProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PlanCostEstimate.java    From presto with Apache License 2.0 6 votes vote down vote up
@JsonCreator
public PlanCostEstimate(
        @JsonProperty("cpuCost") double cpuCost,
        @JsonProperty("maxMemory") double maxMemory,
        @JsonProperty("maxMemoryWhenOutputting") double maxMemoryWhenOutputting,
        @JsonProperty("networkCost") double networkCost,
        @JsonProperty("rootNodeLocalCostEstimate") LocalCostEstimate rootNodeLocalCostEstimate)
{
    checkArgument(!(cpuCost < 0), "cpuCost cannot be negative: %s", cpuCost);
    checkArgument(!(maxMemory < 0), "maxMemory cannot be negative: %s", maxMemory);
    checkArgument(!(maxMemoryWhenOutputting < 0), "maxMemoryWhenOutputting cannot be negative: %s", maxMemoryWhenOutputting);
    checkArgument(!(maxMemoryWhenOutputting > maxMemory), "maxMemoryWhenOutputting cannot be greater than maxMemory: %s > %s", maxMemoryWhenOutputting, maxMemory);
    checkArgument(!(networkCost < 0), "networkCost cannot be negative: %s", networkCost);
    this.cpuCost = cpuCost;
    this.maxMemory = maxMemory;
    this.maxMemoryWhenOutputting = maxMemoryWhenOutputting;
    this.networkCost = networkCost;
    this.rootNodeLocalCostEstimate = requireNonNull(rootNodeLocalCostEstimate, "rootNodeLocalCostEstimate is null");
}
 
Example #2
Source File: InfoSchemaGroupScan.java    From dremio-oss with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public InfoSchemaGroupScan(
    @JsonProperty("props") OpProps props,
    @JsonProperty("table") InformationSchemaTable table,
    @JsonProperty("columns") List<SchemaPath> columns,
    @JsonProperty("query") SearchQuery query,
    @JsonProperty("pluginId") StoragePluginId pluginId
    ) {
  super(props);
  this.table = table;
  this.columns = columns;
  this.query = query;
  this.pluginId = pluginId;
}
 
Example #3
Source File: CloneProjectRequest.java    From dependency-track with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public CloneProjectRequest(@JsonProperty(value = "project", required = true) String project,
                           @JsonProperty(value = "version", required = true) String version,
                           @JsonProperty(value = "includeTags") boolean includeTags,
                           @JsonProperty(value = "includeProperties") boolean includeProperties,
                           @JsonProperty(value = "includeDependencies") boolean includeDependencies,
                           @JsonProperty(value = "includeAuditHistory") boolean includeAuditHistory) {
    this.project = project;
    this.version = version;
    this.includeTags = includeTags;
    this.includeProperties = includeProperties;
    this.includeDependencies = includeDependencies;
    this.includeAuditHistory = includeAuditHistory;
}
 
Example #4
Source File: SingularityAppcImage.java    From Singularity with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public SingularityAppcImage(
  @JsonProperty("name") String name,
  @JsonProperty("id") Optional<String> id
) {
  this.name = name;
  this.id = id;
}
 
Example #5
Source File: User.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
/**
 * Get firstName
 * @return firstName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getFirstName() {
  return firstName;
}
 
Example #6
Source File: DataApprovalWorkflow.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty
@JsonSerialize( using = JacksonPeriodTypeSerializer.class )
@JsonDeserialize( using = JacksonPeriodTypeDeserializer.class )
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
@Property( PropertyType.TEXT )
public PeriodType getPeriodType()
{
    return periodType;
}
 
Example #7
Source File: HashToMergeExchange.java    From Bats with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public HashToMergeExchange(@JsonProperty("child") PhysicalOperator child,
    @JsonProperty("expr") LogicalExpression expr,
    @JsonProperty("orderings") List<Ordering> orderExprs) {
  super(child);
  this.distExpr = expr;
  this.orderExprs = orderExprs;
}
 
Example #8
Source File: SamlConfigurationProperties.java    From swagger-aem with Apache License 2.0 5 votes vote down vote up
/**
 **/

@ApiModelProperty(value = "")
@JsonProperty("useEncryption")
public SamlConfigurationPropertyItemsBoolean getUseEncryption() {
  return useEncryption;
}
 
Example #9
Source File: InterpretationComment.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@JsonProperty( "mentions" )
@JacksonXmlElementWrapper( localName = "mentions", namespace = DxfNamespaces.DXF_2_0 )
@JacksonXmlProperty( localName = "mentions", namespace = DxfNamespaces.DXF_2_0 )
public List<Mention> getMentions()
{
    return mentions;
}
 
Example #10
Source File: Scope.java    From identity-api-server with Apache License 2.0 5 votes vote down vote up
@ApiModelProperty(example = "[\"birthdate\",\"gender\"]", required = true, value = "")
@JsonProperty("claims")
@Valid
@NotNull(message = "Property claims cannot be null.")

public List<String> getClaims() {
    return claims;
}
 
Example #11
Source File: OrderPlacedEvent.java    From bookstore-cqrs-example with Apache License 2.0 5 votes vote down vote up
public OrderPlacedEvent(@JsonProperty("aggregateId") OrderId id,
                        @JsonProperty("version") int version,
                        @JsonProperty("timestamp") long timestamp,
                        @JsonProperty("customerInformation") CustomerInformation customerInformation,
                        @JsonProperty("orderLines") List<OrderLine> orderLines,
                        @JsonProperty("orderAmount") long orderAmount) {
  super(id, version, timestamp);
  this.customerInformation = customerInformation;
  this.orderLines = Collections.unmodifiableList(orderLines);
  this.orderAmount = orderAmount;
}
 
Example #12
Source File: SingularityS3SearchRequest.java    From Singularity with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public SingularityS3SearchRequest(
  @JsonProperty("requestsAndDeploys") Map<String, List<String>> requestsAndDeploys,
  @JsonProperty("fileNamePrefixWhitelist") List<String> fileNamePrefixWhitelist,
  @JsonProperty("taskIds") List<String> taskIds,
  @JsonProperty("start") Optional<Long> start,
  @JsonProperty("end") Optional<Long> end,
  @JsonProperty("excludeMetadata") boolean excludeMetadata,
  @JsonProperty("listOnly") boolean listOnly,
  @JsonProperty("maxPerPage") Optional<Integer> maxPerPage,
  @JsonProperty("continuationTokens") Map<String, ContinuationToken> continuationTokens
) {
  this.requestsAndDeploys =
    requestsAndDeploys != null
      ? requestsAndDeploys
      : Collections.<String, List<String>>emptyMap();
  this.fileNamePrefixWhitelist =
    fileNamePrefixWhitelist != null ? fileNamePrefixWhitelist : Collections.emptyList();
  this.taskIds = taskIds != null ? taskIds : Collections.<String>emptyList();
  this.start = start;
  this.end = end;
  this.excludeMetadata = excludeMetadata;
  this.listOnly = listOnly;
  this.maxPerPage = maxPerPage;
  this.continuationTokens =
    continuationTokens != null
      ? continuationTokens
      : Collections.<String, ContinuationToken>emptyMap();
}
 
Example #13
Source File: Category.java    From openapi-generator with Apache License 2.0 5 votes vote down vote up
/**
 * Get name
 * @return name
**/
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)

public String getName() {
  return name;
}
 
Example #14
Source File: LocalFileTableHandle.java    From presto with Apache License 2.0 5 votes vote down vote up
@JsonCreator
public LocalFileTableHandle(
        @JsonProperty("schemaTableName") SchemaTableName schemaTableName,
        @JsonProperty("timestampColumn") OptionalInt timestampColumn,
        @JsonProperty("serverAddressColumn") OptionalInt serverAddressColumn,
        @JsonProperty("constraint") TupleDomain<ColumnHandle> constraint)
{
    this.schemaTableName = requireNonNull(schemaTableName, "schemaTableName is null");
    this.timestampColumn = requireNonNull(timestampColumn, "timestampColumn is null");
    this.serverAddressColumn = requireNonNull(serverAddressColumn, "serverAddressColumn is null");
    this.constraint = requireNonNull(constraint, "constraint is null");
}
 
Example #15
Source File: IntegrationJob.java    From datasync with MIT License 4 votes vote down vote up
@JsonProperty("fileToPublishHasHeaderRow")
public void setFileToPublishHasHeaderRow(boolean has) { fileToPublishHasHeaderRow = has; }
 
Example #16
Source File: Pendenza.java    From govpay with GNU General Public License v3.0 4 votes vote down vote up
@JsonProperty("numeroAvviso")
public String getNumeroAvviso() {
  return this.numeroAvviso;
}
 
Example #17
Source File: Program.java    From dhis2-core with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@JsonProperty
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public AccessLevel getAccessLevel()
{
    return accessLevel;
}
 
Example #18
Source File: AbstractZipkinFactory.java    From dropwizard-zipkin with Apache License 2.0 4 votes vote down vote up
@JsonProperty
public void setServiceHost(String serviceHost) {
  this.serviceHost = serviceHost;
}
 
Example #19
Source File: NeighborIsAsPath.java    From batfish with Apache License 2.0 4 votes vote down vote up
@JsonProperty(PROP_RANGE)
@Nonnull
public List<SubRangeExpr> getRange() {
  return _range;
}
 
Example #20
Source File: GraphQLQueryComplexityInfoDTO.java    From carbon-apimgt with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty(value = "")
@JsonProperty("list")
public List<GraphQLCustomComplexityInfoDTO> getList() {
  return list;
}
 
Example #21
Source File: Profile.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@JsonProperty("PermissionsActivateOrder")
public Boolean getPermissionsActivateOrder() {
    return this.PermissionsActivateOrder;
}
 
Example #22
Source File: Candidate.java    From sdk-rest with MIT License 4 votes vote down vote up
@JsonProperty("localExemptions")
public void setLocalExemptions(Integer localExemptions) {
	this.localExemptions = localExemptions;
}
 
Example #23
Source File: PendenzaIndex.java    From govpay with GNU General Public License v3.0 4 votes vote down vote up
@JsonProperty("stato")
public StatoPendenza getStato() {
  return this.stato;
}
 
Example #24
Source File: MB_MibModule.java    From tr069-simulator with MIT License 4 votes vote down vote up
@JsonProperty
public long getId(){
	return id;
}
 
Example #25
Source File: UIModuleConfig.java    From pnc with Apache License 2.0 4 votes vote down vote up
/**
 * @return String representation of the PNC notification WebSocket URL.
 */
@JsonProperty("pncNotificationsUrl")
public String getPncNotificationsUrl() {
    return pncNotificationsUrl;
}
 
Example #26
Source File: WorkersCompensationRate.java    From sdk-rest with MIT License 4 votes vote down vote up
@JsonProperty("privateLabel")
public PrivateLabel getPrivateLabel() {
    return privateLabel;
}
 
Example #27
Source File: SamlConfigurationProperties.java    From swagger-aem with Apache License 2.0 4 votes vote down vote up
@JsonProperty("keyStorePassword")
public SamlConfigurationPropertyItemsString getKeyStorePassword() {
  return keyStorePassword;
}
 
Example #28
Source File: SearchGrid.java    From dhis2-android-sdk with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@NonNull
@JsonProperty(HEIGHT)
abstract Integer height();
 
Example #29
Source File: IdTokenEncryptionConfiguration.java    From identity-api-server with Apache License 2.0 4 votes vote down vote up
@ApiModelProperty(example = "RSA-OAEP", value = "")
@JsonProperty("algorithm")
@Valid
public String getAlgorithm() {
    return algorithm;
}
 
Example #30
Source File: OperatorStats.java    From presto with Apache License 2.0 4 votes vote down vote up
@JsonProperty
public DataSize getPhysicalInputDataSize()
{
    return physicalInputDataSize;
}