public static class NewRelicInfraApi.Builder extends Object
Constructor and Description |
---|
Builder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
NewRelicInfraApi.Builder |
apiKey(String key)
Sets the API key used to authenticate the connection.
|
NewRelicInfraApi |
build()
Returns the configured infra API client instance
|
NewRelicInfraApi.Builder |
hostname(String hostname)
Sets the name of the host to connect to.
|
NewRelicInfraApi.Builder |
port(int port)
Sets the port of the host to connect to.
|
public NewRelicInfraApi.Builder hostname(String hostname)
The default hostname is "infra-api.newrelic.com".
hostname
- The name of the hostpublic NewRelicInfraApi.Builder port(int port)
The default port is 443.
port
- The port of the hostpublic NewRelicInfraApi.Builder apiKey(String key)
key
- The API keypublic NewRelicInfraApi build()
Copyright © 2018. All rights reserved.