Class RunAsGroupStrategyOptions

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

    public class RunAsGroupStrategyOptions
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.
    • Constructor Detail

      • RunAsGroupStrategyOptions

        public RunAsGroupStrategyOptions​(java.util.List<IDRange> ranges,
                                         @NonNull
                                         @NonNull java.lang.String rule)
      • RunAsGroupStrategyOptions

        public RunAsGroupStrategyOptions()
    • Method Detail

      • getRanges

        public java.util.List<IDRange> getRanges()
        ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
      • getRule

        @NonNull
        public @NonNull java.lang.String getRule()
        rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
      • setRanges

        public void setRanges​(java.util.List<IDRange> ranges)
        ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
      • setRule

        public void setRule​(@NonNull
                            @NonNull java.lang.String rule)
        rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
      • 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