/** * <p> * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * </p> * * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpPermissions(java.util.Collection<IpPermission> ipPermissions) { setIpPermissions(ipPermissions); return this; }
/** * Constructs a new AuthorizeSecurityGroupIngressRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param groupName * [EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID * or the security group name in the request. * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. */ public AuthorizeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) { setGroupName(groupName); setIpPermissions(ipPermissions); }
/** * <p> * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpPermissions(java.util.Collection)} or {@link #withIpPermissions(java.util.Collection)} if you want * to override the existing values. * </p> * * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions) { if (this.ipPermissions == null) { setIpPermissions(new com.amazonaws.internal.SdkInternalList<IpPermission>(ipPermissions.length)); } for (IpPermission ele : ipPermissions) { this.ipPermissions.add(ele); } return this; }
/** * Constructs a new AuthorizeSecurityGroupIngressRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param groupName [EC2-Classic, default VPC] The name of the security * group. * @param ipPermissions A set of IP permissions. Can be used to specify * multiple rules in a single command. */ public AuthorizeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) { setGroupName(groupName); setIpPermissions(ipPermissions); }
/** * A set of IP permissions. Can be used to specify multiple rules in a * single command. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param ipPermissions A set of IP permissions. Can be used to specify multiple rules in a * single command. * * @return A reference to this updated object so that method calls can be chained * together. */ public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions) { if (getIpPermissions() == null) setIpPermissions(new java.util.ArrayList<IpPermission>(ipPermissions.length)); for (IpPermission value : ipPermissions) { getIpPermissions().add(value); } return this; }
/** * <p> * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * </p> * * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpPermissions(java.util.Collection<IpPermission> ipPermissions) { setIpPermissions(ipPermissions); return this; }
/** * Constructs a new AuthorizeSecurityGroupIngressRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param groupName * [EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID * or the security group name in the request. * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. */ public AuthorizeSecurityGroupIngressRequest(String groupName, java.util.List<IpPermission> ipPermissions) { setGroupName(groupName); setIpPermissions(ipPermissions); }
/** * <p> * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setIpPermissions(java.util.Collection)} or {@link #withIpPermissions(java.util.Collection)} if you want * to override the existing values. * </p> * * @param ipPermissions * One or more sets of IP permissions. Can be used to specify multiple rules in a single command. * @return Returns a reference to this object so that method calls can be chained together. */ public AuthorizeSecurityGroupIngressRequest withIpPermissions(IpPermission... ipPermissions) { if (this.ipPermissions == null) { setIpPermissions(new com.amazonaws.internal.SdkInternalList<IpPermission>(ipPermissions.length)); } for (IpPermission ele : ipPermissions) { this.ipPermissions.add(ele); } return this; }