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 MessageProduceParametersbuild()Build the finalMessageProduceParametersfor the API call.MessageProduceParameters.BuildcloudAccountId(java.lang.String cloudAccountId)Set the cloud provider's account id for the message destination.MessageProduceParameters.BuildcloudRegion(java.lang.String cloudRegion)Set the cloud provider's region for the message destination.MessageProduceParameters.OutboundHeadersParameterdestinationName(java.lang.String destinationName)Set the destination name of the external call.MessageProduceParameters.DestinationNameParameterdestinationType(DestinationType destinationType)Set the destination type of the external call.MessageProduceParameters.Buildinstance(java.lang.String host, java.lang.Integer port)Set the host and port of the message broker.MessageProduceParameters.DestinationTypeParameterotelLibrary(java.lang.String otelLibrary)MessageProduceParameters.BuildoutboundHeaders(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.DestinationTypeParameterSet the destination type of the external call.- Specified by:
destinationTypein 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.DestinationNameParameterSet the destination name of the external call.- Specified by:
destinationNamein 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.OutboundHeadersParameterSet 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:
outboundHeadersin 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.BuildSet the cloud provider's account id for the message destination. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudAccountIdin interfaceMessageProduceParameters.Build
-
cloudRegion
public MessageProduceParameters.Build cloudRegion(java.lang.String cloudRegion)
Description copied from interface:MessageProduceParameters.BuildSet the cloud provider's region for the message destination. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudRegionin interfaceMessageProduceParameters.Build
-
instance
public MessageProduceParameters.Build instance(java.lang.String host, java.lang.Integer port)
Description copied from interface:MessageProduceParameters.BuildSet the host and port of the message broker. This method is optional and can be bypassed by calling build directly.- Specified by:
instancein 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.BuildBuild the finalMessageProduceParametersfor the API call.- Specified by:
buildin interfaceMessageProduceParameters.Build- Returns:
- the completed GenericParameters object
-
-