mirror of https://github.com/apache/jclouds.git
Converted snake case in parameters
This commit is contained in:
parent
636f7e4dbe
commit
2ae59f58e8
|
@ -40,13 +40,13 @@ public class CDNContainer implements Comparable<CDNContainer> {
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
|
|
||||||
protected String name;
|
protected String name;
|
||||||
protected boolean cdn_enabled;
|
protected boolean cdnEnabled;
|
||||||
protected boolean log_retention;
|
protected boolean logRetention;
|
||||||
protected long ttl;
|
protected long ttl;
|
||||||
protected URI cdn_uri;
|
protected URI cdnUri;
|
||||||
protected URI cdn_ssl_uri;
|
protected URI cdnSslUri;
|
||||||
protected String referrer_acl;
|
protected String referrerAcl;
|
||||||
protected String useragent_acl;
|
protected String useragentAcl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#getName()
|
* @see CDNContainer#getName()
|
||||||
|
@ -59,8 +59,8 @@ public class CDNContainer implements Comparable<CDNContainer> {
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#isCDNEnabled()
|
* @see CDNContainer#isCDNEnabled()
|
||||||
*/
|
*/
|
||||||
public Builder CDNEnabled(boolean cdn_enabled) {
|
public Builder CDNEnabled(boolean cdnEnabled) {
|
||||||
this.cdn_enabled = cdn_enabled;
|
this.cdnEnabled = cdnEnabled;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,45 +75,45 @@ public class CDNContainer implements Comparable<CDNContainer> {
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#getCDNUri()
|
* @see CDNContainer#getCDNUri()
|
||||||
*/
|
*/
|
||||||
public Builder CDNUri(URI cdn_uri) {
|
public Builder CDNUri(URI cdnUri) {
|
||||||
this.cdn_uri = cdn_uri;
|
this.cdnUri = cdnUri;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#getCDNSslUri()
|
* @see CDNContainer#getCDNSslUri()
|
||||||
*/
|
*/
|
||||||
public Builder CDNSslUri(URI cdn_ssl_uri) {
|
public Builder CDNSslUri(URI cdnSslUri) {
|
||||||
this.cdn_ssl_uri = cdn_ssl_uri;
|
this.cdnSslUri = cdnSslUri;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#getReferrerAcl()
|
* @see CDNContainer#getReferrerAcl()
|
||||||
*/
|
*/
|
||||||
public Builder referrerAcl(String referrer_acl) {
|
public Builder referrerAcl(String referrerAcl) {
|
||||||
this.referrer_acl = referrer_acl;
|
this.referrerAcl = referrerAcl;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#getUseragentAcl()
|
* @see CDNContainer#getUseragentAcl()
|
||||||
*/
|
*/
|
||||||
public Builder useragentAcl(String useragent_acl) {
|
public Builder useragentAcl(String useragentAcl) {
|
||||||
this.useragent_acl = useragent_acl;
|
this.useragentAcl = useragentAcl;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see CDNContainer#isLogRetention()
|
* @see CDNContainer#isLogRetention()
|
||||||
*/
|
*/
|
||||||
public Builder logRetention(boolean log_retention) {
|
public Builder logRetention(boolean logRetention) {
|
||||||
this.log_retention = log_retention;
|
this.logRetention = logRetention;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CDNContainer build() {
|
public CDNContainer build() {
|
||||||
return new CDNContainer(name, cdn_enabled, ttl, cdn_uri, cdn_ssl_uri, referrer_acl, useragent_acl, log_retention);
|
return new CDNContainer(name, cdnEnabled, ttl, cdnUri, cdnSslUri, referrerAcl, useragentAcl, logRetention);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Builder fromCDNContainer(CDNContainer in) {
|
public Builder fromCDNContainer(CDNContainer in) {
|
||||||
|
@ -132,9 +132,11 @@ public class CDNContainer implements Comparable<CDNContainer> {
|
||||||
private final String referrerAcl;
|
private final String referrerAcl;
|
||||||
private final String useragentAcl;
|
private final String useragentAcl;
|
||||||
|
|
||||||
@ConstructorProperties({ "name", "cdn_enabled", "ttl", "cdn_uri", "cdn_ssl_uri", "referrer_acl", "useragent_acl", "log_retention" })
|
@ConstructorProperties({ "name", "cdnEnabled", "ttl", "cdnUri", "cdnSslUri", "referrerAcl", "useragentAcl",
|
||||||
|
"logRetention" })
|
||||||
protected CDNContainer(@Nullable String name, boolean cdnEnabled, long ttl, @Nullable URI CDNUri,
|
protected CDNContainer(@Nullable String name, boolean cdnEnabled, long ttl, @Nullable URI CDNUri,
|
||||||
@Nullable URI CDNSslUri, @Nullable String referrerAcl, @Nullable String useragentAcl, boolean logRetention) {
|
@Nullable URI CDNSslUri, @Nullable String referrerAcl, @Nullable String useragentAcl,
|
||||||
|
boolean logRetention) {
|
||||||
this.name = Strings.emptyToNull(name);
|
this.name = Strings.emptyToNull(name);
|
||||||
this.cdnEnabled = cdnEnabled;
|
this.cdnEnabled = cdnEnabled;
|
||||||
this.ttl = ttl;
|
this.ttl = ttl;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[
|
[
|
||||||
{"name":"hpcloud-blobstore.testCDNOperationsContainerWithCDN","cdn_enabled":"false","ttl":3600,"cdn_uri":"http://h10cdf69e2913a87afe9ce721ceb35ca5.cdn.hpcloudsvc.com","cdn_ssl_uri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h10cdf69e2913a87afe9ce721ceb35ca5/aw2","referrer_acl":"","useragent_acl":"", "log_retention":"false"},
|
{"name":"hpcloud-blobstore.testCDNOperationsContainerWithCDN","cdnEnabled":"false","ttl":3600,"cdnUri":"http://h10cdf69e2913a87afe9ce721ceb35ca5.cdn.hpcloudsvc.com","cdnSslUri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h10cdf69e2913a87afe9ce721ceb35ca5/aw2","referrerAcl":"","useragentAcl":"", "logRetention":"false"},
|
||||||
{"name":"hpcloud-blobstore5","cdn_enabled":"true","ttl":28800,"cdn_uri":"http://h0bc2984e4ad8f8bec0ebf5b147c9fe55.cdn.hpcloudsvc.com","cdn_ssl_uri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h0bc2984e4ad8f8bec0ebf5b147c9fe55/aw2","referrer_acl":"","useragent_acl":"", "log_retention":"false"},
|
{"name":"hpcloud-blobstore5","cdnEnabled":"true","ttl":28800,"cdnUri":"http://h0bc2984e4ad8f8bec0ebf5b147c9fe55.cdn.hpcloudsvc.com","cdnSslUri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h0bc2984e4ad8f8bec0ebf5b147c9fe55/aw2","referrerAcl":"","useragentAcl":"", "logRetention":"false"},
|
||||||
{"name":"hpcloud-cfcdnint.testCDNOperationsContainerWithCDN","cdn_enabled":"false","ttl":3600,"cdn_uri":"http://h82d1ae1ee2ada5151c60e33f097294c2.cdn.hpcloudsvc.com","cdn_ssl_uri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h82d1ae1ee2ada5151c60e33f097294c2/aw2","referrer_acl":"","useragent_acl":"", "log_retention":"false"}
|
{"name":"hpcloud-cfcdnint.testCDNOperationsContainerWithCDN","cdnEnabled":"false","ttl":3600,"cdnUri":"http://h82d1ae1ee2ada5151c60e33f097294c2.cdn.hpcloudsvc.com","cdnSslUri":"https://a248.e.akamai.net/cdn.hpcloudsvc.com/h82d1ae1ee2ada5151c60e33f097294c2/aw2","referrerAcl":"","useragentAcl":"", "logRetention":"false"}
|
||||||
]
|
]
|
Loading…
Reference in New Issue