public static class Resource.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
Builder(java.util.List<ResourceAttribute> attributes)
Instantiates a new builder with required properties.
|
| Modifier and Type | Method and Description |
|---|---|
Resource.Builder |
addAttributes(ResourceAttribute attributes)
Adds an attributes to attributes.
|
Resource.Builder |
addTags(ResourceTagAttribute tags)
Adds an tags to tags.
|
Resource.Builder |
attributes(java.util.List<ResourceAttribute> attributes)
Set the attributes.
|
Resource |
build()
Builds a Resource.
|
Resource.Builder |
tags(java.util.List<ResourceTagAttribute> tags)
Set the tags.
|
public Builder()
public Builder(java.util.List<ResourceAttribute> attributes)
attributes - the attributespublic Resource build()
public Resource.Builder addAttributes(ResourceAttribute attributes)
attributes - the new attributespublic Resource.Builder addTags(ResourceTagAttribute tags)
tags - the new tagspublic Resource.Builder attributes(java.util.List<ResourceAttribute> attributes)
attributes - the attributespublic Resource.Builder tags(java.util.List<ResourceTagAttribute> tags)
tags - the tagsCopyright © 2022 IBM Cloud Platform Services. All rights reserved.