Package org.opennms.netmgt.config.ami
Class AmiConfig
- java.lang.Object
-
- org.opennms.netmgt.config.ami.AmiConfig
-
- All Implemented Interfaces:
java.io.Serializable
public class AmiConfig extends java.lang.Object implements java.io.Serializable
This is the top-level element for ami-config.xml, which configures access parameters for the Asterisk Manager Interface (AMI).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmiConfig()
AmiConfig(java.lang.Integer port, java.lang.Boolean useSsl, java.lang.Integer timeout, java.lang.Integer retry, java.lang.String username, java.lang.String password, java.util.List<Definition> definitions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<Definition>
getDefinitions()
java.util.Optional<java.lang.String>
getPassword()
java.lang.Integer
getPort()
java.lang.Integer
getRetry()
java.lang.Integer
getTimeout()
java.util.Optional<java.lang.String>
getUsername()
java.lang.Boolean
getUseSsl()
int
hashCode()
void
setDefinitions(java.util.List<Definition> definitions)
void
setPassword(java.lang.String password)
void
setPort(java.lang.Integer port)
void
setRetry(java.lang.Integer retry)
void
setTimeout(java.lang.Integer timeout)
void
setUsername(java.lang.String username)
void
setUseSsl(java.lang.Boolean useSsl)
-
-
-
Constructor Detail
-
AmiConfig
public AmiConfig()
-
AmiConfig
public AmiConfig(java.lang.Integer port, java.lang.Boolean useSsl, java.lang.Integer timeout, java.lang.Integer retry, java.lang.String username, java.lang.String password, java.util.List<Definition> definitions)
-
-
Method Detail
-
getPort
public java.lang.Integer getPort()
-
setPort
public void setPort(java.lang.Integer port)
-
getUseSsl
public java.lang.Boolean getUseSsl()
-
setUseSsl
public void setUseSsl(java.lang.Boolean useSsl)
-
getTimeout
public java.lang.Integer getTimeout()
-
setTimeout
public void setTimeout(java.lang.Integer timeout)
-
getRetry
public java.lang.Integer getRetry()
-
setRetry
public void setRetry(java.lang.Integer retry)
-
getUsername
public java.util.Optional<java.lang.String> getUsername()
-
setUsername
public void setUsername(java.lang.String username)
-
getPassword
public java.util.Optional<java.lang.String> getPassword()
-
setPassword
public void setPassword(java.lang.String password)
-
getDefinitions
public java.util.List<Definition> getDefinitions()
-
setDefinitions
public void setDefinitions(java.util.List<Definition> definitions)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-