Class PutTargetsRequest

    • Constructor Detail

      • PutTargetsRequest

        public PutTargetsRequest()
    • Method Detail

      • setRule

        public void setRule​(String rule)

        The name of the rule you want to add targets to.

        Parameters:
        rule - The name of the rule you want to add targets to.
      • getRule

        public String getRule()

        The name of the rule you want to add targets to.

        Returns:
        The name of the rule you want to add targets to.
      • withRule

        public PutTargetsRequest withRule​(String rule)

        The name of the rule you want to add targets to.

        Parameters:
        rule - The name of the rule you want to add targets to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTargets

        public List<Target> getTargets()

        List of targets you want to update or add to the rule.

        Returns:
        List of targets you want to update or add to the rule.
      • setTargets

        public void setTargets​(Collection<Target> targets)

        List of targets you want to update or add to the rule.

        Parameters:
        targets - List of targets you want to update or add to the rule.
      • withTargets

        public PutTargetsRequest withTargets​(Target... targets)

        List of targets you want to update or add to the rule.

        NOTE: This method appends the values to the existing list (if any). Use setTargets(java.util.Collection) or withTargets(java.util.Collection) if you want to override the existing values.

        Parameters:
        targets - List of targets you want to update or add to the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTargets

        public PutTargetsRequest withTargets​(Collection<Target> targets)

        List of targets you want to update or add to the rule.

        Parameters:
        targets - List of targets you want to update or add to the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object