/** * <p> * One or more IP ranges. * </p> * * @param ipRanges * One or more IP ranges. * @return Returns a reference to this object so that method calls can be chained together. * @deprecated Use {@link #withIpv4Ranges(java.util.Collection)} */ @Deprecated public IpPermission withIpRanges(java.util.Collection<String> ipRanges) { setIpRanges(ipRanges); return this; }
/** * <p> * One or more IP ranges. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpRanges(java.util.Collection)} or {@link #withIpRanges(java.util.Collection)} if you want to override * the existing values. * </p> * * @param ipRanges * One or more IP ranges. * @return Returns a reference to this object so that method calls can be chained together. * @deprecated Use {@link #withIpv4Ranges(IpRange...)} */ @Deprecated public IpPermission withIpRanges(String... ipRanges) { if (this.ipv4Ranges == null) { setIpRanges(new com.amazonaws.internal.SdkInternalList<String>(ipRanges.length)); } for (String ele : ipRanges) { this.ipv4Ranges.add(newIpRange(ele)); } return this; }
protected static IpPermission toIpPermission( IpRule rule ) { IpPermission permission = new IpPermission(); permission.setIpProtocol( rule.getIpProtocol() ); permission.setToPort( rule.getToPort() ); permission.setFromPort( rule.getFromPort() ); permission.setIpRanges( rule.getIpRanges() ); return permission; }
/** * One or more IP ranges. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param ipRanges One or more IP ranges. * * @return A reference to this updated object so that method calls can be chained * together. */ public IpPermission withIpRanges(String... ipRanges) { if (getIpRanges() == null) setIpRanges(new java.util.ArrayList<String>(ipRanges.length)); for (String value : ipRanges) { getIpRanges().add(value); } return this; }
/** * <p> * One or more IP ranges. * </p> * * @param ipRanges * One or more IP ranges. * @return Returns a reference to this object so that method calls can be chained together. * @deprecated Use {@link #withIpv4Ranges(java.util.Collection)} */ @Deprecated public IpPermission withIpRanges(java.util.Collection<String> ipRanges) { setIpRanges(ipRanges); return this; }
/** * <p> * One or more IP ranges. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpRanges(java.util.Collection)} or {@link #withIpRanges(java.util.Collection)} if you want to override * the existing values. * </p> * * @param ipRanges * One or more IP ranges. * @return Returns a reference to this object so that method calls can be chained together. * @deprecated Use {@link #withIpv4Ranges(IpRange...)} */ @Deprecated public IpPermission withIpRanges(String... ipRanges) { if (this.ipv4Ranges == null) { setIpRanges(new com.amazonaws.internal.SdkInternalList<String>(ipRanges.length)); } for (String ele : ipRanges) { this.ipv4Ranges.add(newIpRange(ele)); } return this; }