public java.util.List<IpamPublicAddressSecurityGroup> getSecurityGroups() {
        if (securityGroups == null) {
            securityGroups = new com.amazonaws.internal.SdkInternalList<IpamPublicAddressSecurityGroup>();
        }
        return securityGroups;
    }
<p>
Security groups associated with the resource that the IP address is assigned to.
</p>

@return Security groups associated with the resource that the IP address is assigned to.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/IpamDiscoveredPublicAddress.java