@Test public void testNormalizedExcludesEmptyStrings() throws Exception { final Job j = Job.newBuilder().setName("x").setImage("x").setVersion("x") .setRegistrationDomain("").build(); assertFalse(Json.asNormalizedString(j).contains("registrationDomain")); }
public static Builder newBuilder() { return new Builder(); }
Job extends Descriptor implements Comparable<Job> { public static Builder newBuilder() { return new Builder(); } }
Job extends Descriptor implements Comparable<Job> { public static Builder newBuilder() { return new Builder(); } Job(
      @JsonProperty("id") final JobId id,
      @JsonProperty("image") final String image,
      @JsonProperty("hostname") final String hostname,
      @JsonProperty("created") @Nullable final Long created,
      @JsonProperty("command") @Nullable final List<String> command,
      @JsonProperty("env") @Nullable final Map<String, String> env,
      @JsonProperty("resources") @Nullable final Resources resources,
      @JsonProperty("ports") @Nullable final Map<String, PortMapping> ports,
      @JsonProperty("registration") @Nullable final Map<ServiceEndpoint, ServicePorts> registration,
      @JsonProperty("gracePeriod") @Nullable final Integer gracePeriod,
      @JsonProperty("volumes") @Nullable final Map<String, String> volumes,
      @JsonProperty("expires") @Nullable final Date expires,
      @JsonProperty("registrationDomain") @Nullable String registrationDomain,
      @JsonProperty("creatingUser") @Nullable String creatingUser,
      @JsonProperty("token") @Nullable String token,
      @JsonProperty("healthCheck") @Nullable HealthCheck healthCheck,
      @JsonProperty("securityOpt") @Nullable final List<String> securityOpt,
      @JsonProperty("networkMode") @Nullable final String networkMode,
      @JsonProperty("metadata") @Nullable final Map<String, String> metadata,
      @JsonProperty("addCapabilities") @Nullable final Set<String> addCapabilities,
      @JsonProperty("dropCapabilities") @Nullable final Set<String> dropCapabilities,
      @JsonProperty("labels") @Nullable final Map<String, String> labels,
      @JsonProperty("secondsToWaitBeforeKill") @Nullable final Integer secondsToWaitBeforeKill,
      @JsonProperty("ramdisks") @Nullable final Map<String, String> ramdisks,
      @JsonProperty("rolloutOptions") @Nullable final RolloutOptions rolloutOptions,
      @JsonProperty("runtime") @Nullable final String runtime); private  Job(final JobId id, final Builder.Parameters pm); }
Job extends Descriptor implements Comparable<Job> { public static Builder newBuilder() { return new Builder(); } Job(
      @JsonProperty("id") final JobId id,
      @JsonProperty("image") final String image,
      @JsonProperty("hostname") final String hostname,
      @JsonProperty("created") @Nullable final Long created,
      @JsonProperty("command") @Nullable final List<String> command,
      @JsonProperty("env") @Nullable final Map<String, String> env,
      @JsonProperty("resources") @Nullable final Resources resources,
      @JsonProperty("ports") @Nullable final Map<String, PortMapping> ports,
      @JsonProperty("registration") @Nullable final Map<ServiceEndpoint, ServicePorts> registration,
      @JsonProperty("gracePeriod") @Nullable final Integer gracePeriod,
      @JsonProperty("volumes") @Nullable final Map<String, String> volumes,
      @JsonProperty("expires") @Nullable final Date expires,
      @JsonProperty("registrationDomain") @Nullable String registrationDomain,
      @JsonProperty("creatingUser") @Nullable String creatingUser,
      @JsonProperty("token") @Nullable String token,
      @JsonProperty("healthCheck") @Nullable HealthCheck healthCheck,
      @JsonProperty("securityOpt") @Nullable final List<String> securityOpt,
      @JsonProperty("networkMode") @Nullable final String networkMode,
      @JsonProperty("metadata") @Nullable final Map<String, String> metadata,
      @JsonProperty("addCapabilities") @Nullable final Set<String> addCapabilities,
      @JsonProperty("dropCapabilities") @Nullable final Set<String> dropCapabilities,
      @JsonProperty("labels") @Nullable final Map<String, String> labels,
      @JsonProperty("secondsToWaitBeforeKill") @Nullable final Integer secondsToWaitBeforeKill,
      @JsonProperty("ramdisks") @Nullable final Map<String, String> ramdisks,
      @JsonProperty("rolloutOptions") @Nullable final RolloutOptions rolloutOptions,
      @JsonProperty("runtime") @Nullable final String runtime); private  Job(final JobId id, final Builder.Parameters pm); JobId getId(); String getImage(); String getHostname(); Long getCreated(); List<String> getCommand(); Map<String, String> getEnv(); Resources getResources(); Map<String, PortMapping> getPorts(); Map<ServiceEndpoint, ServicePorts> getRegistration(); String getRegistrationDomain(); Integer getGracePeriod(); Map<String, String> getVolumes(); Date getExpires(); String getCreatingUser(); String getToken(); HealthCheck getHealthCheck(); List<String> getSecurityOpt(); String getNetworkMode(); Map<String, String> getMetadata(); Set<String> getAddCapabilities(); Set<String> getDropCapabilities(); Map<String, String> getLabels(); Integer getSecondsToWaitBeforeKill(); Map<String, String> getRamdisks(); RolloutOptions getRolloutOptions(); String getRuntime(); boolean hasExternalPorts(); static Builder newBuilder(); @Override int compareTo(@NotNull final Job job); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); Builder toBuilder(); }
Job extends Descriptor implements Comparable<Job> { public static Builder newBuilder() { return new Builder(); } Job(
      @JsonProperty("id") final JobId id,
      @JsonProperty("image") final String image,
      @JsonProperty("hostname") final String hostname,
      @JsonProperty("created") @Nullable final Long created,
      @JsonProperty("command") @Nullable final List<String> command,
      @JsonProperty("env") @Nullable final Map<String, String> env,
      @JsonProperty("resources") @Nullable final Resources resources,
      @JsonProperty("ports") @Nullable final Map<String, PortMapping> ports,
      @JsonProperty("registration") @Nullable final Map<ServiceEndpoint, ServicePorts> registration,
      @JsonProperty("gracePeriod") @Nullable final Integer gracePeriod,
      @JsonProperty("volumes") @Nullable final Map<String, String> volumes,
      @JsonProperty("expires") @Nullable final Date expires,
      @JsonProperty("registrationDomain") @Nullable String registrationDomain,
      @JsonProperty("creatingUser") @Nullable String creatingUser,
      @JsonProperty("token") @Nullable String token,
      @JsonProperty("healthCheck") @Nullable HealthCheck healthCheck,
      @JsonProperty("securityOpt") @Nullable final List<String> securityOpt,
      @JsonProperty("networkMode") @Nullable final String networkMode,
      @JsonProperty("metadata") @Nullable final Map<String, String> metadata,
      @JsonProperty("addCapabilities") @Nullable final Set<String> addCapabilities,
      @JsonProperty("dropCapabilities") @Nullable final Set<String> dropCapabilities,
      @JsonProperty("labels") @Nullable final Map<String, String> labels,
      @JsonProperty("secondsToWaitBeforeKill") @Nullable final Integer secondsToWaitBeforeKill,
      @JsonProperty("ramdisks") @Nullable final Map<String, String> ramdisks,
      @JsonProperty("rolloutOptions") @Nullable final RolloutOptions rolloutOptions,
      @JsonProperty("runtime") @Nullable final String runtime); private  Job(final JobId id, final Builder.Parameters pm); JobId getId(); String getImage(); String getHostname(); Long getCreated(); List<String> getCommand(); Map<String, String> getEnv(); Resources getResources(); Map<String, PortMapping> getPorts(); Map<ServiceEndpoint, ServicePorts> getRegistration(); String getRegistrationDomain(); Integer getGracePeriod(); Map<String, String> getVolumes(); Date getExpires(); String getCreatingUser(); String getToken(); HealthCheck getHealthCheck(); List<String> getSecurityOpt(); String getNetworkMode(); Map<String, String> getMetadata(); Set<String> getAddCapabilities(); Set<String> getDropCapabilities(); Map<String, String> getLabels(); Integer getSecondsToWaitBeforeKill(); Map<String, String> getRamdisks(); RolloutOptions getRolloutOptions(); String getRuntime(); boolean hasExternalPorts(); static Builder newBuilder(); @Override int compareTo(@NotNull final Job job); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); Builder toBuilder(); static final Map<String, String> EMPTY_ENV; static final Resources EMPTY_RESOURCES; static final Map<String, PortMapping> EMPTY_PORTS; static final Long EMPTY_CREATED; static final List<String> EMPTY_COMMAND; static final Map<ServiceEndpoint, ServicePorts> EMPTY_REGISTRATION; static final Integer EMPTY_GRACE_PERIOD; static final Map<String, String> EMPTY_VOLUMES; static final String EMPTY_MOUNT; static final Date EMPTY_EXPIRES; static final String EMPTY_REGISTRATION_DOMAIN; static final String EMPTY_CREATING_USER; static final String EMPTY_TOKEN; static final HealthCheck EMPTY_HEALTH_CHECK; static final List<String> EMPTY_SECURITY_OPT; static final String DEFAULT_NETWORK_MODE; static final String EMPTY_HOSTNAME; static final Map<String, String> EMPTY_METADATA; static final Set<String> EMPTY_CAPS; static final Map<String, String> EMPTY_LABELS; static final Integer EMPTY_SECONDS_TO_WAIT; static final Map<String, String> EMPTY_RAMDISKS; static final RolloutOptions EMPTY_ROLLOUT_OPTIONS; static final String EMPTY_RUNTIME; }