/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type * The type of comparison to to perform. * @param ipAddressRange * The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] {ipAddressRange}); }
/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type The type of comparison to to perform. * @param ipAddressRange The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] { ipAddressRange }); }
/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type * The type of comparison to to perform. * @param ipAddressRange * The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] {ipAddressRange}); }
/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type The type of comparison to to perform. * @param ipAddressRange The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] { ipAddressRange }); }
/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type The type of comparison to to perform. * @param ipAddressRange The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] { ipAddressRange }); }
/** * Constructs a new access policy condition that compares the source IP * address of the incoming request to an AWS service against the specified * CIDR range. When the condition evaluates to true (i.e. when the incoming * source IP address is within the CIDR range or not) depends on the * specified {@link IpAddressComparisonType}. * <p> * For more information about CIDR IP ranges, see <a * href="http://en.wikipedia.org/wiki/CIDR_notation"> * http://en.wikipedia.org/wiki/CIDR_notation</a> * * @param type * The type of comparison to to perform. * @param ipAddressRange * The CIDR IP range involved in the policy condition. */ public IpAddressCondition(IpAddressComparisonType type, String ipAddressRange) { super.type = type.toString(); super.conditionKey = ConditionFactory.SOURCE_IP_CONDITION_KEY; super.values = Arrays.asList(new String[] {ipAddressRange}); }