Class CreateToolchainEventOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.continuous_delivery.cd_toolchain.v2.model.CreateToolchainEventOptions.Builder
-
- Enclosing class:
- CreateToolchainEventOptions
public static class CreateToolchainEventOptions.Builder extends java.lang.ObjectBuilder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateToolchainEventOptionsbuild()Builds a CreateToolchainEventOptions.CreateToolchainEventOptions.BuildercontentType(java.lang.String contentType)Set the contentType.CreateToolchainEventOptions.Builderdata(ToolchainEventPrototypeData data)Set the data.CreateToolchainEventOptions.Builderdescription(java.lang.String description)Set the description.CreateToolchainEventOptions.Buildertitle(java.lang.String title)Set the title.CreateToolchainEventOptions.BuildertoolchainId(java.lang.String toolchainId)Set the toolchainId.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(java.lang.String toolchainId, java.lang.String title, java.lang.String description, java.lang.String contentType)Instantiates a new builder with required properties.- Parameters:
toolchainId- the toolchainIdtitle- the titledescription- the descriptioncontentType- the contentType
-
-
Method Detail
-
build
public CreateToolchainEventOptions build()
Builds a CreateToolchainEventOptions.- Returns:
- the new CreateToolchainEventOptions instance
-
toolchainId
public CreateToolchainEventOptions.Builder toolchainId(java.lang.String toolchainId)
Set the toolchainId.- Parameters:
toolchainId- the toolchainId- Returns:
- the CreateToolchainEventOptions builder
-
title
public CreateToolchainEventOptions.Builder title(java.lang.String title)
Set the title.- Parameters:
title- the title- Returns:
- the CreateToolchainEventOptions builder
-
description
public CreateToolchainEventOptions.Builder description(java.lang.String description)
Set the description.- Parameters:
description- the description- Returns:
- the CreateToolchainEventOptions builder
-
contentType
public CreateToolchainEventOptions.Builder contentType(java.lang.String contentType)
Set the contentType.- Parameters:
contentType- the contentType- Returns:
- the CreateToolchainEventOptions builder
-
data
public CreateToolchainEventOptions.Builder data(ToolchainEventPrototypeData data)
Set the data.- Parameters:
data- the data- Returns:
- the CreateToolchainEventOptions builder
-
-