io.sphere.sdk.extensions.AuthorizationHeaderAuthenticationBuilder Maven / Gradle / Ivy
package io.sphere.sdk.extensions;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import java.lang.String;
import javax.annotation.Generated;
/**
* Builder for {@link AuthorizationHeaderAuthentication}.
*/
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator",
comments = "Generated from: io.sphere.sdk.extensions.AuthorizationHeaderAuthentication"
)
public final class AuthorizationHeaderAuthenticationBuilder extends Base implements Builder {
private String headerValue;
AuthorizationHeaderAuthenticationBuilder() {
}
AuthorizationHeaderAuthenticationBuilder(final String headerValue) {
this.headerValue = headerValue;
}
/**
* Sets the {@code headerValue} property of this builder.
*
* @param headerValue the value for {@link AuthorizationHeaderAuthentication#getHeaderValue()}
* @return this builder
*/
public AuthorizationHeaderAuthenticationBuilder headerValue(final String headerValue) {
this.headerValue = headerValue;
return this;
}
/**
* Creates a new instance of {@code AuthorizationHeaderAuthentication} with the values of this builder.
*
* @return the instance
*/
public AuthorizationHeaderAuthentication build() {
return new AuthorizationHeaderAuthenticationImpl(headerValue);
}
/**
* Creates a new object initialized with the given values.
*
* @param headerValue initial value for the {@link AuthorizationHeaderAuthentication#getHeaderValue()} property
* @return new object initialized with the given values
*/
public static AuthorizationHeaderAuthenticationBuilder of(final String headerValue) {
return new AuthorizationHeaderAuthenticationBuilder(headerValue);
}
/**
* Creates a new object initialized with the fields of the template parameter.
*
* @param template the template
* @return a new object initialized from the template
*/
public static AuthorizationHeaderAuthenticationBuilder of(final AuthorizationHeaderAuthentication template) {
return new AuthorizationHeaderAuthenticationBuilder(template.getHeaderValue());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy