Class ScopedResourceSelectorRequirement

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

    public class ScopedResourceSelectorRequirement
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
    • Constructor Detail

      • ScopedResourceSelectorRequirement

        public ScopedResourceSelectorRequirement​(@NonNull
                                                 @NonNull java.lang.String operator,
                                                 @NonNull
                                                 @NonNull java.lang.String scopeName,
                                                 java.util.List<java.lang.String> values)
      • ScopedResourceSelectorRequirement

        public ScopedResourceSelectorRequirement()
    • Method Detail

      • getOperator

        @NonNull
        public @NonNull java.lang.String getOperator()
        Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
      • getScopeName

        @NonNull
        public @NonNull java.lang.String getScopeName()
        The name of the scope that the selector applies to.
      • getValues

        public java.util.List<java.lang.String> getValues()
        An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
      • setOperator

        public void setOperator​(@NonNull
                                @NonNull java.lang.String operator)
        Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
      • setScopeName

        public void setScopeName​(@NonNull
                                 @NonNull java.lang.String scopeName)
        The name of the scope that the selector applies to.
      • setValues

        public void setValues​(java.util.List<java.lang.String> values)
        An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
      • 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