Package com.newrelic.api.agent
Class MessageConsumeParameters.Builder
- java.lang.Object
-
- com.newrelic.api.agent.MessageConsumeParameters.Builder
-
- All Implemented Interfaces:
MessageConsumeParameters.Build
,MessageConsumeParameters.DestinationNameParameter
,MessageConsumeParameters.DestinationTypeParameter
,MessageConsumeParameters.InboundHeadersParameter
- Enclosing class:
- MessageConsumeParameters
protected static class MessageConsumeParameters.Builder extends java.lang.Object implements MessageConsumeParameters.DestinationTypeParameter, MessageConsumeParameters.DestinationNameParameter, MessageConsumeParameters.InboundHeadersParameter, MessageConsumeParameters.Build
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageConsumeParameters
build()
Build the finalMessageConsumeParameters
for the API call.MessageConsumeParameters.InboundHeadersParameter
destinationName(java.lang.String destinationName)
Set the destination name of the external call.MessageConsumeParameters.DestinationNameParameter
destinationType(DestinationType destinationType)
Set the destination type of the external call.MessageConsumeParameters.Build
inboundHeaders(InboundHeaders inboundHeaders)
Set the inbound headers on the external call.
-
-
-
Method Detail
-
destinationType
public MessageConsumeParameters.DestinationNameParameter destinationType(DestinationType destinationType)
Description copied from interface:MessageConsumeParameters.DestinationTypeParameter
Set the destination type of the external call.- Specified by:
destinationType
in interfaceMessageConsumeParameters.DestinationTypeParameter
- Parameters:
destinationType
- the destination type of the external call- Returns:
- the next builder interface
-
destinationName
public MessageConsumeParameters.InboundHeadersParameter destinationName(java.lang.String destinationName)
Description copied from interface:MessageConsumeParameters.DestinationNameParameter
Set the destination name of the external call.- Specified by:
destinationName
in interfaceMessageConsumeParameters.DestinationNameParameter
- Parameters:
destinationName
- the destination name of the external call- Returns:
- the next builder interface
-
inboundHeaders
public MessageConsumeParameters.Build inboundHeaders(InboundHeaders inboundHeaders)
Description copied from interface:MessageConsumeParameters.InboundHeadersParameter
Set the inbound headers on the external call.- Specified by:
inboundHeaders
in interfaceMessageConsumeParameters.InboundHeadersParameter
- Parameters:
inboundHeaders
- the inbound headers for the external call- Returns:
- the completed HttpParameters object
-
build
public MessageConsumeParameters build()
Description copied from interface:MessageConsumeParameters.Build
Build the finalMessageConsumeParameters
for the API call.- Specified by:
build
in interfaceMessageConsumeParameters.Build
- Returns:
- the completed GenericParameters object
-
-