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