Class Condition

    • Method Detail

      • conditionType

        public final ConditionType conditionType()

        An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals. For more flexible assignment options, including StringLike and the ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your BackupSelection .

        If the service returns an enum value that is not available in the current SDK version, conditionType will return ConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from conditionTypeAsString().

        Returns:
        An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals. For more flexible assignment options, including StringLike and the ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your BackupSelection .
        See Also:
        ConditionType
      • conditionTypeAsString

        public final String conditionTypeAsString()

        An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals. For more flexible assignment options, including StringLike and the ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your BackupSelection .

        If the service returns an enum value that is not available in the current SDK version, conditionType will return ConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from conditionTypeAsString().

        Returns:
        An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports StringEquals. For more flexible assignment options, including StringLike and the ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your BackupSelection .
        See Also:
        ConditionType
      • conditionKey

        public final String conditionKey()

        The key in a key-value pair. For example, in the tag Department: Accounting, Department is the key.

        Returns:
        The key in a key-value pair. For example, in the tag Department: Accounting, Department is the key.
      • conditionValue

        public final String conditionValue()

        The value in a key-value pair. For example, in the tag Department: Accounting, Accounting is the value.

        Returns:
        The value in a key-value pair. For example, in the tag Department: Accounting, Accounting is the value.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)