Interface TrafficManagerEndpoint.DefinitionStages.WithCustomHeader<ParentT>
- Type Parameters:
ParentT
- the return type ofAttachable.InDefinition.attach()
- All Known Subinterfaces:
TrafficManagerEndpoint.Definition<ParentT>
,TrafficManagerEndpoint.DefinitionStages.WithAttach<ParentT>
,TrafficManagerEndpoint.DefinitionStages.WithEndpointThreshold<ParentT>
- Enclosing interface:
- TrafficManagerEndpoint.DefinitionStages
@Beta
public static interface TrafficManagerEndpoint.DefinitionStages.WithCustomHeader<ParentT>
The stage of the traffic manager endpoint definition allowing to specify custom headers.
-
Method Summary
Modifier and TypeMethodDescriptionwithCustomHeader
(String name, String value) Add a custom header.withCustomHeaders
(Map<String, String> headerValues) Add a custom header.
-
Method Details
-
withCustomHeader
@Beta TrafficManagerEndpoint.DefinitionStages.WithAttach<ParentT> withCustomHeader(String name, String value) Add a custom header.- Parameters:
name
- the header namevalue
- the header value- Returns:
- the next stage of the definition
-
withCustomHeaders
@Beta TrafficManagerEndpoint.DefinitionStages.WithAttach<ParentT> withCustomHeaders(Map<String, String> headerValues) Add a custom header. This method replaces the current headers with the provided headers.- Parameters:
headerValues
- the map containing header name and value pair- Returns:
- the next stage of the definition
-