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.Build
cloudAccountId(java.lang.String cloudAccountId)
Set the cloud provider's account id for the message source.MessageConsumeParameters.Build
cloudRegion(java.lang.String cloudRegion)
Set the cloud provider's region for the message source.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.MessageConsumeParameters.Build
instance(java.lang.String host, java.lang.Integer port)
Set the host and port of the message broker.MessageConsumeParameters.DestinationTypeParameter
otelLibrary(java.lang.String otelLibrary)
-
-
-
Method Detail
-
otelLibrary
public MessageConsumeParameters.DestinationTypeParameter otelLibrary(java.lang.String otelLibrary)
-
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
-
cloudAccountId
public MessageConsumeParameters.Build cloudAccountId(java.lang.String cloudAccountId)
Description copied from interface:MessageConsumeParameters.Build
Set the cloud provider's account id for the message source. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudAccountId
in interfaceMessageConsumeParameters.Build
-
cloudRegion
public MessageConsumeParameters.Build cloudRegion(java.lang.String cloudRegion)
Description copied from interface:MessageConsumeParameters.Build
Set the cloud provider's region for the message source. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudRegion
in interfaceMessageConsumeParameters.Build
-
instance
public MessageConsumeParameters.Build instance(java.lang.String host, java.lang.Integer port)
Description copied from interface:MessageConsumeParameters.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 interfaceMessageConsumeParameters.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 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
-
-