Class ServiceConfig
- java.lang.Object
-
- io.quarkus.kubernetes.service.binding.buildtime.ServiceConfig
-
public class ServiceConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description Optional<String>apiVersionThe apiVersion of the serviceOptional<String>bindingThe name of the service binding.Optional<String>kindThe kind of the service.Optional<String>nameThe name of the service.Optional<String>namespaceThe namespace of the service.
-
Constructor Summary
Constructors Constructor Description ServiceConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static ServiceConfigcreateNew()protected ServiceConfigwithApiVersion(String apiVersion)protected ServiceConfigwithBinding(String binding)protected ServiceConfigwithKind(String kind)protected ServiceConfigwithName(String name)
-
-
-
Field Detail
-
binding
@ConfigItem public Optional<String> binding
The name of the service binding. If no value is specified the id of the service will be used instead.
-
name
@ConfigItem public Optional<String> name
The name of the service. When this is empty the key of the service is meant to be used as name.
-
-
Method Detail
-
createNew
protected static ServiceConfig createNew()
-
withBinding
protected ServiceConfig withBinding(String binding)
-
withApiVersion
protected ServiceConfig withApiVersion(String apiVersion)
-
withKind
protected ServiceConfig withKind(String kind)
-
withName
protected ServiceConfig withName(String name)
-
-