Package io.confluent.crn
Class ConfluentResourceName.Builder
java.lang.Object
io.confluent.crn.ConfluentResourceName.Builder
- Enclosing class:
ConfluentResourceName
-
Method Summary
Modifier and TypeMethodDescriptionaddAllElements(List<ConfluentResourceName.Element> elements) The caller is responsible for ensuring that elements are properly encodedaddElement(String resourceType, String unencodedResourceName) This encodes the resource name.addElementWithWildcard(String resourceType, String unencodedResourceName) This URLEncodes the resource name and then adds a wildcard marker after it.build()setAuthority(String authority)
-
Method Details
-
setAuthority
-
addElement
public ConfluentResourceName.Builder addElement(String resourceType, String unencodedResourceName) throws CrnSyntaxException This encodes the resource name. We do RFC 1738 URL Encoding, with the additional character "*" being encoded as "%2A" to distinguish it from wildcards- Throws:
CrnSyntaxException
-
addElementWithWildcard
public ConfluentResourceName.Builder addElementWithWildcard(String resourceType, String unencodedResourceName) throws CrnSyntaxException This URLEncodes the resource name and then adds a wildcard marker after it. We do RFC 1738 URL Encoding, with the additional character "*" being encoded as "%2A" to distinguish it from wildcards- Throws:
CrnSyntaxException
-
addAllElements
The caller is responsible for ensuring that elements are properly encoded -
build
- Throws:
CrnSyntaxException
-