Class CatalogObject.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.catalog_management.v1.model.CatalogObject.Builder
-
- Enclosing class:
- CatalogObject
public static class CatalogObject.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogObject.BuilderaddTags(java.lang.String tags)Adds an tags to tags.CatalogObjectbuild()Builds a CatalogObject.CatalogObject.BuildercatalogId(java.lang.String catalogId)Set the catalogId.CatalogObject.BuildercatalogName(java.lang.String catalogName)Set the catalogName.CatalogObject.Buildercreated(java.util.Date created)Set the created.CatalogObject.Buildercrn(java.lang.String crn)Set the crn.CatalogObject.Builderdata(java.util.Map<java.lang.String,java.lang.Object> data)Set the data.CatalogObject.Builderid(java.lang.String id)Set the id.CatalogObject.Builderkind(java.lang.String kind)Set the kind.CatalogObject.Builderlabel(java.lang.String label)Set the label.CatalogObject.BuilderlabelI18n(java.lang.String labelI18n)Set the labelI18n.CatalogObject.Buildername(java.lang.String name)Set the name.CatalogObject.BuilderparentId(java.lang.String parentId)Set the parentId.CatalogObject.Builderpublish(PublishObject publish)Set the publish.CatalogObject.Builderrev(java.lang.String rev)Set the rev.CatalogObject.BuildershortDescription(java.lang.String shortDescription)Set the shortDescription.CatalogObject.BuildershortDescriptionI18n(java.lang.String shortDescriptionI18n)Set the shortDescriptionI18n.CatalogObject.Builderstate(State state)Set the state.CatalogObject.Buildertags(java.util.List<java.lang.String> tags)Set the tags.CatalogObject.Builderupdated(java.util.Date updated)Set the updated.CatalogObject.Builderurl(java.lang.String url)Set the url.
-
-
-
Method Detail
-
build
public CatalogObject build()
Builds a CatalogObject.- Returns:
- the new CatalogObject instance
-
addTags
public CatalogObject.Builder addTags(java.lang.String tags)
Adds an tags to tags.- Parameters:
tags- the new tags- Returns:
- the CatalogObject builder
-
id
public CatalogObject.Builder id(java.lang.String id)
Set the id.- Parameters:
id- the id- Returns:
- the CatalogObject builder
-
name
public CatalogObject.Builder name(java.lang.String name)
Set the name.- Parameters:
name- the name- Returns:
- the CatalogObject builder
-
rev
public CatalogObject.Builder rev(java.lang.String rev)
Set the rev.- Parameters:
rev- the rev- Returns:
- the CatalogObject builder
-
crn
public CatalogObject.Builder crn(java.lang.String crn)
Set the crn.- Parameters:
crn- the crn- Returns:
- the CatalogObject builder
-
url
public CatalogObject.Builder url(java.lang.String url)
Set the url.- Parameters:
url- the url- Returns:
- the CatalogObject builder
-
parentId
public CatalogObject.Builder parentId(java.lang.String parentId)
Set the parentId.- Parameters:
parentId- the parentId- Returns:
- the CatalogObject builder
-
labelI18n
public CatalogObject.Builder labelI18n(java.lang.String labelI18n)
Set the labelI18n.- Parameters:
labelI18n- the labelI18n- Returns:
- the CatalogObject builder
-
label
public CatalogObject.Builder label(java.lang.String label)
Set the label.- Parameters:
label- the label- Returns:
- the CatalogObject builder
-
tags
public CatalogObject.Builder tags(java.util.List<java.lang.String> tags)
Set the tags. Existing tags will be replaced.- Parameters:
tags- the tags- Returns:
- the CatalogObject builder
-
created
public CatalogObject.Builder created(java.util.Date created)
Set the created.- Parameters:
created- the created- Returns:
- the CatalogObject builder
-
updated
public CatalogObject.Builder updated(java.util.Date updated)
Set the updated.- Parameters:
updated- the updated- Returns:
- the CatalogObject builder
-
shortDescription
public CatalogObject.Builder shortDescription(java.lang.String shortDescription)
Set the shortDescription.- Parameters:
shortDescription- the shortDescription- Returns:
- the CatalogObject builder
-
shortDescriptionI18n
public CatalogObject.Builder shortDescriptionI18n(java.lang.String shortDescriptionI18n)
Set the shortDescriptionI18n.- Parameters:
shortDescriptionI18n- the shortDescriptionI18n- Returns:
- the CatalogObject builder
-
kind
public CatalogObject.Builder kind(java.lang.String kind)
Set the kind.- Parameters:
kind- the kind- Returns:
- the CatalogObject builder
-
publish
public CatalogObject.Builder publish(PublishObject publish)
Set the publish.- Parameters:
publish- the publish- Returns:
- the CatalogObject builder
-
state
public CatalogObject.Builder state(State state)
Set the state.- Parameters:
state- the state- Returns:
- the CatalogObject builder
-
catalogId
public CatalogObject.Builder catalogId(java.lang.String catalogId)
Set the catalogId.- Parameters:
catalogId- the catalogId- Returns:
- the CatalogObject builder
-
catalogName
public CatalogObject.Builder catalogName(java.lang.String catalogName)
Set the catalogName.- Parameters:
catalogName- the catalogName- Returns:
- the CatalogObject builder
-
data
public CatalogObject.Builder data(java.util.Map<java.lang.String,java.lang.Object> data)
Set the data.- Parameters:
data- the data- Returns:
- the CatalogObject builder
-
-