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