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 MessageConsumeParametersbuild()Build the finalMessageConsumeParametersfor the API call.MessageConsumeParameters.BuildcloudAccountId(java.lang.String cloudAccountId)Set the cloud provider's account id for the message source.MessageConsumeParameters.BuildcloudRegion(java.lang.String cloudRegion)Set the cloud provider's region for the message source.MessageConsumeParameters.InboundHeadersParameterdestinationName(java.lang.String destinationName)Set the destination name of the external call.MessageConsumeParameters.DestinationNameParameterdestinationType(DestinationType destinationType)Set the destination type of the external call.MessageConsumeParameters.BuildinboundHeaders(InboundHeaders inboundHeaders)Set the inbound headers on the external call.MessageConsumeParameters.Buildinstance(java.lang.String host, java.lang.Integer port)Set the host and port of the message broker.MessageConsumeParameters.DestinationTypeParameterotelLibrary(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.DestinationTypeParameterSet the destination type of the external call.- Specified by:
destinationTypein 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.DestinationNameParameterSet the destination name of the external call.- Specified by:
destinationNamein 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.InboundHeadersParameterSet the inbound headers on the external call.- Specified by:
inboundHeadersin 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.BuildSet the cloud provider's account id for the message source. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudAccountIdin interfaceMessageConsumeParameters.Build
-
cloudRegion
public MessageConsumeParameters.Build cloudRegion(java.lang.String cloudRegion)
Description copied from interface:MessageConsumeParameters.BuildSet the cloud provider's region for the message source. This method is optional and can be bypassed by calling build directly.- Specified by:
cloudRegionin interfaceMessageConsumeParameters.Build
-
instance
public MessageConsumeParameters.Build instance(java.lang.String host, java.lang.Integer port)
Description copied from interface:MessageConsumeParameters.BuildSet the host and port of the message broker. This method is optional and can be bypassed by calling build directly.- Specified by:
instancein 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.BuildBuild the finalMessageConsumeParametersfor the API call.- Specified by:
buildin interfaceMessageConsumeParameters.Build- Returns:
- the completed GenericParameters object
-
-