public static final class ListTagsResponse.Builder extends Object
ListTagsResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ListTagsResponse.Builder |
addAllTags(Iterable<? extends Tag> elements)
Adds elements to
tags list. |
ListTagsResponse |
build()
Builds a new
ListTagsResponse. |
ListTagsResponse.Builder |
from(ListTagsResponse instance)
Fill a builder with attribute values from the provided
ListTagsResponse instance. |
ListTagsResponse.Builder |
tag(Tag element)
Adds one element to
tags list. |
ListTagsResponse.Builder |
tags(Iterable<? extends Tag> elements)
Sets or replaces all elements for
tags list. |
ListTagsResponse.Builder |
tags(Tag... elements)
Adds elements to
tags list. |
public final ListTagsResponse.Builder from(ListTagsResponse instance)
ListTagsResponse instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ListTagsResponse.Builder tag(Tag element)
tags list.element - A tags elementthis builder for use in a chained invocationpublic final ListTagsResponse.Builder tags(Tag... elements)
tags list.elements - An array of tags elementsthis builder for use in a chained invocationpublic final ListTagsResponse.Builder tags(Iterable<? extends Tag> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic final ListTagsResponse.Builder addAllTags(Iterable<? extends Tag> elements)
tags list.elements - An iterable of tags elementsthis builder for use in a chained invocationpublic ListTagsResponse build()
ListTagsResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.