@Test public void testMethods() { assertEquals(Distribution.DOWNLOAD, Distribution.Method.forName(Distribution.DOWNLOAD.toString())); assertEquals(Distribution.CUSTOM, Distribution.Method.forName(Distribution.CUSTOM.toString())); assertEquals(Distribution.STREAMING, Distribution.Method.forName(Distribution.STREAMING.toString())); assertEquals(Distribution.WEBSITE, Distribution.Method.forName(Distribution.WEBSITE.toString())); assertEquals(Distribution.WEBSITE_CDN, Distribution.Method.forName(Distribution.WEBSITE_CDN.toString())); }
@Override public String toString() { final StringBuilder sb = new StringBuilder("Distribution{"); sb.append("id='").append(id).append('\''); sb.append(", reference='").append(reference).append('\''); sb.append(", origin=").append(origin); sb.append(", enabled=").append(enabled); sb.append(", logging=").append(logging); sb.append(", url=").append(url); sb.append(", status='").append(status).append('\''); sb.append('}'); return sb.toString(); }
Distribution { @Override public String toString() { final StringBuilder sb = new StringBuilder("Distribution{"); sb.append("id='").append(id).append('\''); sb.append(", reference='").append(reference).append('\''); sb.append(", origin=").append(origin); sb.append(", enabled=").append(enabled); sb.append(", logging=").append(logging); sb.append(", url=").append(url); sb.append(", status='").append(status).append('\''); sb.append('}'); return sb.toString(); } }
Distribution { @Override public String toString() { final StringBuilder sb = new StringBuilder("Distribution{"); sb.append("id='").append(id).append('\''); sb.append(", reference='").append(reference).append('\''); sb.append(", origin=").append(origin); sb.append(", enabled=").append(enabled); sb.append(", logging=").append(logging); sb.append(", url=").append(url); sb.append(", status='").append(status).append('\''); sb.append('}'); return sb.toString(); } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); }
Distribution { @Override public String toString() { final StringBuilder sb = new StringBuilder("Distribution{"); sb.append("id='").append(id).append('\''); sb.append(", reference='").append(reference).append('\''); sb.append(", origin=").append(origin); sb.append(", enabled=").append(enabled); sb.append(", logging=").append(logging); sb.append(", url=").append(url); sb.append(", status='").append(status).append('\''); sb.append('}'); return sb.toString(); } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); String getId(); void setId(final String id); String getEtag(); String getReference(); URI getOrigin(); boolean isEnabled(); void setEnabled(final boolean enabled); boolean isDeployed(); void setDeployed(final boolean deployed); boolean isLogging(); void setLogging(boolean logging); void setLoggingContainer(final String container); String getLoggingContainer(); void setUrl(final URI url); URI getUrl(); void setSslUrl(final URI sslUrl); URI getSslUrl(); void setStreamingUrl(final URI streamingUrl); URI getStreamingUrl(); URI getiOSstreamingUrl(); void setiOSstreamingUrl(URI iOSstreamingUrl); String getStatus(); void setStatus(final String status); String getInvalidationStatus(); void setInvalidationStatus(final String invalidationStatus); List<Path> getContainers(); void setContainers(final List<Path> containers); String getIndexDocument(); void setIndexDocument(final String indexDocument); String getErrorDocument(); void setErrorDocument(String errorDocument); List<Path> getRootDocuments(); void setRootDocuments(final List<Path> rootDocuments); Method getMethod(); void setMethod(Method method); String[] getCNAMEs(); void setCNAMEs(final String[] cnames); void setEtag(final String etag); void setReference(final String reference); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); }
Distribution { @Override public String toString() { final StringBuilder sb = new StringBuilder("Distribution{"); sb.append("id='").append(id).append('\''); sb.append(", reference='").append(reference).append('\''); sb.append(", origin=").append(origin); sb.append(", enabled=").append(enabled); sb.append(", logging=").append(logging); sb.append(", url=").append(url); sb.append(", status='").append(status).append('\''); sb.append('}'); return sb.toString(); } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); String getId(); void setId(final String id); String getEtag(); String getReference(); URI getOrigin(); boolean isEnabled(); void setEnabled(final boolean enabled); boolean isDeployed(); void setDeployed(final boolean deployed); boolean isLogging(); void setLogging(boolean logging); void setLoggingContainer(final String container); String getLoggingContainer(); void setUrl(final URI url); URI getUrl(); void setSslUrl(final URI sslUrl); URI getSslUrl(); void setStreamingUrl(final URI streamingUrl); URI getStreamingUrl(); URI getiOSstreamingUrl(); void setiOSstreamingUrl(URI iOSstreamingUrl); String getStatus(); void setStatus(final String status); String getInvalidationStatus(); void setInvalidationStatus(final String invalidationStatus); List<Path> getContainers(); void setContainers(final List<Path> containers); String getIndexDocument(); void setIndexDocument(final String indexDocument); String getErrorDocument(); void setErrorDocument(String errorDocument); List<Path> getRootDocuments(); void setRootDocuments(final List<Path> rootDocuments); Method getMethod(); void setMethod(Method method); String[] getCNAMEs(); void setCNAMEs(final String[] cnames); void setEtag(final String etag); void setReference(final String reference); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final Method WEBSITE; static final Method WEBSITE_CDN; static final Method DOWNLOAD; static final Method CUSTOM; static final Method STREAMING; }