@JsonCreator public ResourceTemplateMetaData(@JsonProperty("templateName") final String templateName, @JsonProperty("contentType") final MediaType contentType, @JsonProperty("deployFileName") final String deployFileName, @JsonProperty("deployPath") final String deployPath, @JsonProperty("entity") final Entity entity, @JsonProperty("unpack") final Boolean unpack, @JsonProperty("overwrite") Boolean overwrite, @JsonProperty("hotDeploy") Boolean hotDeploy) { this.templateName = templateName; this.contentType = contentType; this.deployFileName = deployFileName; this.deployPath = deployPath; this.entity = entity; this.unpack = unpack == null ? false : unpack; this.overwrite = overwrite == null ? true : overwrite; this.hotDeploy = hotDeploy == null ? false : hotDeploy; }
@Override public void propertyField(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) { field.annotate(JsonProperty.class).param("value", propertyName); if (field.type().erasure().equals(field.type().owner().ref(Set.class))) { field.annotate(JsonDeserialize.class).param("as", LinkedHashSet.class); } if (propertyNode.has("javaJsonView")) { field.annotate(JsonView.class).param( "value", field.type().owner().ref(propertyNode.get("javaJsonView").asText())); } }
@JsonCreator public Alert(@JsonProperty("token") String token, @JsonProperty("type") SetAlertPayload.AlertType type, @JsonProperty("scheduledTime") String scheduledTime) { this.token = token; this.type = type; this.scheduledTime = scheduledTime; }
/** * Construct an instance * @param path full path * @param time time * @param size entry size * @param children number of children */ public RegistryPathStatus( @JsonProperty("path") String path, @JsonProperty("time") long time, @JsonProperty("size") long size, @JsonProperty("children") int children) { this.path = path; this.time = time; this.size = size; this.children = children; }
/** * Instantiates a new worker metadata. * * @param workerId the worker id * @param listenAddress the listen address * @param listenPort the listen port * @param serviceName the service name */ public MetaData(@JsonProperty UUID workerId, @JsonProperty String listenAddress, @JsonProperty int listenPort, @JsonProperty String serviceName) { this.workerId = workerId; this.listenAddress = listenAddress; this.listenPort = listenPort; this.serviceName = serviceName; }
@JsonCreator public Entity(@JsonProperty("type") final String type, @JsonProperty("group") final String group, @JsonProperty("target") final String target, @JsonProperty("parentName") final String parentName, @JsonProperty("deployToJvms") final Boolean deployToJvms) { this.type = type; this.group = group; this.target = target; this.parentName = parentName; this.deployToJvms = deployToJvms == null ? true : deployToJvms; }
@JsonCreator public TierInfo( @JsonProperty("preemptible") boolean preemptible, @JsonProperty("revocable") boolean revocable) { this.preemptible = preemptible; this.revocable = revocable; }
@Override public void propertyGetter(JMethod getter, String propertyName) { getter.annotate(JsonProperty.class).param("value", propertyName); }
@Override public void propertySetter(JMethod setter, String propertyName) { setter.annotate(JsonProperty.class).param("value", propertyName); }
public Config(@JsonProperty("compatibility") String compatibilityLevel) { this.compatibilityLevel = compatibilityLevel; }
@JsonProperty("compatibility") public String getCompatibilityLevel() { return compatibilityLevel; }
@JsonProperty("compatibility") public void setCompatibilityLevel(String compatibilityLevel) { this.compatibilityLevel = compatibilityLevel; }
@JsonProperty("scheduledTime") public void setScheduledTime(String dateTime) { scheduledTime = dateTime; }
@JsonProperty("connectionName") public String getConnectionName() { return connectionName; }
@JsonProperty("connectionString") public String getConnectionString() { return connectionString; }
@JsonProperty("user") public String getUser() { return user; }
/** * @return credentials for login into Keystone */ @JsonProperty("RAX-KSKEY:apiKeyCredentials") public ApiKeyCredentials getApiKeyCredentials() { return apiKeyCredentials; }
@JsonProperty public Set<JsonPokemon> getPokemons() { return pokemons; }
@JsonProperty("blockNumber") public String getBlockNumber() { return blockNumber; }
@JsonProperty("blockNumber") public void setBlockNumber(String blockNumber) { this.blockNumber = blockNumber; }
@JsonProperty("timeStamp") public String getTimeStamp() { return timeStamp; }
@JsonProperty("timeStamp") public void setTimeStamp(String timeStamp) { this.timeStamp = timeStamp; }
@JsonProperty("hash") public String getHash() { return hash; }
@JsonProperty("hash") public void setHash(String hash) { this.hash = hash; }
@JsonProperty("nonce") public String getNonce() { return nonce; }
@JsonProperty("nonce") public void setNonce(String nonce) { this.nonce = nonce; }
@JsonProperty("blockHash") public String getBlockHash() { return blockHash; }
@JsonProperty("blockHash") public void setBlockHash(String blockHash) { this.blockHash = blockHash; }
@JsonProperty("transactionIndex") public String getTransactionIndex() { return transactionIndex; }
@JsonProperty("transactionIndex") public void setTransactionIndex(String transactionIndex) { this.transactionIndex = transactionIndex; }
@JsonProperty("from") public String getFrom() { return from; }
@JsonProperty("from") public void setFrom(String from) { this.from = from; }
@JsonProperty("to") public String getTo() { return to; }
@JsonProperty("to") public void setTo(String to) { this.to = to; }
@JsonProperty("value") public String getValue() { return value; }
@JsonProperty("value") public void setValue(String value) { this.value = value; }
@JsonProperty("gas") public String getGas() { return gas; }
@JsonProperty("gas") public void setGas(String gas) { this.gas = gas; }