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