Create VES client example for domain 'notification'
[oam.git] / features / devicemanager / g-ran / ru-fh / provider / src / main / java / org / opendaylight / yang / gen / v1 / urn / _3gpp / tsg / sa5 / nrm / types / rev180731 / TMnc.java
1 package org.opendaylight.yang.gen.v1.urn._3gpp.tsg.sa5.nrm.types.rev180731;
2 import com.google.common.base.MoreObjects;
3 import com.google.common.collect.ImmutableList;
4 import java.beans.ConstructorProperties;
5 import java.io.Serializable;
6 import java.lang.Override;
7 import java.lang.String;
8 import java.util.List;
9 import java.util.Objects;
10 import java.util.regex.Pattern;
11 import org.opendaylight.yangtools.yang.binding.CodeHelpers;
12 import org.opendaylight.yangtools.yang.binding.TypeObject;
13
14 public class TMnc
15  implements TypeObject, Serializable {
16     private static final long serialVersionUID = 7207647705509368021L;
17     public static final List<String> PATTERN_CONSTANTS = ImmutableList.of("^(?:[0-9][0-9][0-9]|[0-9][0-9])$");
18     private static final Pattern patterns = Pattern.compile(PATTERN_CONSTANTS.get(0));
19     private static final String regexes = "[0-9][0-9][0-9]|[0-9][0-9]";
20     private final String _value;
21
22     private static void check_valueLength(final String value) {
23     }
24
25     @ConstructorProperties("value")
26     public TMnc(String _value) {
27         if (_value != null) {
28             check_valueLength(_value);
29         }
30     
31         Objects.requireNonNull(_value, "Supplied value may not be null");
32         CodeHelpers.checkPattern(_value, patterns, regexes);
33     
34         this._value = _value;
35     }
36     
37     /**
38      * Creates a copy from Source Object.
39      *
40      * @param source Source object
41      */
42     public TMnc(TMnc source) {
43         this._value = source._value;
44     }
45
46     public static TMnc getDefaultInstance(String defaultValue) {
47         return new TMnc(defaultValue);
48     }
49
50     public String getValue() {
51         return _value;
52     }
53
54
55     @Override
56     public int hashCode() {
57         return CodeHelpers.wrapperHashCode(_value);
58     }
59
60     @Override
61     public boolean equals(java.lang.Object obj) {
62         if (this == obj) {
63             return true;
64         }
65         if (obj == null) {
66             return false;
67         }
68         if (getClass() != obj.getClass()) {
69             return false;
70         }
71         TMnc other = (TMnc) obj;
72         if (!Objects.equals(_value, other._value)) {
73             return false;
74         }
75         return true;
76     }
77
78     @Override
79     public String toString() {
80         final MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(TMnc.class);
81         CodeHelpers.appendValue(helper, "_value", _value);
82         return helper.toString();
83     }
84 }
85