com.vmware.avi.sdk.model.NTPConfiguration Maven / Gradle / Ivy
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The NTPConfiguration is a POJO class extends AviRestResource that used for creating
* NTPConfiguration.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NTPConfiguration {
@JsonProperty("ntp_authentication_keys")
private List ntpAuthenticationKeys;
@JsonProperty("ntp_server_list")
private List ntpServerList;
@JsonProperty("ntp_servers")
private List ntpServers;
/**
* This is the getter method this will return the attribute value.
* Ntp authentication keys.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpAuthenticationKeys
*/
public List getNtpAuthenticationKeys() {
return ntpAuthenticationKeys;
}
/**
* This is the setter method. this will set the ntpAuthenticationKeys
* Ntp authentication keys.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpAuthenticationKeys
*/
public void setNtpAuthenticationKeys(List ntpAuthenticationKeys) {
this.ntpAuthenticationKeys = ntpAuthenticationKeys;
}
/**
* This is the setter method this will set the ntpAuthenticationKeys
* Ntp authentication keys.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpAuthenticationKeys
*/
public NTPConfiguration addNtpAuthenticationKeysItem(NTPAuthenticationKey ntpAuthenticationKeysItem) {
if (this.ntpAuthenticationKeys == null) {
this.ntpAuthenticationKeys = new ArrayList();
}
this.ntpAuthenticationKeys.add(ntpAuthenticationKeysItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* List of ntp server fqdns or ip(v4/v6) addresses.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServerList
*/
public List getNtpServerList() {
return ntpServerList;
}
/**
* This is the setter method. this will set the ntpServerList
* List of ntp server fqdns or ip(v4/v6) addresses.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServerList
*/
public void setNtpServerList(List ntpServerList) {
this.ntpServerList = ntpServerList;
}
/**
* This is the setter method this will set the ntpServerList
* List of ntp server fqdns or ip(v4/v6) addresses.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServerList
*/
public NTPConfiguration addNtpServerListItem(IpAddr ntpServerListItem) {
if (this.ntpServerList == null) {
this.ntpServerList = new ArrayList();
}
this.ntpServerList.add(ntpServerListItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* List of ntp servers.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServers
*/
public List getNtpServers() {
return ntpServers;
}
/**
* This is the setter method. this will set the ntpServers
* List of ntp servers.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServers
*/
public void setNtpServers(List ntpServers) {
this.ntpServers = ntpServers;
}
/**
* This is the setter method this will set the ntpServers
* List of ntp servers.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return ntpServers
*/
public NTPConfiguration addNtpServersItem(NTPServer ntpServersItem) {
if (this.ntpServers == null) {
this.ntpServers = new ArrayList();
}
this.ntpServers.add(ntpServersItem);
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NTPConfiguration objNTPConfiguration = (NTPConfiguration) o;
return Objects.equals(this.ntpServerList, objNTPConfiguration.ntpServerList)&&
Objects.equals(this.ntpAuthenticationKeys, objNTPConfiguration.ntpAuthenticationKeys)&&
Objects.equals(this.ntpServers, objNTPConfiguration.ntpServers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NTPConfiguration {\n");
sb.append(" ntpAuthenticationKeys: ").append(toIndentedString(ntpAuthenticationKeys)).append("\n");
sb.append(" ntpServerList: ").append(toIndentedString(ntpServerList)).append("\n");
sb.append(" ntpServers: ").append(toIndentedString(ntpServers)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy