com.vmware.avi.sdk.model.L2FMandatoryTestCase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
The newest version!
/*
* 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 L2FMandatoryTestCase is a POJO class extends AviRestResource that used for creating
* L2FMandatoryTestCase.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class L2FMandatoryTestCase {
@JsonProperty("mandatory_message")
private SingleOptionalFieldMessage mandatoryMessage;
@JsonProperty("mandatory_messages")
private List mandatoryMessages;
@JsonProperty("mandatory_string")
private String mandatoryString;
@JsonProperty("mandatory_strings")
private List mandatoryStrings;
/**
* This is the getter method this will return the attribute value.
* F_mandatory message for nested f_mandatory test cases-level3.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryMessage
*/
public SingleOptionalFieldMessage getMandatoryMessage() {
return mandatoryMessage;
}
/**
* This is the setter method to the attribute.
* F_mandatory message for nested f_mandatory test cases-level3.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param mandatoryMessage set the mandatoryMessage.
*/
public void setMandatoryMessage(SingleOptionalFieldMessage mandatoryMessage) {
this.mandatoryMessage = mandatoryMessage;
}
/**
* This is the getter method this will return the attribute value.
* Repeated f_mandatory_message for nested f_mandatory test cases-level3.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryMessages
*/
public List getMandatoryMessages() {
return mandatoryMessages;
}
/**
* This is the setter method. this will set the mandatoryMessages
* Repeated f_mandatory_message for nested f_mandatory test cases-level3.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryMessages
*/
public void setMandatoryMessages(List mandatoryMessages) {
this.mandatoryMessages = mandatoryMessages;
}
/**
* This is the setter method this will set the mandatoryMessages
* Repeated f_mandatory_message for nested f_mandatory test cases-level3.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryMessages
*/
public L2FMandatoryTestCase addMandatoryMessagesItem(SingleOptionalFieldMessage mandatoryMessagesItem) {
if (this.mandatoryMessages == null) {
this.mandatoryMessages = new ArrayList();
}
this.mandatoryMessages.add(mandatoryMessagesItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* F_mandatory string field for nested f_mandatory test cases-level2.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryString
*/
public String getMandatoryString() {
return mandatoryString;
}
/**
* This is the setter method to the attribute.
* F_mandatory string field for nested f_mandatory test cases-level2.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param mandatoryString set the mandatoryString.
*/
public void setMandatoryString(String mandatoryString) {
this.mandatoryString = mandatoryString;
}
/**
* This is the getter method this will return the attribute value.
* Repeated f_mandatory string field for nested f_mandatory test cases-level2.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryStrings
*/
public List getMandatoryStrings() {
return mandatoryStrings;
}
/**
* This is the setter method. this will set the mandatoryStrings
* Repeated f_mandatory string field for nested f_mandatory test cases-level2.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryStrings
*/
public void setMandatoryStrings(List mandatoryStrings) {
this.mandatoryStrings = mandatoryStrings;
}
/**
* This is the setter method this will set the mandatoryStrings
* Repeated f_mandatory string field for nested f_mandatory test cases-level2.
* Field introduced in 21.1.5, 22.1.1.
* Allowed in enterprise edition with any value, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return mandatoryStrings
*/
public L2FMandatoryTestCase addMandatoryStringsItem(String mandatoryStringsItem) {
if (this.mandatoryStrings == null) {
this.mandatoryStrings = new ArrayList();
}
this.mandatoryStrings.add(mandatoryStringsItem);
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
L2FMandatoryTestCase objL2FMandatoryTestCase = (L2FMandatoryTestCase) o;
return Objects.equals(this.mandatoryString, objL2FMandatoryTestCase.mandatoryString)&&
Objects.equals(this.mandatoryStrings, objL2FMandatoryTestCase.mandatoryStrings)&&
Objects.equals(this.mandatoryMessage, objL2FMandatoryTestCase.mandatoryMessage)&&
Objects.equals(this.mandatoryMessages, objL2FMandatoryTestCase.mandatoryMessages);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class L2FMandatoryTestCase {\n");
sb.append(" mandatoryMessage: ").append(toIndentedString(mandatoryMessage)).append("\n");
sb.append(" mandatoryMessages: ").append(toIndentedString(mandatoryMessages)).append("\n");
sb.append(" mandatoryString: ").append(toIndentedString(mandatoryString)).append("\n");
sb.append(" mandatoryStrings: ").append(toIndentedString(mandatoryStrings)).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