@Generated(value="io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator", comments="Generated from: io.sphere.sdk.extensions.HttpDestination") public final class HttpDestinationBuilder extends Base implements Builder<HttpDestination>
HttpDestination
.Modifier and Type | Method and Description |
---|---|
HttpDestinationBuilder |
authentication(HttpDestinationAuthentication authentication)
Sets the
authentication property of this builder. |
HttpDestination |
build()
Creates a new instance of
HttpDestination with the values of this builder. |
static HttpDestinationBuilder |
of(HttpDestination template)
Creates a new object initialized with the fields of the template parameter.
|
static HttpDestinationBuilder |
of(String url,
HttpDestinationAuthentication authentication)
Creates a new object initialized with the given values.
|
HttpDestinationBuilder |
url(String url)
Sets the
url property of this builder. |
public HttpDestinationBuilder authentication(HttpDestinationAuthentication authentication)
authentication
property of this builder.authentication
- the value for HttpDestination.getAuthentication()
public HttpDestinationBuilder url(String url)
url
property of this builder.url
- the value for HttpDestination.getUrl()
public HttpDestination build()
HttpDestination
with the values of this builder.build
in interface Builder<HttpDestination>
public static HttpDestinationBuilder of(String url, HttpDestinationAuthentication authentication)
url
- initial value for the HttpDestination.getUrl()
propertyauthentication
- initial value for the HttpDestination.getAuthentication()
propertypublic static HttpDestinationBuilder of(HttpDestination template)
template
- the template