Package com.newrelic.api.agent
Class MessageProduceParameters.Builder
- java.lang.Object
-
- com.newrelic.api.agent.MessageProduceParameters.Builder
-
- All Implemented Interfaces:
MessageProduceParameters.Build
,MessageProduceParameters.DestinationNameParameter
,MessageProduceParameters.DestinationTypeParameter
,MessageProduceParameters.OutboundHeadersParameter
- Enclosing class:
- MessageProduceParameters
protected static class MessageProduceParameters.Builder extends java.lang.Object implements MessageProduceParameters.DestinationTypeParameter, MessageProduceParameters.DestinationNameParameter, MessageProduceParameters.OutboundHeadersParameter, MessageProduceParameters.Build
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageProduceParameters
build()
Build the finalMessageProduceParameters
for the API call.MessageProduceParameters.Build
cloudAccountId(java.lang.String cloudAccountId)
Set the cloud provider's account id for the message destination.MessageProduceParameters.Build
cloudRegion(java.lang.String cloudRegion)
Set the cloud provider's region for the message destination.MessageProduceParameters.OutboundHeadersParameter
destinationName(java.lang.String destinationName)
Set the destination name of the external call.MessageProduceParameters.DestinationNameParameter
destinationType(DestinationType destinationType)
Set the destination type of the external call.MessageProduceParameters.Build
instance(java.lang.String host, java.lang.Integer port)
Set the host and port of the message broker.MessageProduceParameters.DestinationTypeParameter
otelLibrary(java.lang.String otelLibrary)
MessageProduceParameters.Build
outboundHeaders(OutboundHeaders outboundHeaders)
Set the outbound headers on the external call.
-
-
-
Method Detail
-
otelLibrary
public MessageProduceParameters.DestinationTypeParameter otelLibrary(java.lang.String otelLibrary)
-
destinationType
public MessageProduceParameters.DestinationNameParameter destinationType(DestinationType destinationType)
Description copied from interface:MessageProduceParameters.DestinationTypeParameter
Set the destination type of the external call.- Specified by:
destinationType
in interfaceMessageProduceParameters.DestinationTypeParameter
- Parameters:
destinationType
- the destination type of the external call- Returns:
- the next builder interface
-
destinationName
public MessageProduceParameters.OutboundHeadersParameter destinationName(java.lang.String destinationName)
Description copied from interface:MessageProduceParameters.DestinationNameParameter
Set the destination name of the external call.- Specified by:
destinationName
in interfaceMessageProduceParameters.DestinationNameParameter
- Parameters:
destinationName
- the destination name of the external call- Returns:
- the next builder interface
-
outboundHeaders
public MessageProduceParameters.Build outboundHeaders(OutboundHeaders outboundHeaders)
Description copied from interface:MessageProduceParameters.OutboundHeadersParameter
Set the outbound headers on the external call. Pass null if you don't want the headers on the request/transaction to be modified.- Specified by:
outboundHeaders
in interfaceMessageProduceParameters.OutboundHeadersParameter
- Parameters:
outboundHeaders
- the outbound headers for the external call- Returns:
- the completed HttpParameters object
-
cloudAccountId
public MessageProduceParameters.Build cloudAccountId(java.lang.String cloudAccountId)
Description copied from interface:MessageProduceParameters.Build
Set the cloud provider's account id for the message destination. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudAccountId
in interfaceMessageProduceParameters.Build
-
cloudRegion
public MessageProduceParameters.Build cloudRegion(java.lang.String cloudRegion)
Description copied from interface:MessageProduceParameters.Build
Set the cloud provider's region for the message destination. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudRegion
in interfaceMessageProduceParameters.Build
-
instance
public MessageProduceParameters.Build instance(java.lang.String host, java.lang.Integer port)
Description copied from interface:MessageProduceParameters.Build
Set the host and port of the message broker. This method is optional and can be bypassed by calling build directly.- Specified by:
instance
in interfaceMessageProduceParameters.Build
- Parameters:
host
- The host where the message broker is locatedport
- The port for the connection to the message broker- Returns:
- the next builder interface
-
build
public MessageProduceParameters build()
Description copied from interface:MessageProduceParameters.Build
Build the finalMessageProduceParameters
for the API call.- Specified by:
build
in interfaceMessageProduceParameters.Build
- Returns:
- the completed GenericParameters object
-
-