All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.avi.sdk.model.L2StringLengthTestCase Maven / Gradle / Ivy

Go to download

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 L2StringLengthTestCase is a POJO class extends AviRestResource that used for creating
 * L2StringLengthTestCase.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class L2StringLengthTestCase  {
    @JsonProperty("string_length_message")
    private SingleOptionalStringField stringLengthMessage;

    @JsonProperty("string_length_messages")
    private List stringLengthMessages;

    @JsonProperty("test_string")
    private String testString;

    @JsonProperty("test_strings")
    private List testStrings;



    /**
     * This is the getter method this will return the attribute value.
     * String length message for nested string length test cases.
     * 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 stringLengthMessage
     */
    public SingleOptionalStringField getStringLengthMessage() {
        return stringLengthMessage;
    }

    /**
     * This is the setter method to the attribute.
     * String length message for nested string length test cases.
     * 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 stringLengthMessage set the stringLengthMessage.
     */
    public void setStringLengthMessage(SingleOptionalStringField stringLengthMessage) {
        this.stringLengthMessage = stringLengthMessage;
    }
    /**
     * This is the getter method this will return the attribute value.
     * Repeated string length message for nested string length test cases.
     * 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 stringLengthMessages
     */
    public List getStringLengthMessages() {
        return stringLengthMessages;
    }

    /**
     * This is the setter method. this will set the stringLengthMessages
     * Repeated string length message for nested string length test cases.
     * 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 stringLengthMessages
     */
    public void setStringLengthMessages(List  stringLengthMessages) {
        this.stringLengthMessages = stringLengthMessages;
    }

    /**
     * This is the setter method this will set the stringLengthMessages
     * Repeated string length message for nested string length test cases.
     * 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 stringLengthMessages
     */
    public L2StringLengthTestCase addStringLengthMessagesItem(SingleOptionalStringField stringLengthMessagesItem) {
      if (this.stringLengthMessages == null) {
        this.stringLengthMessages = new ArrayList();
      }
      this.stringLengthMessages.add(stringLengthMessagesItem);
      return this;
    }

    /**
     * This is the getter method this will return the attribute value.
     * String field for nested string length test cases.
     * 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 testString
     */
    public String getTestString() {
        return testString;
    }

    /**
     * This is the setter method to the attribute.
     * String field for nested string length test cases.
     * 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 testString set the testString.
     */
    public void setTestString(String  testString) {
        this.testString = testString;
    }
    /**
     * This is the getter method this will return the attribute value.
     * Repeated  string field for nested string length test cases.
     * 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 testStrings
     */
    public List getTestStrings() {
        return testStrings;
    }

    /**
     * This is the setter method. this will set the testStrings
     * Repeated  string field for nested string length test cases.
     * 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 testStrings
     */
    public void setTestStrings(List  testStrings) {
        this.testStrings = testStrings;
    }

    /**
     * This is the setter method this will set the testStrings
     * Repeated  string field for nested string length test cases.
     * 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 testStrings
     */
    public L2StringLengthTestCase addTestStringsItem(String testStringsItem) {
      if (this.testStrings == null) {
        this.testStrings = new ArrayList();
      }
      this.testStrings.add(testStringsItem);
      return this;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      L2StringLengthTestCase objL2StringLengthTestCase = (L2StringLengthTestCase) o;
      return   Objects.equals(this.testString, objL2StringLengthTestCase.testString)&&
  Objects.equals(this.testStrings, objL2StringLengthTestCase.testStrings)&&
  Objects.equals(this.stringLengthMessage, objL2StringLengthTestCase.stringLengthMessage)&&
  Objects.equals(this.stringLengthMessages, objL2StringLengthTestCase.stringLengthMessages);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class L2StringLengthTestCase {\n");
                  sb.append("    stringLengthMessage: ").append(toIndentedString(stringLengthMessage)).append("\n");
                        sb.append("    stringLengthMessages: ").append(toIndentedString(stringLengthMessages)).append("\n");
                        sb.append("    testString: ").append(toIndentedString(testString)).append("\n");
                        sb.append("    testStrings: ").append(toIndentedString(testStrings)).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