Class TopologySelectorLabelRequirement

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class TopologySelectorLabelRequirement
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.
    • Constructor Detail

      • TopologySelectorLabelRequirement

        public TopologySelectorLabelRequirement​(@NonNull
                                                @NonNull java.lang.String key,
                                                @NonNull
                                                @NonNull java.util.List<java.lang.String> values)
      • TopologySelectorLabelRequirement

        public TopologySelectorLabelRequirement()
    • Method Detail

      • getKey

        @NonNull
        public @NonNull java.lang.String getKey()
        The label key that the selector applies to.
      • getValues

        @NonNull
        public @NonNull java.util.List<java.lang.String> getValues()
        An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
      • setKey

        public void setKey​(@NonNull
                           @NonNull java.lang.String key)
        The label key that the selector applies to.
      • setValues

        public void setValues​(@NonNull
                              @NonNull java.util.List<java.lang.String> values)
        An array of string values. One value must match the label to be selected. Each entry in Values is ORed.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object