Class ExternalOAuthBuilder
java.lang.Object
com.commercetools.api.models.project.ExternalOAuthBuilder
- All Implemented Interfaces:
Builder<ExternalOAuth>
ExternalOAuthBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ExternalOAuth externalOAuth = ExternalOAuth.builder()
.url("{url}")
.authorizationHeader("{authorizationHeader}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationHeader
(String authorizationHeader) Must not contain any leading or trailing whitespaces.build()
builds ExternalOAuth with checking for non-null required valuesbuilds ExternalOAuth without checking for non-null required valuesMust not contain any leading or trailing whitespaces.getUrl()
URL with authorization header.static ExternalOAuthBuilder
of()
factory method for an instance of ExternalOAuthBuilderstatic ExternalOAuthBuilder
of
(ExternalOAuth template) create builder for ExternalOAuth instanceURL with authorization header.
-
Constructor Details
-
ExternalOAuthBuilder
public ExternalOAuthBuilder()
-
-
Method Details
-
url
URL with authorization header.
- Parameters:
url
- value to be set- Returns:
- Builder
-
authorizationHeader
Must not contain any leading or trailing whitespaces. Partially hidden on retrieval.
- Parameters:
authorizationHeader
- value to be set- Returns:
- Builder
-
getUrl
URL with authorization header.
- Returns:
- url
-
getAuthorizationHeader
Must not contain any leading or trailing whitespaces. Partially hidden on retrieval.
- Returns:
- authorizationHeader
-
build
builds ExternalOAuth with checking for non-null required values- Specified by:
build
in interfaceBuilder<ExternalOAuth>
- Returns:
- ExternalOAuth
-
buildUnchecked
builds ExternalOAuth without checking for non-null required values- Returns:
- ExternalOAuth
-
of
factory method for an instance of ExternalOAuthBuilder- Returns:
- builder
-
of
create builder for ExternalOAuth instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-