public static class KeyProperty.Builder extends Object
KeyProperty
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KeyProperty |
build()
Creates a new instance of
KeyProperty based on the previously given values. |
KeyProperty.Builder |
withExposedName(String exposedName)
Sets the name of the key as it should be exposed in the generated code.
|
KeyProperty.Builder |
withNameInMessagePayload(String nameInMessagePayload)
Sets the name of the key as contained in the messaging payload.
|
@Nonnull public KeyProperty.Builder withNameInMessagePayload(@Nonnull String nameInMessagePayload)
nameInMessagePayload
- The name to set.@Nonnull public KeyProperty.Builder withExposedName(@Nonnull String exposedName)
exposedName
- The name to set.@Nonnull public KeyProperty build()
KeyProperty
based on the previously given values.KeyProperty
.IllegalArgumentException
- if either 'nameInMessagePayload' or 'exposedName' are not set.Copyright © 2019 SAP SE. All rights reserved.