Class RequisitionRequestBuilderImpl
- java.lang.Object
-
- org.opennms.netmgt.provision.persist.rpc.RequisitionRequestBuilderImpl
-
- All Implemented Interfaces:
RequisitionRequestBuilder
public class RequisitionRequestBuilderImpl extends java.lang.Object implements RequisitionRequestBuilder
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCATION_PARAMETER_NAME
static java.lang.String
TTL_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description RequisitionRequestBuilderImpl(LocationAwareRequisitionClientImpl client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<Requisition>
execute()
RequisitionRequestBuilder
withLocation(java.lang.String location)
RequisitionRequestBuilder
withParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
RequisitionRequestBuilder
withRequisitionProvider(RequisitionProvider provider)
RequisitionRequestBuilder
withRequisitionProviderType(java.lang.String type)
RequisitionRequestBuilder
withSystemId(java.lang.String systemId)
RequisitionRequestBuilder
withTimeToLive(java.lang.Long ttlInMs)
-
-
-
Field Detail
-
LOCATION_PARAMETER_NAME
public static final java.lang.String LOCATION_PARAMETER_NAME
- See Also:
- Constant Field Values
-
TTL_PARAMETER_NAME
public static final java.lang.String TTL_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequisitionRequestBuilderImpl
public RequisitionRequestBuilderImpl(LocationAwareRequisitionClientImpl client)
-
-
Method Detail
-
withLocation
public RequisitionRequestBuilder withLocation(java.lang.String location)
- Specified by:
withLocation
in interfaceRequisitionRequestBuilder
-
withSystemId
public RequisitionRequestBuilder withSystemId(java.lang.String systemId)
- Specified by:
withSystemId
in interfaceRequisitionRequestBuilder
-
withRequisitionProviderType
public RequisitionRequestBuilder withRequisitionProviderType(java.lang.String type)
- Specified by:
withRequisitionProviderType
in interfaceRequisitionRequestBuilder
-
withRequisitionProvider
public RequisitionRequestBuilder withRequisitionProvider(RequisitionProvider provider)
- Specified by:
withRequisitionProvider
in interfaceRequisitionRequestBuilder
-
withParameters
public RequisitionRequestBuilder withParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
- Specified by:
withParameters
in interfaceRequisitionRequestBuilder
-
withTimeToLive
public RequisitionRequestBuilder withTimeToLive(java.lang.Long ttlInMs)
- Specified by:
withTimeToLive
in interfaceRequisitionRequestBuilder
-
execute
public java.util.concurrent.CompletableFuture<Requisition> execute()
- Specified by:
execute
in interfaceRequisitionRequestBuilder
-
-