Class ProjectSetExternalOAuthActionBuilder
java.lang.Object
com.commercetools.api.models.project.ProjectSetExternalOAuthActionBuilder
- All Implemented Interfaces:
Builder<ProjectSetExternalOAuthAction>
public class ProjectSetExternalOAuthActionBuilder
extends Object
implements Builder<ProjectSetExternalOAuthAction>
ProjectSetExternalOAuthActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectSetExternalOAuthAction projectSetExternalOAuthAction = ProjectSetExternalOAuthAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectSetExternalOAuthAction with checking for non-null required valuesbuilds ProjectSetExternalOAuthAction without checking for non-null required valuesexternalOAuth
(ExternalOAuth externalOAuth) Value to set.Value to set.Value to set.of()
factory method for an instance of ProjectSetExternalOAuthActionBuilderof
(ProjectSetExternalOAuthAction template) create builder for ProjectSetExternalOAuthAction instanceValue to set.
-
Constructor Details
-
ProjectSetExternalOAuthActionBuilder
public ProjectSetExternalOAuthActionBuilder()
-
-
Method Details
-
externalOAuth
public ProjectSetExternalOAuthActionBuilder externalOAuth(Function<ExternalOAuthBuilder, ExternalOAuthBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalOAuth value- Returns:
- Builder
-
withExternalOAuth
public ProjectSetExternalOAuthActionBuilder withExternalOAuth(Function<ExternalOAuthBuilder, ExternalOAuth> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the externalOAuth value- Returns:
- Builder
-
externalOAuth
Value to set. If empty, any existing value will be removed.
- Parameters:
externalOAuth
- value to be set- Returns:
- Builder
-
getExternalOAuth
Value to set. If empty, any existing value will be removed.
- Returns:
- externalOAuth
-
build
builds ProjectSetExternalOAuthAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectSetExternalOAuthAction>
- Returns:
- ProjectSetExternalOAuthAction
-
buildUnchecked
builds ProjectSetExternalOAuthAction without checking for non-null required values- Returns:
- ProjectSetExternalOAuthAction
-
of
factory method for an instance of ProjectSetExternalOAuthActionBuilder- Returns:
- builder
-
of
create builder for ProjectSetExternalOAuthAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-