Package com.newrelic.api.agent
Class GenericParameters.Builder
- java.lang.Object
-
- com.newrelic.api.agent.GenericParameters.Builder
-
- All Implemented Interfaces:
GenericParameters.Build
,GenericParameters.ProcedureParameter
,GenericParameters.UriParameter
- Enclosing class:
- GenericParameters
protected static class GenericParameters.Builder extends java.lang.Object implements GenericParameters.UriParameter, GenericParameters.ProcedureParameter, GenericParameters.Build
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericParameters
build()
Build the finalGenericParameters
for the API call.GenericParameters.Build
procedure(java.lang.String procedure)
Set the HTTP method or Java method for the call.GenericParameters.ProcedureParameter
uri(java.net.URI uri)
Set the URI of the external call.
-
-
-
Method Detail
-
uri
public GenericParameters.ProcedureParameter uri(java.net.URI uri)
Description copied from interface:GenericParameters.UriParameter
Set the URI of the external call.- Specified by:
uri
in interfaceGenericParameters.UriParameter
- Parameters:
uri
- the URI of the external call- Returns:
- the next builder interface
-
procedure
public GenericParameters.Build procedure(java.lang.String procedure)
Description copied from interface:GenericParameters.ProcedureParameter
Set the HTTP method or Java method for the call.- Specified by:
procedure
in interfaceGenericParameters.ProcedureParameter
- Parameters:
procedure
- the HTTP method or Java method for the call- Returns:
- the next builder interface
-
build
public GenericParameters build()
Description copied from interface:GenericParameters.Build
Build the finalGenericParameters
for the API call.- Specified by:
build
in interfaceGenericParameters.Build
- Returns:
- the completed GenericParameters object
-
-